So I have these 12f chips, with 5 outputs and one input. I figure I should connect something up to the input, so I can have some control over what happens on the outputs. switches and serial data are both interesting, but the immediate idea is to connect an IRRC receiver there, so I can control my PIC with my TV's remote. This is an ideal application, I would think, for interrupts. Set the input to interrupt on change to get the "leading edge" of the sequence, then use the timer to get several subsequent interrupts at where the data bits ought to be, and go back to 'change on interrupt' when it's all done. Piece of cake... Except when i read the documentation more carefully, I see that the IoC interrupt is cleared by any IO to the port, and my outputs are being driven all the time. There is even a caveat that IoC interrupts may be missed entirely if the transition occurs during an IO instruction to the port. Hmmph. That doesn't sound good. Does anyone have any experience with how much trouble this is likely to be in real life? You can assume that the output pins are driving a multiplexed array of LEDs, and the IRRC would be used to select a particular pattern, or something like that. So it's not CRITICAL that the commands be detected immediately, but it would be annoying to have the commands detected a couple bits late a significant percentage of the time... Thanks Bill W -- 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