In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: No you cannot use a variable for a pin. In SX/B pins are NOT numbered like they are on the stamps. When the PWM command is converted to assembly code the pin must be a constant. You'll need to use a different PWM command for each pin. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=129908#m129911 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)