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: TMS320F28335 epwm interrupt

Part Number: TMS320F28335

Hello All,

I am writing a control code for an inverter in F28335. I usually write the control code within the epwm interrupt isr. However, can i write the control code outside the isr on an infinite for loop, and then set EPwm1Regs.CMPA.half.CMPA=duty ( duty is calculated from the control code) without using the epwm interrupt?

Do i need to use the epwm interrupt for generating pwm pulses for my converter? 

regards

  • Hi Debanjan,

    This totally depends on your application & feature requirement. Generally one uses the ePWM timer of the module that is not used to generate pulses for converter. You've another option to use CPU_timer instead of ePWM timer.
    My suggestion would be to embed control code only inside a timed event and not in an infinite while or for loop!

    Regards,
    Gautam