> Oh. Rats! I suppose it would be OK if you have the entire port set to > be inputs, as in a keyboard scanner? I'm sure that's an original purpose of PortB - a 4x4 keypad interface You might find something useful here AN566 - Using the Port B Interrupt on Change as an External Interrupt http://ww1.microchip.com/downloads/en/AppNotes/00566b.pdf AN552 - Implementing Wake Up on Keystroke http://ww1.microchip.com/downloads/en/AppNotes/00552e.pdf AN552 Source code http://ww1.microchip.com/downloads/en/AppNotes/00552.zip Interestingly, this application does not use IoC, although the 4x4 keypad is right across PortB (figure 2) AN557 - 4-channel Digital Voltmeter with display and keypad http://ww1.microchip.com/downloads/en/AppNotes/00557c.pdf -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics