English
Language : 

ATMEGA8_08 Datasheet, PDF (240/308 Pages) ATMEL Corporation – 8-bit with 8K Bytes In-System Programmable Flash
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
0100 1100 0000 aaaa bbbx xxxx
1010 0000 00xx xxxa bbbb bbbb
Write EEPROM Memory 1100 0000 00xx xxxa bbbb bbbb
Read Lock Bits
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
Byte4
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 222 for details.
Write Lock Bits. Set bits = “0” to
program Lock Bits. See Table 85
on page 222 for details.
Read Signature Byte o at address
b.
Set bits = “0” to program, “1” to
unprogram. See Table 88 on
page 224 for details.
Set bits = “0” to program, “1” to
unprogram. See Table 87 on
page 223 for details.
Read Fuse Bits. “0” = programmed,
“1” = unprogrammed. See Table
88 on page 224 for details.
Read Fuse high bits. “0” = pro-
grammed, “1” = unprogrammed.
See Table 87 on page 223 for
details.
Read Calibration Byte
240 ATmega8(L)
2486T–AVR–05/08