> >Yes. Maybe what is happening is simply that using the WR bit simply >doesn't work, whereas the EEIF bit >does. Makes me wonder if the two bits really change at the same time. If I had this hardware in front of me I would try a loop that polls and stores the state of the bits (in RAM). Then peek at the results to see what happened. Kind of like a graph, but very quick and dirty. Have to adjust some delay in between samples so the event fits in RAM. Another thought is that it takes some time to wake from sleep, and that could affect your success rate (as opposed to the theory that the sleep-int-wake method is actually correct). I know it's all working now, but, well, we /are/ engineers and can't stop wondering about it. Anyway, good thread about another PIC quirk. I shall mark it and save it. Barry -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist