Thank you for your support and help.
Right now I am trying to make ePWM1A working.
Usually – PWM setup is relatively easy but his time – ePWM1A is not working as expected.
This problem with ePWM1 is getting urgent for us.
I use the following settings.
ePWM1A output shows no activity. (The PINMUX5 set correctly - I checked it)
TBCNT register (which is the counter itself) is always =’0’.
When I am writing something to TBCNT – it stays unchanged.
That means TBCNT is not incrementing.
I don’t see any “enable bits for TBCNT. The TBCLK is defined as SYSCLKOUT2/2 = 80MHz.
TBCNT register is a counter itsef. Is it correct?
TBCNT must increment with my registyers settings. Is it correct?
Will I see the TBCNT running when EPWM is working correctly?
Can you give me the idea why TBCNT is not running?
Can you check if the following post helps
http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/43896.aspx#153579 (this is for OMAPL137/C6747, but the initialization steps should be very similar for OMAPL138)
The key thing to look for would be the SUSPRC register in SYSCFG , as well as TBCLKSYNC bit in CFGCHIP1 also in SYSCFG module.
Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.
Thank you for your help.
I set TBCLKSYNC bit in CFGCHIP1 and EPWM1A is running after that.
I did not change the default in SUSPSRC register in OMAP-L138 SYSCFG module.
I use GEL file to initialize EPWM1A.
One thing looks strange: I need to run GEL twice for EPWM1A to start running.
After the first GEL run - EPWM1A output has an output of ~VDD/2 (~1.6V in my case).
I checked the registers - they all set OK after the first GEL run.
Can you give me the idea - why this happened?
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.