|
ATTINY261_14 Datasheet, PDF (164/206 Pages) ATMEL Corporation – High Performance, Low Power AVR | |||
|
◁ |
K: Repeat 3 through 5 until the entire buffer is filled.
L: Program EEPROM page
1. Set BS to â0â.
2. Give WR a negative pulse. This starts programming of the EEPROM page. RDY/BSY goes low.
3. Wait until to RDY/BSY goes high before programming the next page (See Figure 22-4 for signal waveforms).
Figure 22-4. Programming the EEPROM Waveforms
K
DATA
XA1/ BS2
XA0
A
G
B
C
E
B
C
E
L
0x11
ADDR. HIGH ADDR. LOW
DATA
XX
ADDR. LOW
DATA
XX
PAGEL/ BS1
XTAL
WR
RDY/ BSY
RESET +12V
OE
22.8.6 Reading the Flash
The algorithm for reading the flash memory is as follows (refer to Section 22.8.4 âProgramming the Flashâ on page 162 for
details on command and address loading):
1. A: Load command â0000 0010â.
2. G: Load address high byte (0x00 - 0xFF).
3. B: Load address low byte (0x00 - 0xFF).
4. Set OE to â0â, and BS1 to â0â. The flash word low byte can now be read at DATA.
5. Set BS to â1â. The flash word high byte can now be read at DATA.
6. Set OE to â1â.
22.8.7 Reading the EEPROM
The algorithm for reading the EEPROM memory is as follows (refer to Section 22.8.4 âProgramming the Flashâ on page 162
for details on command and address loading):
1. A: Load command â0000 0011â.
2. G: Load address high byte (0x00 - 0xFF).
3. B: Load address low byte (0x00 - 0xFF).
4. Set OE to â0â, and BS1 to â0â. The EEPROM data byte can now be read at DATA.
5. Set OE to â1â.
22.8.8 Programming the Fuse Low Bits
The algorithm for programming the fuse low bits is as follows (refer to Section 22.8.4 âProgramming the Flashâ on page 162
for details on command and data loading):
1. A: Load command â0100 0000â.
2. C: Load data low byte. Bit n = â0â programs and bit n = â1â erases the fuse bit.
3. Give WR a negative pulse and wait for RDY/BSY to go high.
164 ATtiny261/ATtiny461/ATtiny861/ATtiny461 [DATASHEET]
7753GâAVRâ06/14
|
▷ |