ATTINY12 ATMEL Corporation, ATTINY12 Datasheet - Page 23

no-image

ATTINY12

Manufacturer Part Number
ATTINY12
Description
8-bit AVR Microcontroller with 1K Byte Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY12-8PC
Manufacturer:
ATM
Quantity:
27 705
Part Number:
ATTINY12-8PC
Manufacturer:
AD
Quantity:
56
Part Number:
ATTINY12-8PC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY12-8SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY12-8SI
Manufacturer:
ATMEL
Quantity:
1 729
Part Number:
ATTINY12-8SU
Manufacturer:
ATMEL
Quantity:
5
Part Number:
ATTINY128SC
Manufacturer:
ATMEL
Quantity:
7 373
Company:
Part Number:
ATTINY12L-4PC
Quantity:
50
Part Number:
ATTINY12L-4SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY12L-4SU
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
ATTINY12V-1SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Watchdog Reset
MCU Status Register –
MCUSR of the ATtiny11
1006D–AVR–07/03
When the Watchdog times out, it will generate a short reset pulse of 1 CK cycle dura-
tion. On the falling edge of this pulse, the delay timer starts counting the Time-out period
(t
Figure 22. Watchdog Reset during Operation
The MCU Status Register provides information on which reset source caused an MCU
reset.
• Bit 7..2 - Res: Reserved Bits
These bits are reserved bits in the ATtiny11 and always read as zero.
• Bit 1 - EXTRF: EXTernal Reset Flag
After a power-on reset, this bit is undefined (X). It will be set by an external reset. A
watchdog reset will leave this bit unchanged.
• Bit 0 - PORF: Power-on Reset Flag
This bit is set by a power-on reset. A watchdog reset or an external reset will leave this
bit unchanged.
To summarize, the following table shows the value of these two bits after the three
modes of reset.
Table 11. PORF and EXTRF Values after Reset
To identify a reset condition, the user software should clear both the PORF and EXTRF
bits as early as possible in the program. Checking the PORF and EXTRF values is done
Bit
$34
Read/Write
Initial Value
TOUT
Reset Source
Power-on
External Reset
Watchdog Reset
). Refer to page 36 for details on operation of the Watchdog.
V
CC
R
7
0
-
R
6
0
-
R
5
0
-
CK
R
4
0
-
Unchanged
Undefined
EXTRF
1
R
3
0
-
R
2
0
-
EXTRF
See bit description
ATtiny11/12
R/W
1
Unchanged
Unchanged
PORF
PORF
R/W
1
0
MCUSR
23

Related parts for ATTINY12