Manual
121
ATmega161(L)
1228C–AVR–08/02
1. Give WR a negative pulse. This starts programming of the entire page of data.
RDY/BSY
goes low.
2. Wait until RDY/BSY
goes high.
(See Figure 77 for signal waveforms.)
J. End Page Programming
1. SetXA1,XA0to“10”. This enables command loading.
2. Set DATA to “0000 0000”. This is the command for No Operation.
3. Give XTAL1 a positive pulse. This loads the command, and the internal write sig-
nals are reset.
K. Repeat “A” through “J” 128 times or until all data have been programmed.
Figure 76. Programming the Flash Waveforms
Figure 77. Programming the Flash Waveforms (Continued)
$10 ADDR. LOW ADDR. HIGH DATA LOWDATA
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