In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: Hi Ray, I copied your SASM code from your post and pasted it into the SX-Key editor just to make sure that I'm using an exact copy of your code. Then hooked up a pushbutton for the IR input and an LED on the Professional Development Board. Then I did a "Run", and the program worked as expected. Next, I did a "Program", powered down the system, removed the SX-Key, inserted a 50 MHz resonator, and powered up the system again. On my setup, the program still runs as expected. Actually, "Program" and "Run" are very similar SX-Key operations: Both first launch SASM to assemble the source code, and then start a programming sequence. "Program" terminates after the device has been programmed. "Run" automatically starts the clock generator that is on-board of the SX-Key. The clock frequency is set to what you have specified with the FREQ directive in your program. The clock signal is fed from the SX-Key into the SX via the OSC1 pin. In both cases, the SX program memory should contain the same code, and this is exactly the code also required to run the SX stand-alone with a resonator attched. (For debugging, the code will be a bit different though, but this is not the question here). Just a crazy question: Did you check if the resonator you are using is a 50 MHz type, or did you plug in the 4 MHz type that also comes with the SXTech board by mistake?. When using the 4 MHz resonator, the program should work as well but the LED will stay on over 32 times longer, making you believe that the program does not work correctly. Merry Christmas to you and all the others on the forum. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=101673#m101964 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)