English
Language : 

ATMEGA8_14 Datasheet, PDF (233/331 Pages) ATMEL Corporation – High-performance, Low-power Atmel
ATmega8(L)
Table 98. Serial Programming Instruction Set
Instruction Format
Instruction
Byte 1
Byte 2
Byte 3
Programming Enable
1010 1100 0101 0011 xxxx xxxx
Chip Erase
Read Program Memory
1010 1100
0010 H000
100x xxxx
0000 aaaa
xxxx xxxx
bbbb bbbb
Load Program Memory
Page
0100 H000 0000 xxxx xxxb bbbb
Write Program Memory
Page
Read EEPROM Memory
Write EEPROM Memory
Read Lock Bits
0100 1100 0000 aaaa bbbx xxxx
1010 0000 00xx xxxa bbbb bbbb
1100 0000 00xx xxxa bbbb bbbb
0101 1000 0000 0000 xxxx xxxx
Write Lock Bits
1010 1100 111x xxxx xxxx xxxx
Read Signature Byte
Write Fuse Bits
0011 0000 00xx xxxx xxxx xxbb
1010 1100 1010 0000 xxxx xxxx
Write Fuse High Bits
1010 1100 1010 1000 xxxx xxxx
Read Fuse Bits
0101 0000 0000 0000 xxxx xxxx
Read Fuse High Bits
0101 1000 0000 1000 xxxx xxxx
Read Calibration Byte
0011 1000
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
00xx xxxx
0000 00bb
Byte 4
xxxx xxxx
xxxx xxxx
oooo oooo
iiii iiii
xxxx xxxx
oooo oooo
iiii iiii
xxoo oooo
11ii iiii
oooo oooo
iiii iiii
iiii iiii
oooo oooo
oooo oooo
oooo oooo
Operation
Enable Serial Programming after
RESET goes low
Chip Erase EEPROM and Flash
Read H (high or low) data o from
Program memory at word address
a:b
Write H (high or low) data i to
Program memory page at word
address b. Data Low byte must be
loaded before Data High byte is
applied within the same address
Write Program memory Page at
address a:b
Read data o from EEPROM
memory at address a:b
Write data i to EEPROM memory
at address a:b
Read Lock Bits. “0” = programmed,
“1” = unprogrammed. See Table
85 on page 215 for details
Write Lock Bits. Set bits = “0” to
program Lock Bits. See Table 85
on page 215 for details
Read Signature Byte o at address
b
Set bits = “0” to program, “1” to
unprogram. See Table 88 on
page 217 for details
Set bits = “0” to program, “1” to
unprogram. See Table 87 on
page 216 for details
Read Fuse Bits. “0” = programmed,
“1” = unprogrammed. See Table
88 on page 217 for details
Read Fuse high bits. “0” = pro-
grammed, “1” = unprogrammed.
See Table 87 on page 216 for
details
Read Calibration Byte
2486AA–AVR–02/2013
233