In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: There are several things that I would change. 1st Use "RESET Start" and put a Start label where you want your program to start at 2nd use this to set rd.0 to an output mov w,#$1F mov m,w mov !rd,#%11111110 3rd Because of your code as soon as you turn the LED on you go right back and turn it off, I see no point to the code. If you want the LED pin to go low when the IRPin goes low then just do this: Main: MOVB LEDon,IRPin JMP Main There is no reason why the number of NOPs would make it not run. It's not the SX52's fault. There is something funky in the setup. I would try removing the IR receiver and just connect the pin with a wire to Gnd or Vcc. Keep trying different things... Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=100433#m100636 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)