Rainbow-electronics ATmega8515L Manual do Utilizador Página 184

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 223
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 183
184
ATmega8515(L)
2512A–AVR–04/02
Figure 77. Programming the EEPROM Waveforms
Reading the Flash Thealgorithm forreading the Flash memory is asfollows (refer to “Programming the
Flash”onpage 181 fordetails on Command and Address loading):
1. A:LoadCommand “0000 0010”.
2. G: Load Address HighByte ($00 -$FF).
3. B: Load Address LowByte ($00 -$FF).
4. Set OE
to “0”, andBS1to0.The Flash word lowbyte can nowbe read at DATA.
5. Set BS1to“1.The Flash word highbyte can nowbe read at DATA.
6. Set OE
to “1”.
Reading the EEPROM Thealgorithm forreading the EEPROM memory is asfollows (refer to “Programming the
Flash”onpage 181 fordetails on Command and Address loading):
1. A:LoadCommand “0000 0011”.
2. G: Load Address HighByte ($00 -$FF).
3. B: Load Address LowByte ($00 -$FF).
4. Set OE
to “0, andBS1to0.The EEPROM Data byte can nowbe read at
DATA.
5. Set OE
to “1”.
Programming the Fuse Low
Bits
Thealgorithm forprogramming the Fuse Lowbits is asfollows (refer to “Programming
the Flash”onpage 181 fordetails on Command andData loading):
1. A:LoadCommand “0100 0000”.
2. C: LoadData LowByte. Bit n = “0” programs andbit n = “1” erases the Fuse bit.
3. Set BS1 to “0” andBS2to0.Thisselectslowdata byte.
4. Give WR
a negative pulseandwait for RDY/BSY to go high.
Programming the Fuse High
Bits
Thealgorithm forprogramming the Fuse Highbits is asfollows (refer to “Programming
the Flash”onpage 181 fordetails on Command andData loading):
RDY/BSY
WR
OE
RESET +12V
PAGEL
BS2
$10 ADDR. HIGH
DATA
ADDR. LOW DATA ADDR. LOW DATA XX
XA1
XA0
BS1
XTAL1
XX
AGBCEB C EL
K
Vista de página 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 222 223

Comentários a estes Manuais

Sem comentários