AT89LP52-20PU Atmel, AT89LP52-20PU Datasheet - Page 73

IC MCU 8051 8K FLASH SPI 40PDIP

AT89LP52-20PU

Manufacturer Part Number
AT89LP52-20PU
Description
IC MCU 8051 8K FLASH SPI 40PDIP
Manufacturer
Atmel
Series
89LPr
Datasheet

Specifications of AT89LP52-20PU

Core Processor
8051
Core Size
8-Bit
Speed
20MHz
Connectivity
EBI/EMI, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
36
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Processor Series
AT89x
Core
8051
Data Bus Width
8 bit
Data Ram Size
256 B
Interface Type
Serial
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
36
Number Of Timers
3
Operating Supply Voltage
2.7 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Lead Free Status / Rohs Status
 Details
15. Programmable Watchdog Timer
15.1
3709B–MICRO–12/10
Software Reset
The programmable Watchdog Timer (WDT) protects the system from incorrect execution by trig-
gering a system reset when it times out after the software has failed to feed the timer prior to the
timer overflow. By Default the WDT counts CPU clock cycles. The prescaler bits, PS0, PS1 and
PS2 in SFR WDTCON are used to set the period of the Watchdog Timer from 16K to 2048K
clock cycles. The Timer Prescaler can also be used to lengthen the time-out period (see
6-2 on page
times out without being serviced, an internal RST pulse is generated to reset the CPU. See
Table 15-1
Table 15-1.
Note:
The Watchdog Timer consists of a 14-bit timer with 7-bit programmable prescaler. Writing the
sequence 1EH/E1H to the WDTRST register enables the timer. When the WDT is enabled, the
WDTEN bit in WDTCON will be set to “1”. To prevent the WDT from generating a reset when if
overflows, the watchdog feed sequence must be written to WDTRST before the end of the time-
out period. To feed the watchdog, two write instructions must be sequentially executed success-
fully. Between the two write instructions, SFR reads are allowed, but writes are not allowed. The
instructions should move 1EH to the WDTRST register and then 1EH to the WDTRST register.
An incorrect feed or enable sequence will cause an immediate watchdog reset. The program
sequence to feed or enable the watchdog timer is as follows:
A Software Reset of the AT89LP51/52 is accomplished by writing the software reset sequence
5AH/A5H to the WDTRST SFR. The WDT does not need to be enabled to generate the software
reset. A normal software reset will set the SWRST flag in WDTCON. However, if at any time an
incorrect sequence is written to WDTRST (i.e. anything other than 1EH/E1H or 5AH/A5H), a
software reset will immediately be generated and both the SWRST and WDTOVF flags will be
set. In this manner an intentional software reset may be distinguished from a software error-gen-
erated reset. The program sequence to generate a software reset is as follows:
PS2
1. The WDT time-out period is dependent on the system clock frequency.
0
0
0
0
1
1
1
1
for the available WDT period selections.
30) The WDT is disabled by Reset and during Power-down mode. When the WDT
MOV WDTRST, #01Eh
MOV WDTRST, #0E1h
Watchdog Timer Time-out Period Selection
WDT Prescaler Bits
Time-out Period
PS1
0
0
1
1
0
0
1
1
=
------------------------------------------------- -
System Frequency
AT89LP51/52 - Preliminary
2
PS0
(
0
1
0
1
0
1
0
1
PS
+
14
)
×
(
TPS
+
(Clock Cycles)
1
)
Period
1024K
2048K
128K
256K
512K
16K
32K
64K
(1)
Table
73

Related parts for AT89LP52-20PU