I have an application which needs 6 channel synchronizing PWM. I'm using the ccp pins in the LM3S8938. The application works, but there is a phase shift about 5µsec between timer 0 and timer 1 and 10µsec between timer 0 and timer 2. I think the problem is caused by the 3 command lines to enable the 3 timers at the end of my code.
TimerEnable(TIMER0_BASE, TIMER_BOTH); TimerEnable(TIMER1_BASE, TIMER_BOTH); TimerEnable(TIMER2_BASE, TIMER_BOTH);
is it possible to Enable the 3 timers with 1 command line?
something like this: timerEnable(Timer_BASE_All, Timer_All);
Hello Bassell, the Stellaris products have two kinds of PWMs: one associated with the general purpose timers, as you are using, and the motion control PWMs. The GPTs do not have a means to synchronize across timers. The motion control PWMs do have this capability.
The LM3S8971 and LM3S8962 are Stellaris alternatives that have the motion control PWMs.
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.