Sergio,

If I correctly understand your code is a interrupt function.
I am not sure, but I think MSP430 save and restore SR register when
executing a interruption.
If you need to change a flag and keep it changed, you should try these
functions:

__bic_SR_register_on_exit(FLAGS);

__bis_SR_register_on_exit(FLAGS);

I use these to set LPM at the end of interruption.

--
"Aqui deveria ter uma tagline."
Hugo A. G. V. Rosa
Engenheiro / quase Matemático / Curioso
http://friendfeed.com/hugoxrosa

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to