Rainbow-electronics ATmega8515L Manual de usuario Pagina 183

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 223
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 182
183
ATmega8515(L)
2512A–AVR–04/02
Figure 76. Programming the Flash Waveforms
Note: XX”isdon’t care. The letters refer to the programming description above.
Programming the EEPROM The EEPROM is organized in pages, see Table 90onpage 179. When programming
the EEPROM, the program data islatched into a page buffer.This allows one page of
data to be programmedsimultaneously.The programming algorithm for the EEPROM
data memory is asfollows (refer to “Programming the Flash”onpage 181 fordetails on
Command, Address andData loading):
1. A:LoadCommand “0001 0001”.
2. G: Load Address HighByte ($00 -$FF).
3. B: Load Address LowByte ($00 -$FF).
4. C: LoadData ($00 -$FF).
5. E: Latch data (give PAGEL a positive pulse).
K: Repeat 3 through 5until the entire buffer isfilled.
L: Program EEPROM page.
1. Set BS1to“0.
2. Give WR
a negative pulse. Thisstartsprogramming of the EEPROM page.
RDY/BSY
goeslow.
3. Wait until to RDY/BSY
goeshighbefore programming thenext page.
(See Figure 77 forsignalwaveforms.)
RDY/BSY
WR
OE
RESET +12V
PAGEL
BS2
$10 ADDR. LOW
ADDR. HIGH
DATA
DATA LOW DATA HIGH ADDR. LOW DATA LOW DATA HIGH
XA1
XA0
BS1
XTAL1
XX XX
XX
ABCDEBCDEGH
F
Vista de pagina 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 222 223

Comentarios a estos manuales

Sin comentarios