This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is __bis_SR_register() necessary?

Other Parts Discussed in Thread: MSP430G2553

Hey everyone,

I have always seen people using __bis_SR_register() to set interrupts and/or go to LPM. In users guide, I observed that this may also be done by setting Status Register (SR). For eg to set to LPM0 with interrupts on, I can write,

SR = LPM0 + GIE;

Is this acceptable? And where is the definition of __bis_SR_register() function? (I couldn't find it.)

Thanks

**Attention** This is a public forum