In SX Microcontrollers, SX/B Compiler and SX-Key Tool, roondog wrote: I have a 220 ohm resistor connected to the RB0 pin to the bottom left side of the pushbutton and a jumper wire from Vdd connected to the upper left side of the pushbutton. A 10 kohm resistor from the top right side of the pushbutton to Vss. The LED is connected to Vss and a 470 ohm resistor connected to the RB7 pin. Is the code the same if I use a LED in place of the piezoelectric speaker that was originally used in the code? Also, I would like the pushbutton (RBO) to be my only input and the LED (RB7) to be my only output but when I put in: [b]mov !rb,#$01[/b] (i.e. 00000001) the LED light comes on automatically with or without the pushbutton pressed. This code doesn't seem that complicated but I've run into many problems. I can easily code this in PBASIC for the BS2 but assembly is new to me. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=429713#m430464 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)