AT90LS2343 ATMEL [ATMEL Corporation], AT90LS2343 Datasheet - Page 31

no-image

AT90LS2343

Manufacturer Part Number
AT90LS2343
Description
8-Bit Microcontroller with 2K Bytes of In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT90LS2343-4SI
Manufacturer:
FUJI
Quantity:
12
Watchdog Timer Control
Register – WDTCR
1004D–09/01
• Bits 7..5 – Res: Reserved Bits
These bits are reserved bits in the AT90S2323/2343 and will always read as zero.
• Bit 4 – WDTOE: Watchdog Turn-off Enable
This bit must be set (one) when the WDE bit is cleared. Otherwise, the Watchdog will
not be disabled. Once set, hardware will clear this bit to zero after four clock cycles.
Refer to the description of the WDE bit for a Watchdog disable procedure.
• Bit 3 – WDE: Watchdog Enable
When the WDE is set (one) the Watchdog Timer is enabled and if the WDE is cleared
(zero) the Watchdog Timer function is disabled. WDE can only be cleared if the WDTOE
bit is set (one). To disable an enabled Watchdog Timer, the following procedure must be
followed:
1. In the same operation, write a logical “1” to WDTOE and WDE. A logical “1” must
2. Within the next four clock cycles, write a logical “0” to WDE. This disables the
• Bits 2..0 – WDP2, WDP1, WDP0: Watchdog Timer Prescaler 2, 1 and 0
The WDP2, WDP1 and WDP0 bits determine the Watchdog Timer prescaling when the
Watchdog Timer is enabled. The different prescaling values and their corresponding
time-out periods are shown in Table 11.
Table 11. Watchdog Timer Prescale Select
Note:
Bit
$21 ($41)
Read/Write
Initial Value
WDP2
0
0
0
0
1
1
1
1
be written to WDE even though it is set to “1” before the disable operation starts.
Watchdog.
The frequency of the Watchdog oscillator is voltage-dependent as shown in the Electrical
Characteristics section.
The WDR (Watchdog Reset) instruction should always be executed before the Watchdog
Timer is enabled. This ensures that the reset period will be in accordance with the
Watchdog Timer prescale settings. If the Watchdog Timer is enabled without reset, the
Watchdog Timer may not start counting from zero.
To avoid unintentional MCU resets, the Watchdog Timer should be disabled or reset
before changing the Watchdog Timer Prescale Select.
WDP1
0
0
1
1
0
0
1
1
R
7
0
WDP0
0
1
0
1
0
1
0
1
R
6
0
Number of WDT
Oscillator Cycles
16K cycles
32K cycles
64K cycles
128K cycles
256K cycles
512K cycles
1,024K cycles
2,048K cycles
R
5
0
WDTOE
R/W
4
0
Typical Time-out
at V
47 ms
94 ms
0.19 s
0.38 s
0.75 s
1.5 s
3.0 s
6.0 s
WDE
R/W
AT90S/LS2323/2343
3
0
CC
= 3.0V
WDP2
R/W
2
0
WDP1
R/W
1
0
Typical Time-out
at V
15 ms
30 ms
60 ms
0.12 s
0.24 s
0.49 s
0.97 s
1.9 s
CC
WDP0
R/W
0
0
= 5.0V
WDTCR
31

Related parts for AT90LS2343