ATmega640/1280/1281/2560/2561
Table 30-17. Serial Programming Instruction Set (Continued)
Instruction Format
Instruction/Operation
Write Program Memory Page
Write EEPROM Memory
Write EEPROM Memory Page (page access)
Write Lock bits
Byte 1
$4C
Byte 2
Byte 3
adr LSB
aaaa aaaa
aaaa 00
$00
Byte4
$00
adr MSB
0000 aaaa
0000 aaaa
$E0
$C0
data byte in
$00
$C2
$AC
$AC
$AC
$AC
data byte in
data byte in
data byte in
data byte in
Write Fuse bits
$A0
$00
Write Fuse High bits
$A8
$00
Write Extended Fuse Bits
$A4
$00
Notes: 1. Not all instructions are applicable for all parts.
2. a = address.
3. Bits are programmed ‘0’, unprogrammed ‘1’.
4. To ensure future compatibility, unused Fuses and Lock bits should be unprogrammed (‘1’) .
5. Refer to the correspondig section for Fuse and Lock bits, Calibration and Signature bytes and
Page size.
6. See htt://www.atmel.com/avr for Application Notes regarding programming and programmers.
If the LSB in RDY/BSY data byte out is ‘1’, a programming operation is still pending. Wait until
this bit returns ‘0’ before the next instruction is carried out.
Within the same page, the low data byte must be loaded prior to the high data byte.
After data is loaded to the page buffer, program the EEPROM page, see Figure 30-10 on page
356.
355
2549L–AVR–08/07