4 spi serial programming characteristics – Rainbow Electronics ATmega64M1 User Manual
Page 308
308
8209A–AVR–08/09
ATmega16M1/32M1/64M1
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
28.10.4
SPI Serial Programming Characteristics
For characteristics of the SPI module, see
“SPI Serial Programming Characteristics” on page
.
Write EEPROM Memory
1100 0000
000x xxaa
bbbb bbbb
iiii iiii
Write data i to EEPROM memory at
address a:b.
Load EEPROM Memory
Page (page access)
1100 0001
0000 0000
0000 00bb
iiii iiii
Load data i to EEPROM memory page
buffer. After data is loaded, program
EEPROM page.
Write EEPROM Memory
Page (page access)
1100 0010
00xx xxaa
bbbb bb00
xxxx xxxx
Write EEPROM page at address a:b.
Read Lock bits
0101 1000
0000 0000
xxxx xxxx
xxoo oooo
Read Lock bits. “0” = programmed, “1”
= unprogrammed. See
for details.
Write Lock bits
1010 1100
111x xxxx
xxxx xxxx
11ii iiii
Write Lock bits. Set bits = “0” to
program Lock bits. See
for details.
Read Signature Byte
0011 0000
000x xxxx
xxxx xxbb
oooo oooo
Read Signature Byte o at address b.
Write Fuse bits
1010 1100
1010 0000
xxxx xxxx
iiii iiii
Set bits = “0” to program, “1” to
unprogram. See Table XXX on page
XXX for details.
Write Fuse High bits
1010 1100
1010 1000
xxxx xxxx
iiii iiii
Set bits = “0” to program, “1” to
unprogram. See
for details.
Write Extended Fuse Bits
1010 1100
1010 0100
xxxx xxxx
xxxx xxii
Set bits = “0” to program, “1” to
unprogram. See
for details.
Read Fuse bits
0101 0000
0000 0000
xxxx xxxx
oooo oooo
Read Fuse bits. “0” = programmed, “1”
= unprogrammed. See Table XXX on
page XXX for details.
Read Fuse High bits
0101 1000
0000 1000
xxxx xxxx
oooo oooo
Read Fuse High bits. “0” = pro-
grammed, “1” = unprogrammed. See
for details.
Read Extended Fuse Bits
0101 0000
0000 1000
xxxx xxxx
oooo oooo
Read Extended Fuse bits. “0” = pro-
grammed, “1” = unprogrammed. See
for details.
Read Calibration Byte
0011 1000
000x xxxx
0000 0000
oooo oooo
Read Calibration Byte
Poll RDY/BSY
1111 0000
0000 0000
xxxx xxxx
xxxx xxxo
If o = “1”, a programming operation is
still busy. Wait until this bit returns to
“0” before applying another command.
Table 28-18. Serial Programming Instruction Set (Continued)
Instruction
Instruction Format
Operation
Byte 1
Byte 2
Byte 3
Byte4