In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Kevin, When you have trouble debugging something, the key is to simplify. Instead of trying to get all three PWM loops working simultaneously, write a version of the program with a single PWM loop. If you can get the single PWM working inside a loop (with the LED getting brighter and darker), then start adding back the other PWMs. If you can't get a PWM working in a loop, go simpler. For example, create a program that just starts up, sets a PWM value, and then goes into an infinite loop. If that works, try it with a different value for the PWM and check that the LED is brighter or draker as expected by the new value. This at least proves that the PWM command is working as you expect it to. The basic idea is to keep reducing to something simpler and simpler until you get the first success. After that, start adding back complexity until it fails and then you can zero in on what might be causing the problem. [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#m118733 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)