On Tue, Mar 15, 2011 at 6:46 AM, JMGross <[email protected]> wrote:
> BTW: the other compilers for MSP (IAR/CCS) enter LPM4 on main exit
> as default, rather than jumping in place.

I find this comment compelling too.

Although TI recommends:

    bis 0xf8, sr

to enter LPM4, my preference is:

   dint
   bis 0xf0, sr

so that any maskable interrupts left enabled by the application don't
cause the MCU to start running through the constant section.  The idea
is you only get going again through an NMI which inherently jumps to
the reset vector.

Comments on this?  I really don't want another variation point where
you get to specify a branch destination to follow the LPM4 code
through some sort of compiler directive.

Peter

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to