Datasheet

239
ATtiny828 [DATASHEET]
8371A–AVR–08/12
z Set BS1 to “1”. The Flash word high byte can now be read at DATA
z Set OE to “1”
23.2.7 Reading the EEPROM
The algorithm for reading the EEPROM memory is as follows (see “Programming the Flash” on page 235 for details on
command and address loading):
z A: Load command “0000 0011”
z G: Load address high byte (0x00 – 0xFF)
z B: Load address low byte (0x00 – 0xFF)
z Set OE to “0”, and BS1 to “0”. The EEPROM Data byte can now be read at DATA
z Set OE to “1”
23.2.8 Programming Low Fuse Bits
The algorithm for programming the low fuse bits is as follows (see “Programming the Flash” on page 235 for details on
command and data loading):
z A: Load command “0100 0000”
z C: Load data low byte. Bit n = “0” programs and bit n = “1” erases the fuse bit
z Give WR a negative pulse and wait for RDY/BSY to go high
23.2.9 Programming High Fuse Bits
The algorithm for programming the high fuse bits is as follows (see “Programming the Flash” on page 235 for details on
command and data loading):
z A: Load command “0100 0000”
z C: Load data low byte. Bit n = “0” programs and bit n = “1” erases the fuse bit
z Set BS1 to “1” and BS2 to “0”. This selects high data byte
z Give WR a negative pulse and wait for RDY/BSY to go high
z Set BS1 to “0”. This selects low data byte
23.2.10 Programming Extended Fuse Bits
The algorithm for programming the extended fuse bits is as follows (see “Programming the Flash” on page 235 for details
on command and data loading):
z A: Load command “0100 0000”
z C: Load data low byte. Bit n = “0” programs and bit n = “1” erases the fuse bit
z Set BS1 to “0” and BS2 to “1”. This selects extended data byte
z Give WR a negative pulse and wait for RDY/BSY to go high
z Set BS2 to “0”. This selects low data byte
EEPROM programming waveforms are illustrated in Figure 96, where XX means “don’t care” and letters refer to the
programming steps described above.