26.8.3
Serial Programming Instruction set
Table 26-15 and Figure 26-12 on page 313 describes the Instruction set.
Table 26-15. Serial Programming Instruction Set
Instruction Format
Instruction/Operation
Byte 1
$AC
Byte 2
Byte 3
$00
Byte4
$00
Programming Enable
$53
$80
$00
Chip Erase (Program Memory/EEPROM)
Poll RDY/BSY
$AC
$00
$00
$F0
$00
data byte out
Load Instructions
Load Extended Address byte(1)
Load Program Memory Page, High byte
Load Program Memory Page, Low byte
Load EEPROM Memory Page (page access)
Read Instructions
$4D
$48
$40
$C1
$00
$00
$00
$00
Extended adr
adr LSB
$00
high data byte in
low data byte in
data byte in
adr LSB
0000 00aa
Read Program Memory, High byte
Read Program Memory, Low byte
Read EEPROM Memory
Read Lock bits
$28
$20
$A0
$58
$30
$50
$58
$50
$38
adr MSB
adr MSB
0000 00aa
$00
adr LSB
adr LSB
aaaa aaaa
$00
high data byte out
low data byte out
data byte out
data byte out
data byte out
data byte out
data byte out
data byte out
data byte out
Read Signature Byte
$00
0000 00aa
$00
Read Fuse bits
$00
Read Fuse High bits
$08
$00
Read Extended Fuse Bits
Read Calibration Byte
$08
$00
$00
$00
Write Instructions
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. 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.
312
ATmega169P
8018A–AVR–03/06