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.
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 :)
I am using the example from the v130 folder
It looks like the comment is just wrong. Check out the equation for up count mode on pg 249 of the 2806x TRM:
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.