- Components/
- Integrated Circuits (ICs)/
- Embedded - Microcontrollers/
ATMEGA328P-AU
ATMEGA328P-AU | |
---|---|
Manufacturer Part Number | ATMEGA328P-AU |
Description | MCU AVR 32K FLASH 32TQFP |
Manufacturer | Atmel |
Series | AVR® ATmega |
ATMEGA328P-AU datasheets |
|
Specifications of ATMEGA328P-AU | |||
---|---|---|---|
Core Processor | AVR | Core Size | 8-Bit |
Speed | 20MHz | Connectivity | I²C, SPI, UART/USART |
Peripherals | Brown-out Detect/Reset, POR, PWM, WDT | Number Of I /o | 23 |
Program Memory Size | 32KB (16K x 16) | Program Memory Type | FLASH |
Eeprom Size | 1K x 8 | Ram Size | 2K x 8 |
Voltage - Supply (vcc/vdd) | 1.8 V ~ 5.5 V | Data Converters | A/D 8x10b |
Oscillator Type | Internal | Operating Temperature | -40°C ~ 85°C |
Package / Case | 32-TQFP, 32-VQFP | Processor Series | ATMEGA32x |
Core | AVR8 | Data Bus Width | 8 bit |
Data Ram Size | 2 KB | Interface Type | 2-Wire, SPI, USART |
Maximum Clock Frequency | 20 MHz | Number Of Programmable I/os | 23 |
Number Of Timers | 3 | Maximum Operating Temperature | + 85 C |
Mounting Style | SMD/SMT | 3rd Party Development Tools | EWAVR, EWAVR-BL |
Development Tools By Supplier | ATAVRDRAGON, ATSTK500, ATSTK600, ATAVRISP2, ATAVRONEKIT | Minimum Operating Temperature | - 40 C |
On-chip Adc | 10 bit, 8 Channel | Cpu Family | ATmega |
Device Core | AVR | Device Core Size | 8b |
Frequency (max) | 20MHz | Total Internal Ram Size | 2KB |
# I/os (max) | 23 | Number Of Timers - General Purpose | 3 |
Operating Supply Voltage (typ) | 2.5/3.3/5V | Operating Supply Voltage (max) | 5.5V |
Operating Supply Voltage (min) | 1.8V | Instruction Set Architecture | RISC |
Operating Temp Range | -40C to 85C | Operating Temperature Classification | Industrial |
Mounting | Surface Mount | Pin Count | 32 |
Package Type | TQFP | Controller Family/series | AVR MEGA |
No. Of I/o's | 23 | Eeprom Memory Size | 1KB |
Ram Memory Size | 2KB | Cpu Speed | 20MHz |
Rohs Compliant | Yes | For Use With | ATSTK600 - DEV KIT FOR AVR/AVR32770-1007 - ISP 4PORT ATMEL AVR MCU SPI/JTAGATAVRDRAGON - KIT DRAGON 32KB FLASH MEM AVR |
Lead Free Status / RoHS Status | Lead free / RoHS Compliant | Other names | ATMEGA328P-20AU ATMEGA328P-20AU Q3790246 |
ATMEGA48A-PU PDF datasheetATMEGA48A-PU PDF datasheet #2ATMEGA48PA-MMH PDF datasheet #3ATMEGA328P-AU PDF datasheet #4
PrevNext
ATmega48A/48PA/88A/88PA/168A/168PA/328/328
The following code example shows one assembly and one C function for changing the time-out
value of the Watchdog Timer.
Assembly Code Example
WDT_Prescaler_Change:
C Code Example
void WDT_Prescaler_Change(void)
{
}
Note:
Note: The Watchdog Timer should be reset before any change of the WDP bits, since a change
in the WDP bits can result in a time-out when switching to a shorter time-out period.
8271C–AVR–08/10
(1)
; Turn off global interrupt
cli
; Reset Watchdog Timer
wdr
; Start timed sequence
lds r16, WDTCSR
ori
r16, (1<<WDCE) | (1<<WDE)
sts WDTCSR, r16
; --
Got four cycles to set the new values from here -
; Set new prescaler(time-out) value = 64K cycles (~0.5 s)
r16, (1<<WDE) | (1<<WDP2) | (1<<WDP0)
ldi
sts WDTCSR, r16
; --
Finished setting new values, used 2 cycles -
; Turn on global interrupt
sei
ret
(1)
__disable_interrupt();
__watchdog_reset();
/* Start timed
sequence */
WDTCSR |= (1<<WDCE) | (1<<WDE);
/* Set new prescaler(time-out) value = 64K cycles (~0.5 s) */
WDTCSR
= (1<<WDE) | (1<<WDP2) | (1<<WDP0);
__enable_interrupt();
1.
See ”About Code Examples” on page 7.
54
Related parts for ATMEGA328P-AU | |||
---|---|---|---|
Part Number | Manufacturer | Datasheet | |
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|
|
![]() |
Atmel Corporation |
|