This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

中断初始化的问题

你好,我采用你们官网给的把中断的入口打开放在asm文件的例程,我的中断就正常,但是不用这个asm文件,我调用你们的intcInit,然后再初始化中断,这个时候我的定时器中断每次跑个30多次就不跑了,另外就是我用的下面这个例程,不适用    IER = IER|(1<<14);这句话我就不进中断,但是我看别的公司的代码是可以的,他们就是不带asm文件,也没有    IER = IER|(1<<14);
    IER = IER|(1<<13);这两句话

    intcInit();

    RegisterInterrupt(CSL_GEM_TINTLN, CSL_INTC_VECTID_14 , (CSL_IntcEventHandler)Timer_ISR);
    RegisterInterrupt(CSL_GEM_TINT3L, CSL_INTC_VECTID_13 , (CSL_IntcEventHandler)Timer_ISR2);

    IER = IER|(1<<14);
    IER = IER|(1<<13);

    TM6657_TIMERIRQ_ENABLE(500);
    while(1)
    {

        if(timer_flag1)
        {
            timer_flag1= 0;

            TM6657_TIMERIRQ_ENABLE(500);

        }
    }