>> Is there any real application for these damned functions??? >> > Think of keypads Pretty sure IOC is a legacy function of the earliest PICs for interfacing a 4 x 4 keypad on PortB. Drive from the lower nybble and detection by the upper. I've considered using it a few times but found it would be troublesome. Plan B usually is something like diode-OR inputs to an interrupt pin and then poll -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist