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.

F28027 LaunchPad, PWM not giving a constant output frequency

Other Parts Discussed in Thread: TMS320F28027

Hi all,

I am using the TMS320F28027 Piccolo LaunchPad on CCS5.

I am generating a 10Khz PWM, by loading

EPwm3Regs.TBCTL.bit.HSPCLKDIV = 0x03; //HS CLK prescale = 6

EPwm4Regs.TBPRD = 1000; // (60Mhz/6 *10Khz)

but the output frequency keeps varying between 10Khz, 9Khz and 6Khz.

I tried TI website but didn't get detailed document of the PWM module for the Launchpad, they do have documents on HPWM and Enhanced PWM but I wanted more detail on initializing Peripheral clock which triggers the PWM modules.

In the DSP2802X_SysCtrl.C I found it has two Internal Oscillator,  IntOsc1Sel and  IntOsc2Sel, I tried to use either of them but still the output frequency kept changing...

Thanks in advance.

Pankaj