Hello,
I need to use DEC in S32DS.Power.2017.r1.And I have configured it.
First time,it can run into DECisr()function,the related registers is look like:
and in the DECisr function,I clear the DIS flag:
__asm("e_lis %0, 0x0800\n\t"
"mttsr %0\n\t"
:"=r" (regi0));//if it is right
but,it seem not to clear DIS bit,and it is still 1.And then,the program can run back to main function successfully,and it cannot run into DECisr() anymore.
so,what's wrong with my progress?
I'm sorry,Its a silly question,Because the MSR[EE] is 0, so it cannot trigger interrupt.But Why MSR[EE] cleared unexpected?
Him it is because EE affects External input (i.e. interrupt controller), decrementer, and fixed-interval timer. See MSR description below from core reference manual:
Sorry,I forgot to mention that the MCU is MPC5634m