Hi,

The syntax you need is like this. If the main code does this:

_BIS_SR(LPM3_bits);

you will go into LPM3 mode. Then if an interrupt routine does this:

_BIC_SR_IRQ(LPM3_bits);

you will come back out of LPM3 mode. It works for the other low power
modes too, by just changing "3".

Regards,
Steve


Gao Zhengsu wrote:

>Hi,
>       I am new in mspgcc, can someone please tell me how can I put 
> microcontroller 
>into LPM1 mode. Does following code works?
>            
>                while(1){
>                       LPM1;
>               }
>
>Thanks 
>Gao
>
>
>
>
>-------------------------------------------------------
>The SF.Net email is sponsored by: Beat the post-holiday blues
>Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
>It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
>_______________________________________________
>Mspgcc-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>  
>


Reply via email to