25
ATmega161(L)
1228B–09/01
Reset Sources
The ATmega161 has four sources of reset:
•
Power-on Reset. The MCU is reset when the supply voltage is below the Power-on
Reset threshold (V
POT
).
•
External Reset. The MCU is reset when a low level is present on the RESET pin for
more than 500 ns.
•
Watchdog Reset. The MCU is reset when the Watchdog timer period expires and
the Watchdog is enabled.
•
Brown-out Reset. The MCU is reset when the supply voltage V
CC
falls below a
certain voltage.
During reset, all I/O registers are then set to their initial values and the program starts
execution from address $000. The instruction placed in address $000 must be a JMP
(relative jump) instruction to the reset handling routine. If the program never enables an
interrupt source, the interrupt vectors are not used and regular program code can be
placed at these locations. The circuit diagram in Figure 24 shows the reset logic. Table 3
and Table 4 define the timing and electrical parameters of the reset circuitry
Figure 24.
Reset Logic
MCU Status
Register (MCUSR)
Brown-Out
Reset Circuit
BODEN
BODLEVEL
Delay Counters
CKSEL[2:0]
CK
Full
PORF
BORF
EXTRF
WDRF
DATA BUS