ATTINY12 ATMEL Corporation, ATTINY12 Datasheet - Page 51
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATTINY12
Manufacturer Part Number
ATTINY12
Description
8-bit AVR Microcontroller with 1K Byte Flash
Manufacturer
ATMEL Corporation
Datasheet
1.ATTINY12.pdf
(91 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATTINY12-8PC
Manufacturer:
ATM
Quantity:
27 705
Company:
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
Company:
Part Number:
ATTINY12-8SI
Manufacturer:
ATMEL
Quantity:
1 729
Company:
Part Number:
ATTINY12-8SU
Manufacturer:
ATMEL
Quantity:
5
Company:
Part Number:
ATTINY128SC
Manufacturer:
ATMEL
Quantity:
7 373
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
Table 23. High-voltage Serial Programming Instruction Set for ATtiny11/12 (Continued)
Note:
1006D–AVR–07/03
Instruction
Read EEPROM
byte (ATtiny12)
Write Fuse bits
(ATtiny11)
Write Fuse bits
(ATtiny12)
Write Lock bits
Read Fuse bits
(ATtiny11)
Read Fuse bits
(ATtiny12)
Read Lock bits
Read Signature
Bytes
Read
Calibration Byte
(ATtiny12)
a = address high bits
b = address low bits
i = data in
o = data out
x = don’t care
1 = Lock Bit1
2 = Lock Bit2
3 = CKSEL0 Fuse
4 = CKSEL1 Fuse
5 = CKSEL2 Fuse
9, 6 = RSTDISBL Fuse
7 = FSTRT Fuse
8 = CKSEL3 Fuse
A = SPIEN Fuse
B = BODEN Fuse
C = BODLEVEL Fuse
PB0
PB1
PB2
PB0
PB1
PB2
PB0
PB1
PB2
PB0
PB1
PB2
PB0
PB1
PB2
PB0
PB1
PB2
PB0
PB1
PB2
PB0
PB1
PB2
PB0
PB1
PB2
0_0000_0000_00
0_0110_1000_00
0_0100_0000_00
0_0100_1100_00
0_0100_0000_00
0_0100_1100_00
0_0010_0000_00
0_0100_1100_00
0_0000_0100_00
0_0100_1100_00
0_0000_0100_00
0_0100_1100_00
0_0000_0100_00
0_0100_1100_00
0_0000_1000_00
0_0100_1100_00
0_0000_1000_00
0_0100_1100_00
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
Instr.1
0_CBA9_8543_00
o_oooo_ooox_xx
0_0000_00bb_00
0_0000_0000_00
0_0110_1100_00
0_0007_6543_00
0_0010_1100_00
0_0010_1100_00
0_0000_0210_00
0_0010_1100_00
0_0000_0000_00
0_0110_1000_00
0_0000_0000_00
0_0110_1000_00
0_0000_0000_00
0_0111_1000_00
0_0000_1100_00
0_0000_0000_00
0_0000_1100_00
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
Instr.2
Instruction Format
C_BA98_543x_xx
0_0000_0000_00
0_0110_0100_00
0_0000_0000_00
0_0110_0100_00
0_0000_0000_00
0_0110_0100_00
0_0000_0000_00
0_0110_1100_00
0_0000_0000_00
0_0110_1100_00
0_0000_0000_00
0_0111_1100_00
0_0000_0000_00
0_0110_1000_00
0_0000_0000_00
0_0111_1000_00
x_xx76_543x_xx
x_xxxx_21xx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
Instr.3
o_oooo_ooox_xx
o_oooo_ooox_xx
0_0000_0000_00
0_0110_1100_00
0_0000_0000_00
0_0110_1100_00
0_0000_0000_00
0_0110_1100_00
0_0000_0000_00
0_0000_0000_00
0_0110_1100_00
0_0000_0000_00
0_0111_1100_00
x_xxxx_xxxx_xx
x_xxxx_xxxx_xx
Instr.4
Operation Remarks
Repeat Instr.2 for each new
address
Wait
Write fuse bits cycle to finish. Write
7 - 3 = “0” to program the fuse bit.
Wait after Instr.4 until PB2 goes
high. Write C - A, 9, 8, 5 - 3 = “0” to
program the fuse bit.
Wait after Instr.4 until PB2 goes
high. Write 2, 1 = “0” to program
the lock bit.
Reading 7 - 3 = “0” means the fuse
bit is programmed.
Reading C - A, 9, 8, 5 - 3 = “0”
means the fuse bit is programmed.
Reading 2, 1 = “0” means the lock
bit is programmed.
Repeat Instr.2 - Instr.4 for each
signature byte address
t
WLWH_PFB
ATtiny11/12
after Instr.3 for the
51