Datasheet
190
8246B–AVR–09/11
ATtiny2313A/4313
• C: Load Data (0x00 - 0xFF).
• J: Repeat 3 through 4 until the entire buffer is filled.
• K: Program EEPROM page
– Set BS1 to “0”.
–Give WR
a negative pulse. This starts programming of the EEPROM page.
RDY/BSY
goes low.
– Wait until to RDY/BSY
goes high before programming the next page (See Figure 21-
4 for signal waveforms).
EEPROM programming waveforms are illustrated in Figure 21-4, where XX means “don’t care”
and letters refer to the programming steps described above.
Figure 21-4. EEPROM Programming Waveforms
21.2.6 Reading the Flash
The algorithm for reading the Flash memory is as follows (see “Programming the Flash” on page
187 for details on command and address loading):
• A: Load Command “0000 0010”.
• G: Load Address High Byte (0x00 - 0xFF).
• B: Load Address Low Byte (0x00 - 0xFF).
•Set OE
to “0”, and BS1 to “0”. The Flash word low byte can now be read at DATA.
• Set BS1 to “1”. The Flash word high byte can now be read at DATA.
•Set OE
to “1”.
21.2.7 Reading the EEPROM
The algorithm for reading the EEPROM memory is as follows (see “Programming the Flash” on
page 187 for details on command and address loading):
• A: Load Command “0000 0011”.
• G: Load Address High Byte (0x00 - 0xFF).
RDY/BSY
WR
OE
RESET +12V
PAGEL
BS2
0x11 ADDR. HIGH
DATA
ADDR. LOW DATA ADDR. LOW DATA XX
XA1
XA0
BS1
XTAL1
XX
AGBCEBC EL
K