ATTINY26L8SU SL383 Atmel, ATTINY26L8SU SL383 Datasheet - Page 80

no-image

ATTINY26L8SU SL383

Manufacturer Part Number
ATTINY26L8SU SL383
Description
MCU 8-Bit ATtiny AVR RISC 2KB Flash 3.3V/5V 20-Pin SOIC T/R
Manufacturer
Atmel
Datasheet
Watchdog Timer
Watchdog Timer Control
Register – WDTCR
80
ATtiny26(L)
The Watchdog Timer is clocked from a separate On-chip Oscillator which runs at 1
MHz. This is the typical value at V
other V
interval can be adjusted from 16 to 2048 ms. The WDR – Watchdog Reset – instruction
resets the Watchdog Timer. Eight different clock cycle periods can be selected to deter-
mine the reset period. If the reset period expires without another Watchdog Reset, the
ATtiny26(L) resets and executes from the Reset Vector. For timing details on the Watch-
dog Reset, refer to page 36.
To prevent unintentional disabling of the Watchdog, a special turn-off sequence must be
followed when the Watchdog is disabled. Refer to the description of the Watchdog Timer
Control Register for details.
Figure 43. Watchdog Timer
• Bits 7..5 – Res: Reserved Bits
These bits are reserved bits in the ATtiny26(L) and will always read as zero.
• Bit 4 – WDCE: Watchdog Change Enable
This bit must be set when the WDE bit is written to logic zero. Otherwise, the Watchdog
will not be disabled. Once written to one, hardware will clear this bit after four clock
cycles. Refer to the description of the WDE bit for a Watchdog disable procedure. In
Safety Level 1 and 2, this bit must also be set when changing the prescaler bits.
• 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 be cleared only when the
WDCE bit is set(one). To disable an enabled Watchdog Timer, the following procedure
must be followed:
Bit
$21 ($41)
Read/Write
Initial Value
CC
levels. By controlling the Watchdog Timer prescaler, the Watchdog Reset
R
7
0
WATCHDOG
RESET
WDP0
WDP1
WDP2
WDE
Normally 1 MHz
R
6
0
R
5
0
CC
= 5V. See characterization data for typical values at
WDCE
R/W
4
0
WDE
R/W
3
0
PRESCLALER
WATCHDOG
MCU RESET
WDP2
R/W
2
0
WDP1
R/W
1
0
WDP0
R/W
0
0
1477J–AVR–06/07
WDTCR

Related parts for ATTINY26L8SU SL383