Electronic Components Datasheet Search
  English  ▼

X  

ATTINY13 Datasheet(PDF) 39 Page - ATMEL Corporation

Part # ATTINY13
Description  8-bit Microcontroller with 1K Bytes In-System Programmable Flash
PDF  177 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATTINY13 Datasheet(HTML) 39 Page - ATMEL Corporation

Back Button ATTINY13 Datasheet HTML 35Page - ATMEL Corporation ATTINY13 Datasheet HTML 36Page - ATMEL Corporation ATTINY13 Datasheet HTML 37Page - ATMEL Corporation ATTINY13 Datasheet HTML 38Page - ATMEL Corporation ATTINY13 Datasheet HTML 39Page - ATMEL Corporation ATTINY13 Datasheet HTML 40Page - ATMEL Corporation ATTINY13 Datasheet HTML 41Page - ATMEL Corporation ATTINY13 Datasheet HTML 42Page - ATMEL Corporation ATTINY13 Datasheet HTML 43Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 177 page
background image
39
ATtiny13
2535G–AVR–01/07
Watchdog Timer Control
Register - WDTCR
• Bit 7 - WDTIF: Watchdog Timer Interrupt Flag
This bit is set when a time-out occurs in the Watchdog Timer and the Watchdog Timer is
configured for interrupt. WDTIF is cleared by hardware when executing the correspond-
ing interrupt handling vector. Alternatively, WDTIF is cleared by writing a logic one to the
flag. When the I-bit in SREG and WDTIE are set, the Watchdog Time-out Interrupt is
executed.
• Bit 6 - WDTIE: Watchdog Timer Interrupt Enable
When this bit is written to one and the I-bit in the Status Register is set, the Watchdog
Interrupt is enabled. If WDE is cleared in combination with this setting, the Watchdog
Timer is in Interrupt Mode, and the corresponding interrupt is executed if time-out in the
Watchdog Timer occurs.
If WDE is set, the Watchdog Timer is in Interrupt and System Reset Mode. The first
time-out in the Watchdog Timer will set WDTIF. Executing the corresponding interrupt
vector will clear WDTIE and WDTIF automatically by hardware (the Watchdog goes to
System Reset Mode). This is useful for keeping the Watchdog Timer security while
using the interrupt. To stay in Interrupt and System Reset Mode, WDTIE must be set
after each interrupt. This should however not be done within the interrupt service routine
itself, as this might compromise the safety-function of the Watchdog System Reset
mode. If the interrupt is not executed before the next time-out, a System Reset will be
applied.
Note:
1. WDTON Fuse set to “0“ means programmed and “1“ means unprogrammed.
• Bit 4 - WDCE: Watchdog Change Enable
This bit is used in timed sequences for changing WDE and prescaler bits. To clear the
WDE bit, and/or change the prescaler bits, WDCE must be set.
Once written to one, hardware will clear WDCE after four clock cycles.
• Bit 3 - WDE: Watchdog System Reset Enable
WDE is overridden by WDRF in MCUSR. This means that WDE is always set when
WDRF is set. To clear WDE, WDRF must be cleared first. This feature ensures multiple
resets during conditions causing failure, and a safe start-up after the failure.
• Bit 5, 2..0 - WDP3..0: Watchdog Timer Prescaler 3, 2, 1 and 0
Bit
7654
321
0
WDTIF
WDTIE
WDP3
WDCE
WDE
WDP2
WDP1
WDP0
WDTCR
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0000
X
0
0
0
Table 16. Watchdog Timer Configuration
WDTON(1)
WDE
WDTIE
Mode
Action on Time-out
100
Stopped
None
1
0
1
Interrupt Mode
Interrupt
1
1
0
System Reset Mode
Reset
111
Interrupt and System
Reset Mode
Interrupt, then go to
System Reset Mode
0
x
x
System Reset Mode
Reset



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com