Tool/software: Code Composer Studio
Hi,
i had few questions regarding the High Resolution PWM OF f28397D processor. Also i want to confirm few things to avoid confusion regarding clocks for PWM and HRPWM.
a) What is the default CPU Frequency of F2837D? As per datasheet, it says it is 200Mhz. I haven't written anything on SYSCLKDIVSEL regs and PLL Regs. So assuming it is 200 Mhz, please confirm?
Regarding EPWM:
b) If the default CPU Frequency is 200 Mhz. and if i don't write anything on EPWMCLKDIV which will keep the CPU Frequency (coming from PLLSYSCLK channel) as it is (rather than dividing it by 2) then our EPWMCLK should be 200Mhz as well if i am not wrong, please confirm?
After EPWMCLK, i am using these formulas for TBPRD Reg.
TBCLK Frequency = EPWMCLK/(HSPCLKDIV*CLKDIV)
TBPRD = TBCLK Frequency / 2* PWM Frequency.
Please confirm these formulas because PWM is working fine
Regarding HRPWM:
c) If we see the above clock architecture, it tells that after EPWMCLKDIV, the same clock is feeded to Both HRPWM and EPWM. So if EPWMCLK= 200Mhz, and if we don't use HSPCLKDIV and CLKDIV, then we should be getting TBCLK= 200Mhz for HRPWM but as i tested the HRPWM, even setting HSPCLKDIV and CLKDIV to 1, i am getting TBCLK= 100Mhz, why is it so? am i missing something? do the above formulas for EPWM apply for HRPWM as well? Please point out the conceptual mistakes
Thanks, answers awaited...

