In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote: I would shadow copy the WKPND register for handling RB.6. This would be done by handling the WKPND (for both RB.6 and RB.7) in the ISR, copy the value into another register, test for RB.7 and handle it in the ISR. Then in your main code it would check the RB.6 WKPND bit via the shadow register. If you want to be sure an RB.6 event isn't missed (Via a subsequent RB.7 interrupt), OR the WKPND with the shadow register, that way the ISR can set the RB.6 but cannot clear it. Then your mainline code will clear the register upon checking it. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=95872#m96001 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)