PIT_isr  not be executed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PIT_isr  not be executed

11,439 Views
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

Labels (1)
24 Replies

873 Views
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 Kudos
Reply

873 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

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

Which cut of device?

Peter

0 Kudos
Reply

873 Views
changchen
Contributor II

MPC5746R

0 Kudos
Reply

873 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Did you set correctly interrupt priority?

Peter

0 Kudos
Reply