beautypg.com

Attiny15l – Rainbow Electronics ATtiny15L User Manual

Page 62

background image

62

ATtiny15L

1187E–AVR–06/02

Note:

1. 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 = RSTDISBL Fuse
6 = SPIEN Fuse
7 = BODEN Fuse
8 = BODLEVEL Fuse

Table 27. Low-voltage Serial Programming Instruction Set

(1)

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 1

21

1

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 x

21

x

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.

Write Fuse Bits

1010 1100

101x xxxx

xxxx xxxx

8765

1143

Set bits 8 - 3 = “0” to program, “1” to
unprogram.

Read Fuse Bits

0101 0000

xxxx xxxx

xxxx xxxx

8765

xx43

Read Fuse bits. “0” = programmed,
“1” = unprogrammed.

Read Calibration Byte

0011 1000

xxxx xxxx

0000 0000

oooo oooo