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.

CCS/TMS320F28069M: EPwm timer interrupts and real time interrupts

Part Number: TMS320F28069M
Other Parts Discussed in Thread: TMS320F28069

Tool/software: Code Composer Studio

Hi,

Among the examples for the TMS320F28069, there are two EPwm interrupt examples named, timer interrupts and real time interrupts. I am quite new to the C2000 MCU line up, and I find it difficult to the understand the difference between the two types of interrupts. If its possible, I would like to know the key main differences of the two types of interrupts, and how the execution differs with respect to the main loop of the program.

Thank you,

Nisal

  • Nisal,

    largely these two examples appear to be very similar. "timer interrupts" seems to setup 4 PWM channels while "real-time interrupts" only sets up one. Additionally the "real-time" version toggels an LED.

    The difference is that DBIER feature can easily be enabled/disabled in the "real-time interrupts" example to show the user how this mode of operation works. The way that interrupts are handled is slightly different, below is a short excerpt from the TRM, please see the TRM for a full description.

    "

    The Debug Interrupt Enable Register (DBGIER) is used only when the CPU is halted in real-time
    emulation mode. An interrupt enabled in the DBGIER is defined as a time-critical interrupt. When the CPU
    is halted in real-time mode, the only interrupts that are serviced are time-critical interrupts that are also
    enabled in the IER. If the CPU is running in real-time emulation mode, the standard interrupt-handling
    process is used and the DBGIER is ignored.

    "

    Regards,
    Cody