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.

TMS320F28035: Setting up CLKDIV and HSPCLKDIV

Part Number: TMS320F28035


Hi I am using the following code to Set up CLKDIV and HSPCLKDIV in my init function.

I am not able change the scalar ie.e CLKDIV anf HSPCLKDIV.

SysCtrlRegs.PCLKCR1.bit.EPWM1ENCLK = 1;
SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC = 0;
EPwm1Regs.TBCTL.bit.CLKDIV = 0x6; 
EPwm1Regs.TBCTL.bit.HSPCLKDIV = 0x6;
SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC = 1;

Regards

Sagar