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);
best regards
Bassel
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.