AT89LP4052 Atmel Corporation, AT89LP4052 Datasheet - Page 51

no-image

AT89LP4052

Manufacturer Part Number
AT89LP4052
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89LP4052

Flash (kbytes)
4 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
15
Spi
1
Uart
1
Sram (kbytes)
0.25
Operating Voltage (vcc)
2.4 to 5.5
Timers
2
Isp
SPI
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP4052-16PI
Manufacturer:
ITT
Quantity:
10
Part Number:
AT89LP4052-16SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
AT89LP4052-16XU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
AT89LP4052-20SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
AT89LP4052-20SU
Manufacturer:
ATMEL
Quantity:
3 100
Part Number:
AT89LP4052-20XI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
21. Programmable Watchdog Timer
3547J–MICRO–10/09
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. 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 WDT is disabled by Reset and during Power-down mode. When the WDT times out
without being serviced, an internal RST pulse is generated to reset the CPU. See
the available WDT period selections.
Table 21-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:
PS2
*The WDT time-out period is dependent on the system clock frequency.
0
0
0
0
1
1
1
1
MOV WDTRST, #01Eh
MOV WDTRST, #0E1h
Watchdog Timer Time-out Period Selection
WDT Prescaler Bits
PS1
0
0
1
1
0
0
1
1
PS0
0
1
0
1
0
1
0
1
AT89LP2052/LP4052
(Clock Cycles)
Period*
1024K
2048K
128K
256K
512K
16K
32K
64K
Table 21-1
for
51

Related parts for AT89LP4052