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.

TMS320F28035: Timer0 interrupt disabled

Expert 1190 points

Part Number: TMS320F28035

Hi after  IER=0x20  is added to main, the source does not enter the timer0 interrupt. 

After removal, the timer interrupt is working. Why does IER=0x20 effect timer0 interrupt and  what is it's purpose?

the code s from the SPI loopback Int

PieCtrlRegs.PIECTRL.bit.ENPIE = 1;   // Enable the PIE block
PieCtrlRegs.PIEIER6.bit.INTx1=1;     // Enable PIE Group 6, INT 1
PieCtrlRegs.PIEIER6.bit.INTx2=1;     // Enable PIE Group 6, INT 2
IER=0x20;  

  • JW,

    Timer0 interrupt (1.7) is connected to PIE group 1 (core INT1). When you included 'IER=0x20;' the core INT1 line is disabled. To enable the Timer0 interrupt and the SPI interrupts in group 6 (shown in your question) you will need to use 'IER |= 0x0021;'. This will enable group 6 and group 1 interrupts (core INT6 and core INT1 in the IER).

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken