ATmega328P Atmel Corporation, ATmega328P Datasheet - Page 306

no-image

ATmega328P

Manufacturer Part Number
ATmega328P
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega328P

Flash (kbytes)
32 Kbytes
Pin Count
32
Max. Operating Frequency
20 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
24
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
2
Eeprom (bytes)
1024
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
Yes
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega328P-10AU
Manufacturer:
IDT
Quantity:
493
Part Number:
ATmega328P-15AZ
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328P-15AZ
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
ATmega328P-20MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega328P-AN
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328P-ANR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328P-AU
Manufacturer:
KINGBRIGHT
Quantity:
37 000
Part Number:
ATmega328P-AU
Manufacturer:
ATMEL
Quantity:
1 250
Part Number:
ATmega328P-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328P-AU
Manufacturer:
AT
Quantity:
1 000
Part Number:
ATmega328P-AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega328P-AU
Manufacturer:
MICROCHIP/微芯
Quantity:
2 000
Company:
Part Number:
ATmega328P-AU
Quantity:
3 268
Company:
Part Number:
ATmega328P-AU
Quantity:
6 688
Part Number:
ATmega328P-MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega328P-PU
Manufacturer:
IR
Quantity:
11 450
Part Number:
ATmega328P-PU
Manufacturer:
Atmel
Quantity:
58 579
28.7.3
28.7.4
8271D–AVR–05/11
Chip Erase
Programming the Flash
The Chip Erase will erase the Flash and EEPROM
not reset until the program memory has been completely erased. The Fuse bits are not
changed. A Chip Erase must be performed before the Flash and/or EEPROM are
reprogrammed.
Note:
Load Command “Chip Erase”
1. Set XA1, XA0 to “10”. This enables command loading.
2. Set BS1 to “0”.
3. Set DATA to “1000 0000”. This is the command for Chip Erase.
4. Give XTAL1 a positive pulse. This loads the command.
5. Give WR a negative pulse. This starts the Chip Erase. RDY/BSY goes low.
6. Wait until RDY/BSY goes high before loading a new command.
The Flash is organized in pages, see
the program data is latched into a page buffer. This allows one page of program data to be pro-
grammed simultaneously. The following procedure describes how to program the entire Flash
memory:
A. Load Command “Write Flash”
1. Set XA1, XA0 to “10”. This enables command loading.
2. Set BS1 to “0”.
3. Set DATA to “0001 0000”. This is the command for Write Flash.
4. Give XTAL1 a positive pulse. This loads the command.
B. Load Address Low byte
1. Set XA1, XA0 to “00”. This enables address loading.
2. Set BS1 to “0”. This selects low address.
3. Set DATA = Address low byte (0x00 - 0xFF).
4. Give XTAL1 a positive pulse. This loads the address low byte.
C. Load Data Low Byte
1. Set XA1, XA0 to “01”. This enables data loading.
2. Set DATA = Data low byte (0x00 - 0xFF).
3. Give XTAL1 a positive pulse. This loads the data byte.
D. Load Data High Byte
1. Set BS1 to “1”. This selects high data byte.
2. Set XA1, XA0 to “01”. This enables data loading.
3. Set DATA = Data high byte (0x00 - 0xFF).
4. Give XTAL1 a positive pulse. This loads the data byte.
E. Latch Data
1. Set BS1 to “1”. This selects high data byte.
2. Give PAGEL a positive pulse. This latches the data bytes. (See
F. Repeat B through E until the entire buffer is filled or until all data within the page is loaded.
waveforms)
1. The EEPRPOM memory is preserved during Chip Erase if the EESAVE Fuse is programmed.
ATmega48A/PA/88A/PA/168A/PA/328/P
Table 28-11 on page
(1)
memories plus Lock bits. The Lock bits are
302. When programming the Flash,
Figure 28-3
for signal
306

Related parts for ATmega328P