In SX Microcontrollers, SX/B Compiler and SX-Key Tool, basicstampede wrote: JonnyMac, in your code ISR_Start: ledBtn = %0000_0000 WKPND_B = ledBtn IF ledBtn.4 = IsOn THEN I think the statement WKPND_B = ledBtn should be reversed to ledBtn = WKPND_B Otherwise, how can ledBtn.4 ever equal IsOn (1) since it was initialized to 0 at beginning of ISR, then written onto WKPND_B? Thanks. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=291549#m291698 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)