In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: You cannot define pins as variables. You CAN use a bit mask to control them. For example to set each bit in RC high you'd do something like: FOR temp = 0 TO 7 temp2 = 1 << temp RC = RC OR temp2 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=185293#m185312 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)