29
ATmega161(L)
1228B–09/01
Figure 28.
Brown-out Reset during Operation
Watchdog Reset
When the Watchdog times out, it will generate a short reset pulse of 1 XTAL cycle dura-
tion. On the falling edge of this pulse, the delay timer starts counting the Time-out period
(t
TOUT
). Refer to page 58 for details on operation of the Watchdog.
Figure 29.
Watchdog Reset during Operation
MCU Status Register –
MCUSR
The MCU Status Register provides information on which reset source caused an MCU
reset.
• Bits 7..4
–
Res: Reserved Bits
These bits are reserved bits in the ATmega161 and always read as zero.
• Bit 3
–
WDRF: Watchdog Reset Flag
This bit is set if a Watchdog reset occurs. The bit is cleared by a Power-on Reset or by
writing a logical “0” to the flag.
VCC
RESET
TIME-OUT
INTERNAL
RESET
V
BOT-
V
BOT+
t
TOUT
Bit
7
6
5
4
3
2
1
0
$34 ($54)
–
–
–
–
WDRF
BORF
EXTRF
PORF
MCUSR
Read/Write
R
R
R
R
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
See Bit Description