Figure 25-11. Serial Programming Waveforms
SERIAL DATA INPUT
(MOSI)
MSB
LSB
LSB
SERIAL DATA OUTPUT
(MISO)
MSB
SERIAL CLOCK INPUT
(SCK)
SAMPLE
Table 25-16. Serial Programming Instruction Set
Instruction Format
Byte 2 Byte 3
Instruction
Byte 1
Byte4
Operation
1010 1100 0101 0011 xxxx xxxx xxxx xxxx Enable Serial Programming after
Programming Enable
Chip Erase
RESET goes low.
1010 1100 100x xxxx xxxx xxxx xxxx xxxx Chip Erase EEPROM and Flash.
0010 H000 000a aaaa bbbb bbbb oooo oooo Read H (high or low) data o from
Program memory at word address a:b.
Read Program Memory
0100 H000 000x xxxx xxbb 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.
Load Program Memory Page
0100 1100 000a aaaa bbxx xxxx xxxx xxxx Write Program Memory Page at
address a:b.
Write Program Memory Page
Read EEPROM Memory
Write EEPROM Memory
1010 0000 000x xxaa bbbb bbbb oooo oooo Read data o from EEPROM memory at
address a:b.
1100 0000 000x xxaa bbbb bbbb iiii iiii Write data i to EEPROM memory at
address a:b.
1100 0001 0000 0000 0000 00bb iiii iiii Load data i to EEPROM memory page
Load EEPROM Memory
Page (page access)
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.
0101 1000 0000 0000 xxxx xxxx xxoo oooo Read Lock bits. “0” = programmed, “1”
Read Lock bits
= unprogrammed. See Table 25-1 on
page 278 for details.
1010 1100 111x xxxx xxxx xxxx 11ii iiii Write Lock bits. Set bits = “0” to
program Lock bits. See Table 25-1 on
Write Lock bits
page 278 for details.
Read Signature Byte
Write Fuse bits
0011 0000 000x xxxx xxxx xxbb oooo oooo Read Signature Byte o at address b.
1010 1100 1010 0000 xxxx xxxx iiii iiii Set bits = “0” to program, “1” to
unprogram. See Table XXX on page
XXX for details.
296
AT90PWM2/3/2B/3B
4317J–AVR–08/10