Other Parts Discussed in Thread: C2000WARE
Hello,
I am using an EPWM1 module to control the buck converter. The switching frequency of the buck converter is 100 kHz. The EPWM1 is operating in up-down count mode with a TBPRD of 300.
To provide more time for the execution of long code, I want to run the ADC ISR at 10 kHz (1/10th of the switching frequency).
I want the sampling instant to be at the peak value (PRD value) of the 100 kHz triangular wave.
I am unable to achieve this by making TBPRD of EPWM4 = 3000 and TBPHS of EPWM4 = 150.
Many thanks for your kind help.