I have been reading the documentation on the 55xx series of msp430.
Am I missing something or is there not a way to globally enable/disable ALL interrupts with a single bit or register?
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.
I have been reading the documentation on the 55xx series of msp430.
Am I missing something or is there not a way to globally enable/disable ALL interrupts with a single bit or register?
Richard,
Please refer to MSP430x5xx Family User's Guide: Chapter 1, Section 1.3.3 Maskable Interrupts.
"Each maskable interrupt source can be disabled individually by an interrupt enable bit, or all maskable interrupts can be disabled by the general interrupt enable (GIE) bit in the status register (SR)."
Regards,
Priya
Hi Richard,
you use the GIE-bit (as usual). The GIE-bit is in the Status register (SR). You can access it in C i.e. by:
__enable_interrupt(); // enable all interrupts --> GIE = 1 (HIGH)
__disable_interrupt(); // disable all interrupts --> GIE = 0 (LOW)
Refer to page 109 (par. 4.3.3) for a decription of SR-register.
Rgds
aBUGSworstnightmare
**Attention** This is a public forum