atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 374

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
29.6.5
374
ATmega32U4
Programming the EEPROM
Figure 29-3. Programming the Flash Waveforms
Note:
The EEPROM is organized in pages, see
EEPROM, the program data is latched into a page buffer. This allows one page of data to be
programmed simultaneously. The programming algorithm for the EEPROM data memory is as
follows (refer to
Data loading):
K: Repeat 3 through 5 until the entire buffer is filled.
L: Program EEPROM page
1. A: Load Command “0001 0001”.
2. G: Load Address High Byte (0x00 - 0xFF).
3. B: Load Address Low Byte (0x00 - 0xFF).
4. C: Load Data (0x00 - 0xFF).
5. E: Latch data (give PAGEL a positive pulse).
1. Set BS2, BS1 to “00”.
2. Give WR a negative pulse. This starts programming of the EEPROM page. RDY/BSY
3. Wait until to RDY/BSY goes high before programming the next page (See
RESET +12V
goes low.
for signal waveforms).
RDY/BSY
PAGEL
XTAL1
DATA
1. “XX” is don’t care. The letters refer to the programming description above.
XA1
XA0
BS1
BS2
WR
OE
0x10
A
“Programming the Flash” on page 372
ADDR. LOW
B
DATA LOW
C
DATA HIGH
D
XX
E
ADDR. LOW
B
Table 29-12 on page
DATA LOW
C
(1)
F
DATA HIGH
D
for details on Command, Address and
XX
E
ADDR. HIGH
G
371. When programming the
ADDR. EXT.H
H
I
XX
Figure 29-4
7766A–AVR–03/08

Related parts for atmega32u4-16mu