ATmega64A
Table 27-15. SPI Serial Programming Instruction Set
Instruction Format
Instruction
Byte 1
Byte 2
Byte 3
Byte4
Operation
Programming Enable
1010 1100
0101 0011
xxxx xxxx
xxxx xxxx
Enable SPI Serial Programming
after RESET goes low.
Chip Erase
1010 1100
100x xxxx
xxxx xxxx
xxxx xxxx
Chip Erase EEPROM and Flash.
Read Program Memory
0010 H000
xaaa aaaa
bbbb bbbb
oooo oooo
Read H (high or low) data o from
Program memory at word address
a:b.
Load Program Memory
Page
0100 H000
xxxx xxxx
xbbb bbbb
iiii iiii
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
0100 1100
1010 0000
1100 0000
0101 1000
xaaa aaaa
xxxx xaaa
xxxx xaaa
0000 0000
bxxx xxxx
bbbb bbbb
bbbb bbbb
xxxx xxxx
xxxx xxxx
oooo oooo
iiii iiii
xxoo oooo
Write Program Memory Page at
address a:b.
Read EEPROM Memory
Write EEPROM Memory
Read Lock Bits
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
27-1 on page 295 for details.
Write Lock Bits
1010 1100
111x xxxx
xxxx xxxx
11ii iiii
Write Lock bits. Set bits = “0” to
program Lock bits. See Table 27-1
on page 295 for details.
Read Signature Byte
Write Fuse Bits
0011 0000
1010 1100
xxxx xxxx
1010 0000
xxxx xxbb
oooo oooo
iiii iiii
Read Signature Byte o at address
b.
xxxx xxxx
Set bits = “0” to program, “1” to
unprogram. See Table 27-5 on
page 297 for details.
Write Fuse High Bits
Write Extended Fuse Bits
Read Fuse Bits
1010 1100
1010 1100
0101 0000
1010 1000
1010 0100
0000 0000
xxxx xxxx
xxxx xxxx
xxxx xxxx
iiii iiii
xxxx xxii
oooo oooo
Set bits = “0” to program, “1” to
unprogram. See Table 27-4 on
page 297 for details.
Set bits = “0” to program, “1” to
unprogram. See Table 27-5 on
page 297 for details.
Read Fuse bits. “0” = programmed,
“1” = unprogrammed. See Table
27-5 on page 297 for details.
313
8160C–AVR–07/09