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.

CPU Interrupt Flag Register Test

DINT

PUSH     IFR
POP      @AR7                ; save IFR in AR7

PUSH     @AL
POP      IFR     ; write to IFR
PUSH     IFR
POP      AR4
CMP      AL,@AR4
B   fail_CPU_test,NEQ

PUSH     @AR7
POP      IFR   ; restore IFR

EINT

测试寄存器IFR时,已经关闭中断,测量结束后,再使能中断,PWM 中断容易死掉,Timer0中断正常?

 

请教一下,什么原因?

 

x 出现错误。请重试或与管理员联系。