ATmega48PA/88PA/168PA/328P
Table 27-19. Serial Programming Instruction Set (Hexadecimal values) (Continued)
Instruction Format
Instruction/Operation
Write Instructions(6)
Byte 1
Byte 2
Byte 3
Byte4
Write Program Memory Page
Write EEPROM Memory
Write EEPROM Memory Page (page access)
Write Lock bits
$4C
$C0
$C2
$AC
$AC
$AC
$AC
adr MSB
0000 00aa
0000 00aa
$E0
adr LSB
aaaa aaaa
aaaa aa00
$00
$00
data byte in
$00
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. Instructions accessing program memory use a word address. This address may be random within the page range.
7. 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 27-8 on page
312.
311
8161D–AVR–10/09