|
ATMEGA128A_14 Datasheet, PDF (284/369 Pages) ATMEL Corporation – 8-bit Microcontroller with 128Kbytes | |||
|
◁ |
1. A: Load Command â0000 0011â.
2. G: Load Address High Byte ($00 - $FF).
3. B: Load Address Low Byte ($00 - $FF).
4. Set OE to â0â, and BS1 to â0â. The EEPROM Data byte can now be read at DATA.
5. Set OE to â1â.
26.6.8 Programming the Fuse Low Bits
The algorithm for programming the Fuse Low bits is as follows (refer to âProgramming the Flashâ on page 280
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 â0â and BS2 to â0â.
4. Give WR a negative pulse and wait for RDY/BSY to go high.
26.6.9 Programming the Fuse High Bits
The algorithm for programming the Fuse High bits is as follows (refer to âProgramming the Flashâ on page 280
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.
26.6.10 Programming the Extended Fuse Bits
The algorithm for programming the Extended Fuse bits is as follows (refer to âProgramming the Flashâ on page
280 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 BS2 to â1â and BS1 to â0â. This selects extended data byte.
4. Give WR a negative pulse and wait for RDY/BSY to go high.
5. Set BS2 to â0â. This selects low data byte.
ATmega 128A [DATASHEET]
Atmel-8151I-8-bit-AVR-ATmega128A_Datasheet-08/2014
284
|
▷ |