ATMEGA328P-20PU Atmel, ATMEGA328P-20PU Datasheet - Page 299

no-image

ATMEGA328P-20PU

Manufacturer Part Number
ATMEGA328P-20PU
Description
Manufacturer
Atmel
Datasheet

Specifications of ATMEGA328P-20PU

Cpu Family
ATmega
Device Core
AVR
Device Core Size
8b
Frequency (max)
20MHz
Interface Type
SPI/TWI/USART
Program Memory Type
Flash
Program Memory Size
32KB
Total Internal Ram Size
2KB
# I/os (max)
23
Number Of Timers - General Purpose
3
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
2.7V
On-chip Adc
6-chx10-bit
Instruction Set Architecture
RISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Through Hole
Pin Count
28
Package Type
PDIP
Lead Free Status / Rohs Status
Compliant
27.7.5
8025K–AVR–10/09
Programming the EEPROM
Figure 27-2. Addressing the Flash Which is Organized in Pages
Note:
Figure 27-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):
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).
RESET +12V
RDY/BSY
PAGEL
1. PCPAGE and PCWORD are listed in
XTAL1
1. “XX” is don’t care. The letters refer to the programming description above.
DATA
XA1
XA0
BS1
BS2
WR
OE
PROGRAM MEMORY
PROGRAM
COUNTER
0x10
PAGE
”Programming the Flash” on page 297
A
PAGE ADDRESS
WITHIN THE FLASH
ADDR. LOW
B
PCMSB
DATA LOW
C
PCPAGE
DATA HIGH
D
XX
E
PAGEMSB
ADDR. LOW
Table 27-10 on page
PCWORD
B
Table 27-9 on page
WORD ADDRESS
WITHIN A PAGE
DATA LOW
(1)
C
F
ATmega48P/88P/168P
DATA HIGH
INSTRUCTION WORD
D
for details on Command, Address and
PAGE
XX
E
294.
(1)
ADDR. HIGH
294. When programming the
G
H
PCWORD[PAGEMSB:0]:
XX
00
01
02
PAGEEND
299

Related parts for ATMEGA328P-20PU