English
Language : 

ATMEGA8U2_14 Datasheet, PDF (262/310 Pages) ATMEL Corporation – 125 Powerful Instructions – Most Single Clock Cycle Execution
ATmega8U2/16U2/32U2
Table 25-16. Serial Programming Instruction Set
Instruction Format
Instruction
Byte 1
Byte 2
Byte 3
Programming Enable
1010 1100 0101 0011 xxxx xxxx
Chip Erase
1010 1100 100x xxxx xxxx xxxx
0100 1101 0000 0000 cccc cccc
Load Extended Address Byte
Read Program Memory
0010 H000 aaaa aaaa bbbb bbbb
0100 H000 xxxx xxxx xxbb bbbb
Load Program Memory Page
Write Program Memory Page 0100 1100 aaaa aaaa bbxx xxxx
Read EEPROM Memory
1010 0000 0000 aaaa bbbb bbbb
Write EEPROM Memory
1100 0000 0000 aaaa bbbb bbbb
Load EEPROM Memory
Page (page access)
1100 0001 0000 0000 0000 00bb
Write EEPROM Memory
Page (page access)
Read Lock bits
1100 0010 0000 aaaa bbbb bb00
0101 1000 0000 0000 xxxx xxxx
Write Lock bits
1010 1100 111x xxxx xxxx xxxx
Read Signature Byte
Write Fuse bits
Write Fuse High bits
Write Extended Fuse Bits
0011 0000 000x xxxx xxxx xxbb
1010 1100 1010 0000 xxxx xxxx
1010 1100 1010 1000 xxxx xxxx
1010 1100 1010 0100 xxxx xxxx
Read Fuse bits
Read Fuse High bits
0101 0000 0000 0000 xxxx xxxx
0101 1000 0000 1000 xxxx xxxx
Byte4
xxxx xxxx
xxxx xxxx
xxxx xxxx
oooo oooo
iiii iiii
xxxx xxxx
oooo oooo
iiii iiii
iiii iiii
xxxx xxxx
xxoo oooo
11ii iiii
oooo oooo
iiii iiii
iiii iiii
iiii iiii
oooo oooo
oooo oooo
Operation
Enable Serial Programming after
RESET goes low.
Chip Erase EEPROM and Flash.
Defines Extended Address Byte for
Read Program Memory and Write
Program Memory Page.
Read H (high or low) data o from
Program memory at word address
c:a:b.
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 at
address c:a:b.
Read data o from EEPROM memory at
address a:b.
Write data i to EEPROM memory at
address a:b.
Load data i to EEPROM memory page
buffer. After data is loaded, program
EEPROM page.
Write EEPROM page at address a:b.
Read Lock bits. “0” = programmed, “1”
= unprogrammed. See Table 25-1 on
page 246 for details.
Write Lock bits. Set bits = “0” to
program Lock bits. See Table 25-1 on
page 246 for details.
Read Signature Byte o at address b.
Set bits = “0” to program, “1” to
unprogram.
Set bits = “0” to program, “1” to
unprogram.
Set bits = “0” to program, “1” to
unprogram. See Table 25-3 on page
247 for details.
Read Fuse bits. “0” = programmed, “1”
= unprogrammed.
Read Fuse High bits. “0” = pro-
grammed, “1” = unprogrammed.
7799D–AVR–11/10
262