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.

TMS320F28335: Question about timer0 ISR

Genius 3095 points
Part Number: TMS320F28335


Dear team:

Why even if I don't add this statement (PieCtrlRegs.PIEACK.all = PIEACK_GROUP1) in the program, The program can still enter the interrupt according to the set timing time?

Even if I comment out this sentence, the interrupt can still run continuously, and it can enter the interrupt and execute the interrupt service subroutine every time it reaches the set time.

  • Hi, 

    The line of code you are referencing is intended to acknowledge the interrupt to receive more interrupts from group 1. So commenting that line out will not disable the interrupt.

    Here is a summary of how the PIEACK register works. If a bit reads as a 0, it indicates that the PIE can send an interrupt from the respective group to the CPU.Reading a 1 indicates if an interrupt from the respective group has been sent to the CPU and all other interrupts from the group are currently blocked. Writing a 1 to the respective interrupt bit clears the bit and enables the PIE block to drive a pulse into the CPU interrupt input if an interrupt is pending for that group.

    You can reference the Systems Control and Interrupts Reference Guide (sprufb0d) or Chapter 6.5 in the datasheet, https://www.ti.com/lit/ds/symlink/tms320f28234.pdf, for more information.

    Regards,

    Ozino