> I want to use -TO because INTF is cleared in the ISR, and is > therefore not available to test after wake-from-sleep. I could set a > flag in the ISR and check-and-clear it outside, but I'd rather not do > that. I was suggesting that more for testing to find the problem than a clean solution. It might be illuminating to disable interrupts immediately before the sleep and see how the bits come back after wakeup before any other code runs. Is there a CLRWDT in the ISR? If so, could some other interrupt be true on wakeup so that TO gets reset before you can see it in the main code? ... Just grasping at straws. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads