ATMEGA48V_11 ATMEL [ATMEL Corporation], ATMEGA48V_11 Datasheet - Page 49

no-image

ATMEGA48V_11

Manufacturer Part Number
ATMEGA48V_11
Description
8-bit Atmel Microcontroller with 4/8/16K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
11.8
11.8.1
2545T–AVR–05/11
Watchdog timer
Features
Thus, when the BOD is not enabled, after setting the ACBG bit or enabling the ADC, the user
must always allow the reference to start up before the output from the analog comparator or
ADC is used. To reduce power consumption in power-down mode, the user can avoid the three
conditions above to ensure that the reference is turned off before entering power-down mode.
Figure 11-7. Watchdog timer.
The Atmel ATmega48/88/168 has an enhanced watchdog timer (WDT). The WDT is a timer
counting cycles of a separate on-chip 128kHz oscillator. The WDT gives an interrupt or a system
reset when the counter reaches a given time-out value. In normal operation mode, it is required
that the system uses the WDR - watchdog timer reset - instruction to restart the counter before
the time-out value is reached. If the system doesn't restart the counter, an interrupt or system
reset will be issued.
In interrupt mode, the WDT gives an interrupt when the timer expires. This interrupt can be used
to wake the device from sleep-modes, and also as a general system timer. One example is to
limit the maximum time allowed for certain operations, giving an interrupt when the operation
has run longer than expected. In system reset mode, the WDT gives a reset when the timer
expires. This is typically used to prevent system hang-up in case of runaway code. The third
mode, Interrupt and system reset mode, combines the other two modes by first giving an inter-
rupt and then switch to system reset mode. This mode will for instance allow a safe shutdown by
saving critical parameters before a system reset.
Clocked from separate on-chip oscillator
Three operating modes
Selectable time-out period from 16ms to 8s
Possible hardware fuse watchdog always on (WDTON) for fail-safe mode
– Interrupt
– System reset
– Interrupt and system reset
WATCHDOG
RESET
OSCILLATOR
128kHz
WDIE
WDIF
WDE
ATmega48/88/168
WDP0
WDP1
WDP2
WDP3
MCU RESET
INTERRUPT
49

Related parts for ATMEGA48V_11