In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Kevin, You said the PWMs aren't"holding their values." How much time are giving them to hold their values? In looking at your original program (and guessing the new version looks basically like Bean's), I see a CPU running at full speed through a series of loops and updating the PWM command as fast as possible. Without some mechanism to wait a finite amount of time between each PWM update, you'll never get them to "hold their value" since you keep changing it as fast as you can. You need some sort of constant timebase to let you update the PWM values at regular intervals, like say 10 or 20 times a second. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=118695#m118747 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)