Datasheet
Table 32-17. Typical Wait Delay Before Writing the Next Flash or EEPROM Location
Symbol Minimum Wait Delay
t
WD_FLASH
4.5 ms
t
WD_EEPROM
3.6 ms
t
WD_ERASE
10.5 ms
t
WD_FUSE
4.5 ms
32.9.3 Serial Programming Instruction Set
This section describes the instruction set.
Table 32-18. Serial Programming Instruction Set (Hexadecimal Values)
Instruction/Operation Instruction Format
Byte 1 Byte 2 Byte 3 Byte 4
Programming Enable 0xAC 0x53 0x00 0x00
Chip Erase (Program Memory/EEPROM) 0xAC 0x80 0x00 0x00
Poll RDY/BSY 0xF0 0x00 0x00 data byte out
Load Instructions
Load Extended Address byte
(1)
0x4D 0x00 Extended adr 0x00
Load Program Memory Page, High byte 0x48 0x00 adr LSB high data byte in
Load Program Memory Page, Low byte 0x40 0x00 adr LSB low data byte in
Load EEPROM Memory Page (page access) 0xC1 0x00 0000 000aa
(2)
data byte in
Read Instructions
(5)
Read Program Memory, High byte 0x28 adr MSB adr LSB high data byte out
Read Program Memory, Low byte 0x20 adr MSB adr LSB low data byte out
Read EEPROM Memory 0xA0 0000 00aa
(2)
aaaa aaaa
(2)
data byte out
Read Lock bits
(3)
0x58 0x00 0x00 data byte out
Read Signature Byte 0x30 0x00 0000 000aa
(2)
data byte out
Read Fuse bits
(3)
0x50 0x00 0x00 data byte out
Read Fuse High bits
(3)
0x58 0x08 0x00 data byte out
Read Extended Fuse Bits
(3)
0x50 0x08 0x00 data byte out
Read Calibration Byte 0x38 0x00 0x00 data byte out
Write Instructions
(5)
Write Program Memory Page
(6)
0x4C adr MSB
(8)
adr LSB
(8)
0x00
Write EEPROM Memory 0xC0 0000 00aa
(2)
aaaa aaaa
(2)
data byte in
Write EEPROM Memory Page (page access) 0xC2 0000 00aa
(2)
aaaa aa00
(2)
0x00
Write Lock bits
(3)(4)
0xAC 0xE0 0x00 data byte in
Write Fuse bits
(3)(4)
0xAC 0xA0 0x00 data byte in
Write Fuse High bits
(3)(4)
0xAC 0xA8 0x00 data byte in
Write Extended Fuse Bits
(3)(4)
0xAC 0xA4 0x00 data byte in
Note:
ATmega48PA/88PA/168PA
Memory Programming (MEMPROG)
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40002011A-page 381