English
Language : 

AT89LP2052 Datasheet, PDF (11/89 Pages) ATMEL Corporation – 8-bit Microcontroller with 2/4-Kbyte Flash
AT89LP2052/LP4052 [Preliminary]
11. Reset
During reset, all I/O Registers are set to their initial values, the port pins are tri-stated, and the
program starts execution from the Reset Vector, 0000H. The AT89LP2052/LP4052 has four
sources of reset: power-on reset, brown-out reset, external reset, and watchdog reset.
11.1
Power-on Reset
A Power-on Reset (POR) is generated by an on-chip detection circuit. The detection level is
nominally 1.4V. The POR is activated whenever VCC is below the detection level. The POR cir-
cuit can be used to trigger the start-up reset or to detect a supply voltage failure in devices
without a brown-out detector. The POR circuit ensures that the device is reset from power-on.
When VCC reaches the Power-on Reset threshold voltage, the POR delay counter determines
how long the device is kept in POR after VCC rise. The POR signal is activated again, without
any delay, when VCC falls below the POR threshold level. A Power-on Reset (i.e. a cold reset)
will set the POF flag in PCON.
11.2
Brown-out Reset
The AT89LP2052/LP4052 has an on-chip Brown-out Detection (BOD) circuit for monitoring the
VCC level during operation by comparing it to a fixed trigger level. The trigger level for the BOD is
nominally 2.2V. The purpose of the BOD is to ensure that if VCC fails or dips while executing at
speed, the system will gracefully enter reset without the possibility of errors induced by incorrect
execution. When VCC decreases to a value below the trigger level, the Brown-out Reset is imme-
diately activated. When VCC increases above the trigger level, the BOD delay counter starts the
MCU after the time-out period has expired.
11.3
External Reset
The RST pin functions as an active-high reset input. The pin must be held high for at least two
clock cycles to trigger the internal reset. RST also serves as the In-System Programming (ISP)
enable. ISP is enabled when the external reset pin is held high and the ISP Enable fuse is
enabled.
11.4
Watchdog Reset
When the Watchdog times out, it will generate an internal reset pulse lasting 16 clock cycles.
Watchdog reset will also set the WDTOVF flag in WDTCON. To prevent a Watchdog reset, the
watchdog reset sequence 1EH/E1H must be written to WDTRST before the Watchdog times
out. A Watchdog reset will occur only if the Watchdog has been enabled. The Watchdog is dis-
abled by default after any reset and must always be re-enabled if needed.
12. Power Saving Modes
The AT89LP2052/LP4052 supports two different power-reducing modes: Idle and Power-down.
These modes are accessed through the PCON register.
11
3547A–MICRO–3/05