In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Snake like?.... It's actually quite simple, and the PWM routine is something that Guenther created; I just modified it a bit so that the output is pure, that is, it doesn't preset the output and then turn it right back off -- costs a couple cycles but I think this is okay. Glad you found it useful (I've been using that PWM algorithm a lot lately). ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=290361#m290720 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)