>I just wanted to reinforce something that Drew mentioned but did not >emphasize enough: even WRITING to port B can cause you to miss >interrupts! According to Andy Warren, writes are preceded with a dummy >read. I have verified this behavior on a 12c671. You can't touch port B >at all if you want the interrupt on change to be reliable. Well, as I mentioned, you *can* use this feature for this purpose in conjunction with normal portb i/o, but only if you are careful to access the port in specific time intervals in which interrupts are not expected. However, writes are not preceded by a "dummy read." It is a normal, legitimate read, and actually reads the values on the pins. The bits are modified, then the port latches are written with the new values. Perhaps this is what you really meant, but I think the term "dummy" is misleading. --Andrew _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- 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