;************************************************************* ;* ;* Auszug aus dem Datenblatt des ATmega8, S.32: ;* ;* ------------------------------------------------ ;* "...Only an External Reset, a Watchdog Reset, ;* a Brown-out Reset, a Two-wire Serial Interface address ;* match interrupt, or an external level interrupt ;* on INT0 or INT1, can wake up the MCU." ;* ------------------------------------------------ ;* ;* Hier nun der Nachweis, dass auch die Timer-Interrupts ;* (hier TC0-Overflow- und TC1-OutputCompare-Interrupts) ;* ein Aufwachen verursachen können! ;* ;************************************************************* .include "m8def.inc" .def tmp = R16 .cseg .org 0 rjmp reset .org $9 rjmp powerdown ;TC0-Overflow-Interrupt .org $6 rjmp aufwachen_trotz_Datenblatt ;TC1-OutputCompareMatchA-Interrupt .org $13 reset: ldi tmp, LOW(RAMEND) out SPL, tmp ldi tmp, HIGH(RAMEND) out SPH, tmp ldi tmp, (1<