Finding some strange issues with using the change on PortB interupts. I've had it running using B0 interupt, to wake from sleep and its been working just fine. I have switches tied to PortB [7:3] so I was thinking of using the switches to wake from sleep, and its partially working. I have the IOCB set to 0xF0, to enable bits [7:4] for the mask, but there seems to be a documentation issue about the RBIF flag in the INTCON register. page 25 of the data sheet has the INTCON register definition and states: the bit is set if bits [5:0] have changed states the bit is clear if none of [7:4] have changed states seems to be a conflict there on what exactly does set the interupt flag. Anyone else ran across the RBIF, assuming it should be [7:4] as that is what other data sheets say. I have 5 switches, but I can tie one to RB0 and use its interupt as well as the upper 4 bits (if they really are available for that). --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist