In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote: It took me a sec, but I see the your are creating a pulsout with this. RBC = RBC XOR mask ' Invert bit PAUSE 25 ' PULSOUT x, 100, 25 = 25 mSec RBC = RBC XOR mask ' invert bit Took me a second to catch that. :) So I should define an Array of Bit Positions. What is the Best Way to load the Array with Bit Position info. BitPos(0) Pin RC.3 %0000_0000_0000_1000 BitPos(1) Pin RC.2 %0000_0000_0000_0100 BitPos(2) Pin RC.1 %0000_0000_0000_0010 BitPos(3) Pin RC.0 %0000_0000_0000_0001 BitPos(4) Pin RB.3 %0000_1000_0000_0000 BitPos(5) Pin RB.2 %0000_0100_0000_0000 BitPos(6) Pin RB.1 %0000_0010_0000_0000 BitPos(7) Pin RB.0 %0000_0001_0000_1000 Am I thinking of this in the right way? I'd test it but I 'm not at home. Regards, Eric ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=173886#m175392 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)