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.
您好!
我的程序正确配置 RTI 中断生成、并且 RTI0 ISR "rtiCompare0Interrupt"被逻辑调用(RTIINTFLAG 寄存器等于0)。
您能否说明要检查哪些寄存器、以及如何在 ISR 函数中获得 RTI0、RT1和 RTI2的中断挂起状态标志?
此致、
您好!
当由于比较0匹配而产生的中断挂起时、中断标志0 (RTIINTFLAG 寄存器中的域 INT0)被设定为1、并且如果启用了中断、将生成中断。 根据 TRM (第17.3.27节 RTI 中断标志寄存器(RTIINTFLAG))、将1写入 INT0字段会将其清除。
rtiCompare0中断正在处理此中断。 rtiCompare0Interrupt 的第一个操作是清除 INT0字段:rtiREG1->INTFLAG = 1U;