MPC5604B can not enter the interrupt service routine

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5604B can not enter the interrupt service routine

1,415件の閲覧回数
jeffcharles
Contributor III

Hi,

PIT channel 0 can work in the debug mode, the status of  related registers are shown in the attachments. But it can not enter the ISR, my configurations and ISR about INTC like this, the whole codes are in the attachments.

void intc_init(void)
{    
    /* Initialization of the exception handlers and INTC */
    EXCEP_InitExceptionHandlers();
    INTC_InitINTCInterrupts();
    
    /* Enable interrupts in INTC:
     * PIT channel 0
     *
     */
    INTC_InstallINTCInterruptHandler(pit_ch0_isr, 59, 0);    /* PIT channel 0 priority: 0 */
    
    /* Lower current priority - to enable INTC to process interrupts */
    INTC.CPR.R = 0x0;
}


/*    
 *    PIT channel 0 interrupt handler
 */
void pit_ch0_isr(void)
{
    PIT.CH[0].TFLG.R = 0x1;
    SIU.GPDO[0].B.PDO = ~ SIU.GPDO[0].B.PDO;
}

Please help me to solve the problem,thanks!

ラベル(1)
タグ(2)
2 返答(返信)

1,244件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

You have to have PIT interrupt priority other then 0 if you want to trigger IVOR4 (external interrupt).

pastedImage_1.png

Peter

1,244件の閲覧回数
jeffcharles
Contributor III

Hi Peter,

Thank you! The problem has been solved.

0 件の賞賛