Scott Dattalo wrote: > But what about the other part of what I posted. Is it really > necessary to double-read PORTB during interrupt-on-change interrupt? There was some kind of issue regarding that. I remember a problem a long time ago that was fixed by doing that, and I've just copied it that way ever since and haven't had a problem. It's been so long that I don't remember the details of exactly what the problem was or why the second read fixed it. I just looked at the data sheet again, and didn't see a good reason. Then again, I sortof remember this was about something that wasn't in the data sheet... ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.