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.

TMS320F28388D: ePWM module clocking

Part Number: TMS320F28388D


Hi, I have question about clocking of ePWM modules of TMS320F28388D device.

Im using the General Purpose Timer0 (UP - count mode) and ePWM2 (UP/DOWN - count mode) module.

All CLOCK dividers and prescallers are set to "/1". System CLOCK frequency is 200 MHz.

Timer0 - period is set to 40000. Timer0 period ISR is occured every 200 microseconds (40000 / Fcpu = 40000 / 200000000 = 0.0002s).

To reach same period on ePWM2 TIM=ZERO ISR I must set value EPwm2Regs.TBPRD = 10000. It´s clear, that ePWM is working on base frequency 100MHz.

I toggle GPIO testpins in Timer0Period_ISR and ePWM2Zero_ISR. On oscilloscope test these testpins change their levels with same period 0.0002 sec.

MY QUESTION :

Why can´t I configure ePWM2 module to operate at same Base frequency as Timer0 ? I expext EPwm2Regs.TBPRD = 20000 as half of value CpuTimer0Regs.PRD.all.

Is it possible configure ePWM2 module to operate at no-divided maximal CPU CLOCK 200MHz? I will minimize the ePWM2 pulses grannularity and maximize resolution of PWM.

Thanks and Im waiting for Your answer !