Tool/software: Code Composer Studio
Hello all,
I have a short section of code which absolutely must not be interrupted. Therefore, I wrapped it with a __disable_interrupt; and a __enable_interrupt(); statement. To my surprise, this code segment was still being interrupted! To see if the __disable_interrupt line was functioning correctly, I opened the Registers view in CCS and observed SR while stepping over the __disable_interrupt line. I saw that the GIE bit in SR remained set. As I continued stepping, GIE was cleared only when the processor entered the interrupt. However, GIE is automatically cleared on entering an interrupt, and set on exit, correct?
Why are these intrinsic operators not working for me? Is there a way to set and clear this bit directly, as I would for PxOUT for instance?
I'm using CCS 7.4.0.00015 for Mac. If you need any further information, let me know! Thanks in advance.