Datasheet
41
ATmega48PA/88PA/168PA [DATASHEET]
9223F–AVR–04/14
11. System Control and Reset
11.1 Resetting the AVR
During reset, all I/O registers are set to their initial values, and the program starts execution from the reset vector. For Atmel
®
ATmega168PA the instruction placed at the reset vector must be a JMP – absolute jump – instruction to the reset handling
routine. For the Atmel ATmega48PA and Atmel ATmega88PA, the instruction placed at the reset vector must be an RJMP –
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. This is also the case if the reset vector is
in the application section while the interrupt vectors are in the boot section or vice versa (Atmel ATmega88PA/168PA only).
The circuit diagram in Figure 11-1 on page 42 shows the reset logic. Table 29-5 on page 272 defines the electrical
parameters of the reset circuitry.
The I/O ports of the AVR
®
are immediately reset to their initial state when a reset source goes active. This does not require
any clock source to be running.
After all reset sources have gone inactive, a delay counter is invoked, stretching the internal reset. This allows the power to
reach a stable level before normal operation starts. The time-out period of the delay counter is defined by the user through
the SUT and CKSEL fuses. The different selections for the delay period are presented in
Section 9.2 “Clock Sources” on page 25.
11.2 Reset Sources
The Atmel ATmega48PA/88PA/168PA 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 longer than the minimum pulse
length.
● Watchdog system reset. The MCU is reset when the watchdog timer period expires and the watchdog system reset
mode is enabled.
● Brown-out reset. The MCU is reset when the supply voltage V
CC
is below the brown-out reset threshold (V
BOT
) and the
brown-out detector is enabled.