I would like to use WDT to wake-up ATTiny11 from the power-down mode. Do you have any sample programs that demonstrate this capability? I think that my problem is branching the code execution after the WDT causes a reset to occur because I can see some pins wiggle at 1.8 second intervals. I have attached a short code segment.
Reset:
ldi Temp, MCUSR
sbrs Temp,0
rjmp LED_Control ;Determine if RESET caused by POR or WDI
InitIntr: ;desired destination of power on reset
clr Temp ;Set Temp= $0
.... ;code continues to initialize processor
;but I don't want it to go here on WDT interrupt
LED_Control: ; desired destination of WDT interrupt
Any ideas?