User Manual
302
ATmega48A/PA/88A/PA/168A/PA/328/P [DATASHEET]
8271E–AVR–07/2012
After data is loaded to the page buffer, program the EEPROM page, see Figure 28-8 on page 302.
Figure 28-8. Serial Programming Instruction example
28.8.4 SPI Serial Programming Characteristics
Figure 28-9. Serial Programming Waveforms
For characteristics of the SPI module see “SPI Timing Characteristics” on page 311.
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
Ad
r M
MS
SB
A
A
Adr
r L
LSB
B
MSB
MSB
LSB
LSB
SERIAL CLOCK INPUT
(SCK)
SERIAL DATA INPUT
(MOSI)
(MISO)
SAMPLE
SERIAL DATA OUTPUT