Hi,
I am using the F28069 controlCARD with the docking station and I am having some strange issues with Example_2806xClaAdcFir from ControlSuite (latest version). The program runs, but ePWM1 produces a 10kHz waveform instead of a 20kHz one as discribed in the example comments. It appears that the PWM module clock is running at 20MHz when it is programmed to run at 40MHz. I did not change any of the example code, and I checked the registers for ePWM1 and they appear to be set correctly: namely TBCTL = 0xC080 which should set TBCLK = SYSCLKOUT / 2.
I have checked the system clock using XCLK and have confirmed that it is running at 80MHz. Any insite into why the PWM clk appears to be half its expected value would be appreciated.
Thanks,
Mark
Mark,
Can you verify which version of the example you are using in controlSUITE? Inside the f2806x folder there will be a number of v1xx folders. Please let me know which one the example resides in you are using.
I know you said latest version, but just double checking :)
Kris
I am using the example from the v130 folder
Thanks Mark,
It looks like the comment is just wrong. Check out the equation for up count mode on pg 249 of the 2806x TRM:
http://www.ti.com/lit/ug/spruh18c/spruh18c.pdf
If you plug in the numbers used in the example it comes out to 10 KHz (with TBCLK at 40 MHz). I will make sure the comment gets corrected in the next revision. Thanks for pointing this out.
forgot that it toggled when the counter equals zero in this example, everything works as it should.