atmega163l ATMEL Corporation, atmega163l Datasheet - Page 149

no-image

atmega163l

Manufacturer Part Number
atmega163l
Description
Atmega163 8-bit Avr Microcontroller With 16k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega163l-4AI
Manufacturer:
ATMEL
Quantity:
984
Programming the EEPROM
1142E–AVR–02/03
Figure 83. Programming the Flash Waveforms (continued)
The programming algorithm for the EEPROM Data Memory is as follows (refer to “Pro-
gramming the Flash” on page 147 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
The loaded command and address are retained in the device during programming. For
efficient programming, the following should be considered.
These considerations also applies to Flash, EEPROM and Signature bytes reading.
RDY/BSY
1. Set BS to “0”. This selects low data.
2. Give WR a negative pulse. This starts programming of the data byte.
3. Wait until to RDY/BSY goes high before programming the next byte.
The command needs only be loaded once when writing or reading multiple memory
locations.
Address high byte needs only be loaded before programming a new 256 word page
in the EEPROM.
Skip writing the data value $FF, that is the contents of the entire EEPROM after a
Chip Erase.
RESET
PAGEL
XTAL1
DATA
XA1
XA0
BS1
BS2
WR
OE
RDY/BSY goes low.
(See Figure 84 for signal waveforms)
+12V
DATA HIGH
ATmega163(L)
149

Related parts for atmega163l