- 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
Assembly Code Example
USART_MSPIM_Transfer:
USART_MSPIM_Wait_RXCn:
C Code Example
unsigned char USART_Receive( void )
{
}
Note:
20.6.1
Transmitter and Receiver Flags and Interrupts
The RXCn, TXCn, and UDREn flags and corresponding interrupts in USART in MSPIM mode
are identical in function to the normal USART operation. However, the receiver error status flags
(FE, DOR, and PE) are not in use and is always read as zero.
20.6.2
Disabling the Transmitter or Receiver
The disabling of the transmitter or receiver in USART in MSPIM mode is identical in function to
the normal USART operation.
8271C–AVR–08/10
(1)
; Wait for empty transmit buffer
in r16, UCSRnA
sbrs r16, UDREn
rjmp USART_MSPIM_Transfer
; Put data (r16) into buffer, sends the data
out UDRn,r16
; Wait for data to be received
in r16, UCSRnA
sbrs r16, RXCn
rjmp USART_MSPIM_Wait_RXCn
; Get and return received data from buffer
in r16, UDRn
ret
(1)
/* Wait for empty transmit buffer */
while ( !( UCSRnA & (1<<UDREn)) );
/* Put data into buffer, sends the data */
UDRn = data;
/* Wait for data to be received */
while ( !(UCSRnA & (1<<RXCn)) );
/* Get and return received data from buffer */
return UDRn;
1.
See ”About Code Examples” on page 7.
210
Related parts for ATMEGA328P-AU | ||||
---|---|---|---|---|
Part Number | Description | Manufacturer | Datasheet | Request |
![]() |
Atmel Corporation |
| ||
![]() |
ATMEL Corporation |
| ||
![]() |
ATMEL Corporation | |||
![]() |
IC AVR MCU 32K 16MHZ 5V 44-QFN | Atmel |
| |
![]() |
IC AVR MCU 32K 16MHZ 5V 40DIP | Atmel |
| |
![]() |
IC AVR MCU 32K 16MHZ 5V 44TQFP | Atmel |
| |
![]() |
IC AVR MCU 32K 16MHZ IND 40-DIP | Atmel |
| |
![]() |
IC AVR MCU 32K 16MHZ IND 44-TQFP | Atmel |
| |
![]() |
MCU AVR 32KB FLASH 16MHZ 44TQFP | Atmel |
| |
![]() |
MCU AVR 32KB FLASH 16MHZ 44QFN | Atmel |
| |
![]() |
MCU AVR 32K FLASH 16MHZ 44-TQFP | Atmel |
| |
![]() |
MCU AVR 32KB FLASH 16MHZ 44TQFP | Atmel | ||
![]() |
IC AVR MCU 32K 16MHZ COM 40-DIP | Atmel |
| |
![]() |
IC AVR MCU 32K 16MHZ COM 44-QFN | Atmel |
| |
![]() |
IC AVR MCU 32K 16MHZ COM 44-TQFP | Atmel |
|