In SX Microcontrollers, SX/B Compiler and SX-Key Tool, vchaney wrote: Thank you for responding, mojorizing. I first had a problem where it always acted as if there was an interrupt in the first part of the program, even if there wasn't. Somehow in the process of trying to correct it, now it acts as if there is never a second ball interrupt. So, I made a short section to keep it clear of interrupt, then hit the switch a second time to see where it will accept an interrupt, and where not. I tried clearing the runFlag at the beginning, one-third, and two-thirds through the trouble section, and it will still not detect the interrupt during the section where the runFlag is available to be set by the interrupt routine. For the first ball, I can achieve recognition of the ball through polling the switch or by interrupt, and either way works. When I clear the runFlag at the beginning, it still will not detect a second ball interrrupt during that troublesome section, and has no trouble detecting the second ball in the later section. So I am still not working, but I appreciate your help! Thank you. Vic ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=412878#m413026 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)