TMS320C6678芯片,有个全局中断使能位GIE,该位置除了软件手动设置1或0,还有没有其他可能造成该位置自行从1变0,然后又变1,这种自行改变的状态?
程序运行时,GIE的值会自行跳变,但是程序里面除了一开始使能后,就再也没有修改该bit的操作了。
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.
TMS320C6678芯片,有个全局中断使能位GIE,该位置除了软件手动设置1或0,还有没有其他可能造成该位置自行从1变0,然后又变1,这种自行改变的状态?
程序运行时,GIE的值会自行跳变,但是程序里面除了一开始使能后,就再也没有修改该bit的操作了。
当系统中断被触发并且正在处理中断时,GIE会被关闭,也就是会置0,防止其它中断打断。
参考6.2 Globally Enabling and Disabling Interrupts
谢谢您的回答。
我还想请教一下TSR寄存器中的IB位,为什么会在中断没有执行时也会偶尔为1?IB位是在什么情况下会受影响呢?
看一下 4.314 SWENR 和 7.5.3.2 SWENR Instruction
The IB bit in TSR is set to 1. This will be observable only in the case where another exception is recognized simultaneously