Table 25, Attiny11/12 – Rainbow Electronics ATtiny12 User Manual
Page 53

53
ATtiny11/12
1006C–09/01
Note:
a = address high bits
b = address low bits
H = 0 - Low byte, 1 - High byte
o = data out
i = data in
x = don’t care
1 = Lock bit 1
2 = Lock bit 2
3 = CKSEL0 Fuse
4 = CKSEL1 Fuse
5 = CKSEL2 Fuse
6 = CKSEL3 Fuse
7 = RSTDISBL Fuse
8 = SPIEN Fuse
9 = BODEN Fuse
A = BODLEVEL Fuse
Note:
1. The signature bytes are not readable in Lock mode 3, i.e. both lock bits programmed.
Table 25. Low-voltage Serial Programming Instruction Set
Instruction
Instruction Format
Operation
Byte 1
Byte 2
Byte 3
Byte4
Programming Enable
1010 1100
0101 0011
xxxx xxxx
xxxx xxxx
Enable serial programming while
RESET is low.
Chip Erase
1010 1100
100x xxxx
xxxx xxxx
xxxx xxxx
Chip erase Flash and EEPROM
memory arrays.
Read Program Memory
0010 H000
xxxx xxxa
bbbb bbbb
oooo oooo
Read H (high or low) data o from
program memory at word address
a:b.
Write Program Memory
0100 H000
xxxx xxxa
bbbb bbbb
iiii iiii
Write H (high or low) data i to
program memory at word address
a:b.
Read EEPROM
Memory
1010 0000
xxxx xxxx
xxbb bbbb
oooo oooo
Read data o from EEPROM memory
at address b.
Write EEPROM
Memory
1100 0000
xxxx xxxx
xxbb bbbb
iiii iiii
Write data i to EEPROM memory at
address b.
Write Lock Bits
1010 1100
1111 1211
xxxx xxxx
xxxx xxxx
Write lock bits. Set bits 1,2 = “0” to
program lock bits.
Read Lock Bits
0101 1000
xxxx xxxx
xxxx xxxx
xxxx x21x
Read lock bits. “0” = programmed, “1”
= unprogrammed.
Read Signature Bytes
0011 0000
xxxx xxxx
0000 00bb
oooo oooo
Read signature byte o at address b.
Read Calibration Byte
0011 1000
xxxx xxxx
0000 0000
oooo oooo
Write Fuse Bits
1010 1100
101x xxxx
xxxx xxxx
A987 6543
Set bits A, 9 - 3 = “0” to program, “1”
to unprogram.
Read Fuse Bits
0101 0000
xxxx xxxx
xxxx xxxx
A987 6543
Read fuse bits. “0” = programmed, “1”
= unprogrammed.