PIT_isr  not be executed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PIT_isr  not be executed

7,607 次查看
changchen
Contributor II

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!

 

168486_168486.pngpastedImage_1.png168491_168491.pngpastedImage_3.png168487_168487.pngpastedImage_2.png

标签 (1)
24 回复数

473 次查看
petervlna
NXP TechSupport
NXP TechSupport

Did you program ISR vector table according to your ISR?

Place the breakpoint on IVOR4 offset address and step trough your IVOR4 handler prolog to see if the code jumps to your desired ISR.

Peter

0 项奖励
回复

473 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

First of all is good to specify which micro are you using.

Which cut of device?

Peter

0 项奖励
回复

473 次查看
changchen
Contributor II

MPC5746R

0 项奖励
回复

473 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Did you set correctly interrupt priority?

Peter

0 项奖励
回复