Olin wrote: >Yeah, check the INTF bit in INTCON. I have never used the TO bit in STATUS, >but I would have thought it would be 0 after restart due to a watchdog >timeout. 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. and > This smells like something else is going on you aren't thinking >about yet. Indeed. I wonder what it is ... -- ______________________________________ Andrew E. Kalman, Ph.D. aek@pumpkininc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads