Do you have a question? Post it now! No Registration Necessary
- Posted on
- MSP430: _bis_sr vs. _bis_sr_irq ?
September 8, 2003, 11:54 am
rate this thread
Re: MSP430: _bis_sr vs. _bis_sr_irq ?
The following pertains to the IAR C compiler. Based on a quick look at
The intrinsic functions _BIS_SR() and _BIC_SR() set and clear bits in
the status register. They could be used to enable/disable interrupts or
enter sleep mode.
_BIS_SR_IRQ() and _BIC_SR_IRQ() set and clear bits for the status
register which will be restored at the end of the current IRQ routine.
They are normally used to exit sleep modes from an interrupt routine.