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.

TMS320F28027: Operating C2000 with unequal switching frequency and sampling frequency

Part Number: TMS320F28027
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.