In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: I usually use MASK equ value ;clear bits for unused inputs mode $09 clr w mov !rb,w ;clear wkpnd_B and w,#MASK ;clear unused pins or rbstatus,w ;add new pin interrupts to status byte This allows also to delay pin interrupts to main code if allowed (for example, a button press). Once a pin interrupt task is completed, the appropiate bit in rbstatus is cleared. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92178#m92610 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)