Hi All,
when I debug the PIT module, I enconter a problem: 'void PIT0_isr(void)' can be executed.
In order find the reason ,I read the PIT_0.TIMER[0].TFLG.B.TIF , and the PIT_0.TIMER[0].TFLG.B.TIF has be set .
Then I add the code :
if(PIT_0.TIMER[0].TFLG.B.TIF)
{
PIT_0.TIMER[0].TFLG.B.TIF=1;
SIUL2.GPDO[32].B.PDO=~SIUL2.GPDO[32].B.PDO;
}
and I used the scope to read the Pin[32],and the result is also right : the timer period is exactly 1ms.
But Why the funciton 'void PIT0_isr(void)' can not be executed?
How can I solve this problem?
Thank you!