In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Meredth, You cannot use math in the SX/B PWM command. You can do it this way... FOR pulseCount = 255 TO 1 STEP -5 PWM led2, pulseCount NEXT Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=121525#m121553 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)