I need a sanity check on WDT wake-up from sleep. I thought I understand it, but MPSIM is giving different results. I'm working with a 12F675. I want it to power down via the sleep instruction, but periodically wake up, perform some work, and then go back to sleep. The exact timing between wake-ups is not critical. I interpret table 10-6 in conjunction with the STATUS register to say if WDT occurs after the SLEEP instruction was issued, then both /TO and /PD bits should be cleared (***). In the simulator, the /TO bit is actually set after the WDT, not cleared as I interpreted from the datasheet. Is this a problem with the simulator, or am I doing something fundamentally wrong? To summarize: issue SLEEP command, let the WDT bring the device out of sleep, perform some work, and repeat. Thanks for any insight, Phil Eisermann. (***) what's the convention for writing active-low signals in a text editor? I used "/TO" to indicate "NOT TO", but have also seen !TO used. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist