ATMEGA16U2-16AU Atmel, ATMEGA16U2-16AU Datasheet - Page 255

no-image

ATMEGA16U2-16AU

Manufacturer Part Number
ATMEGA16U2-16AU
Description
8-bit Microcontrollers - MCU 16K Flash
Manufacturer
Atmel
Datasheet

Specifications of ATMEGA16U2-16AU

Product Category
8-bit Microcontrollers - MCU
Rohs
yes
Core
AVR
Data Bus Width
8 bit
Program Memory Size
16 KB
Data Ram Size
1.25 KB
Data Rom Size
512 B
Program Memory Type
Flash
Factory Pack Quantity
1250
25.7.5
7799D–AVR–11/10
Programming the EEPROM
Figure 25-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 253
ADDR. LOW
B
DATA LOW
C
DATA HIGH
D
XX
E
ADDR. LOW
B
Table 25-8 on page
DATA LOW
C
(1)
F
ATmega8U2/16U2/32U2
DATA HIGH
D
for details on Command, Address and
XX
E
ADDR. HIGH
G
249. When programming the
ADDR. EXT.H
H
I
XX
Figure 25-4
255

Related parts for ATMEGA16U2-16AU