On Friday, September 09, 2011 2:25 PM, "Isaac Marino Bavaresco" wrote: > The OP could also do the following: >=20 > Using a single timer, in the main loop set it for the first servo pulse > width and set the corresponding pin high. > When the timer interrupt occurs, inside the ISR clear the first servo > pin, set the next servo pin to one and program this servo's pulse width, > and so on for the remaining servos. Turn off the pin of servo 'n', turn > on the pin of servo 'n+1' and set the timer to interrupt after the pulse > width of servo 'n+1'. > After the last servo is served set the timer to interrupt after the > remaining time to complete the 20ms frame, and then start over, but this > time the first servo pin is set by the ISR. Won't you get some jitter this way? When I use CCP Compare for the pulse, and freerunning a timer interrupt for the repeat, it is very stable. Friendly regards, Bob --=20 http://www.fastmail.fm - The professional email service --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .