In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: If you only needed one you might be able to use the built-in hardware timer. The SX28 has a single 8-bit timer and the SX48 has two 16-bit timers. Those work well for generating PWM. For your application the best method is probably putting the PWM routines in an ISR (Interrupt routine). You can setup the Interrupt internal as something that will work for all your PWM and just use it to update counters for each one of your PWM signals and toggle the output as needed for each counter. You can find some examples: http://forums.parallax.com/forums/default.aspx?f=7&m=310134&g=310158#m310158 http://forums.parallax.com/forums/default.aspx?f=21&p=1&m=73867 ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=372373#m372384 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)