I'm using an ATTINY88, and putting it to sleep until we receive a wakeup IR command (which is obviously an interrupt).
Here's a code snippet:
wdt_disable(); SMCR=0b00000101; // power down sleep_cpu();
When this executes, the system resets immediately. If I comment out wdt_disable(), the system successfully sleeps, and wakes up when the watchdog timer triggers.
I don't have the watchdog fuse set, so why wouldn't this just let the ATTINY sleep without regard to the watchdog timer?
(The same thing happens if I use the sleep_mode() and related macros.)
Thanks for any tips! This is baffling.