119
ATmega161(L)
1228B–09/01
Figure 77.
Programming the Flash Waveforms
Figure 78.
Programming the Flash Waveforms (Continued)
Programming the EEPROM
The programming algorithm for the EEPROM data memory is as follows (refer to “Pro-
gramming the Flash” for details on command, address and data loading):
1.
A: Load Command “0001 0001”.
2.
H: Load Address High Byte ($00 - $01)
3.
B: Load Address Low Byte ($00 - $FF)
4.
E: Load Data Low Byte ($00 - $FF)
L: Write Data Low Byte
1.
Set BS to “0”. This selects low data.
2.
Give WR a negative pulse. This starts programming of the data byte. RDY/BSY
goes low.
$10
ADDR. LOW
ADDR. HIGH
DATA LOW
DATA
XA1
XA2
BS1
XTAL1
RDY/BSY
RESET
WR
OE
+12V
BS2
PAGEL
DATA HIGH
DATA
XA1
XA0
BS1
XTAL1
WR
RDY/BSY
RESET
+12V
OE
BS2
PAGEL