In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ammar wrote: INTERESTING... I don't know what happened. I am gonig to use the oscilloscope or a logic analyzer to make sure that this is a debugger issue or an sx problem. I tried adding a NOP in the main loop and thigns did not work as a matter of fact the interrupt got triggered once and never triggered again and $oe never incremented. I needed two NOPs to make it run smoothly exactly like Bean said!! Then i added two NOP as shown below and the code works like a sharm! all the problems get fixed with just two NOP!! HOW COME? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92453#m92516 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)