312
8025I–AVR–02/09
ATmega48P/88P/168P/328P
Figure 25-8. Serial Programming Instruction example
25.8.4
SPI Serial Programming Characteristics
Figure 25-9. Serial Programming Waveforms
For characteristics of the SPI module see “SPI Timing Characteristics” on page 321.
Byte 1
Byte 2
Byte 3
Byte 4
Adr LSB
Bit 15 B
0
Serial Programming Instruction
Program Memory/
EEPROM Memory
Page 0
Page 1
Page 2
Page N-1
Page Buffer
Write Program Memory Page/
Write EEPROM Memory Page
Load Program Memory Page (High/Low Byte)/
Load EEPROM Memory Page (page access)
Byte 1
Byte 2
Byte 3
Byte 4
Bit 15 B
0
Adr MSB
Page Offset
Page Number
Adr M
MS
SB
A
A
Adrr L
LSB
B
MSB
MSB
LSB
LSB
SERIAL CLOCK INPUT
(SCK)
SERIAL DATA INPUT
(MOSI)
(MISO)
SAMPLE
SERIAL DATA OUTPUT