Datasheet

244
ATtiny828 [DATASHEET]
8371A–AVR–08/12
6. Any memory location can be verified by using the Read instruction, which returns the content at the selected
address at the serial output pin (MISO)
7. At the end of the programming session, RESET
can be set high to commence normal operation
8. Power-off sequence (if required): set RESET
to “1”, and turn V
CC
power off
23.3.3 Programming Instruction set
The instruction set for serial programming is described in Table 101 and Figure 100 on page 245.
Table 101. Serial Programming Instruction Set
Instruction/Operation
Instruction Format
Byte 1 Byte 2 Byte 3 Byte4
Programming Enable $AC $53 $00 $00
Chip Erase (Program Memory/EEPROM) $AC $80 $00 $00
Poll RDY/BSY $F0 $00 $00 data byte out
Load Instructions
Load Extended Address byte
(1)
$4D $00 Extended adr $00
Load Program Memory Page, High byte $48 $00 adr LSB high data byte in
Load Program Memory Page, Low byte $40 $00 adr LSB low data byte in
Load EEPROM Memory Page (page access) $C1 $00 0000 000aa
(2)
data byte in
Read Instructions
Read Program Memory, High byte $28 adr MSB adr LSB high data byte out
Read Program Memory, Low byte $20 adr MSB adr LSB low data byte out
Read EEPROM Memory $A0 0000 00aa
(2)
aaaa aaaa
(2)
data byte out
Read Lock bits $58 $00 $00 data byte out
Read Signature Byte $30 $00 0000 000aa
(2)
data byte out
Read Fuse bits $50 $00 $00 data byte out
Read Fuse High bits $58 $08 $00 data byte out
Read Fuse Extended Bits $50 $08 $00 data byte out
Read Calibration Byte $38 $00 $00 data byte out
Write Instructions
(3)
Write Program Memory Page $4C adr MSB
(4)
adr LSB
(4)
$00
Write EEPROM Memory $C0 0000 00aa
(2)
aaaa aaaa
(2)
data byte in
Write EEPROM Memory Page (page access) $C2 0000 00aa
(2)
aaaa aa00
(2)
$00
Write Lock bits
(5)
$AC $E0 $00 data byte in