ATTIny2313-16MI ATMEL Corporation, ATTIny2313-16MI Datasheet - Page 168

no-image

ATTIny2313-16MI

Manufacturer Part Number
ATTIny2313-16MI
Description
8-bit AVR Microcontroller with 2K Bytes In-System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
Reading the EEPROM
Programming the Fuse Low
Bits
Programming the Fuse High
Bits
Programming the Extended
Fuse Bits
168
ATtiny2313/V
The algorithm for reading the EEPROM memory is as follows (refer to “Programming the
Flash” on page 165 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
5. Set OE to “1”.
The algorithm for programming the Fuse Low bits is as follows (refer to “Programming
the Flash” on page 165 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.
The algorithm for programming the Fuse High bits is as follows (refer to “Programming
the Flash” on page 165 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. Set BS1 to “1” and BS2 to “0”. This selects high data byte.
4. Give WR a negative pulse and wait for RDY/BSY to go high.
5. Set BS1 to “0”. This selects low data byte.
The algorithm for programming the Extended Fuse bits is as follows (refer to “Program-
ming the Flash” on page 165 for details on Command and Data loading):
1. 1. A: Load Command “0100 0000”.
2. 2. C: Load Data Low Byte. Bit n = “0” programs and bit n = “1” erases the Fuse
3. 3. Set BS1 to “0” and BS2 to “1”. This selects extended data byte.
4. 4. Give WR a negative pulse and wait for RDY/BSY to go high.
5. 5. Set BS2 to “0”. This selects low data byte.
Figure 72. Programming the FUSES Waveforms
RESET +12V
RDY/BSY
DATA.
bit.
PAGEL
XTAL1
DATA
XA1
XA0
BS1
BS2
WR
OE
0x40
A
DATA
C
Write Fuse Low byte
XX
0x40
A
DATA
C
Write Fuse high byte
XX
0x40
A
DATA
C
Write Extended Fuse byte
XX
2543C–AVR–12/03

Related parts for ATTIny2313-16MI