AnsweredAssumed Answered

How to configure DEC

Question asked by xiaofan gu on May 6, 2018
Latest reply on May 23, 2018 by David Tosenovjan

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?

Outcomes