Microchip logo
Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes
product primary image

ATmega328PB

Status: In Production

Features:

  • 131 Powerful Instructions
  • Most Single Clock Cycle Execution
  • 32 x 8 General Purpose Working Registers
  • Fully Static Operation
  • Up to 20 MIPS Throughput at 20MHz
  • On-Chip 2-Cycle Multiplier
  • 32KBytes of In-System Self-Programmable Flash program memory
  • 1KBytes EEPROM
  • 2KBytes Internal SRAM
  • Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
  • Data retention: 20 years at 85°C
  • In-System Programming by On-chip Boot Program
  • True Read-While-Write Operation
  • Programming Lock for Software Security
  • Capacitive Touch Buttons, Sliders and Wheels
  • 24 Self-Cap Channels and 144 Mutual Cap Channels
  • Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode
  • Three 16-bit Timer/Counters with Separate Prescaler, Compare Mode, and Capture Mode
  • Real Time Counter with Separate Oscillator
  • Ten PWM Channels
  • 8-channel 10-bit ADC in TQFP and QFN/MLF package
  • Two Programmable Serial USARTs
  • Two Master/Slave SPI Serial Interfaces
  • Two Byte-Oriented 2-Wire Serial Interfaces (Philips I2C Compatible)
  • Programmable Watchdog Timer with Separate On-chip Oscillator
  • On-Chip Analog Comparator
  • Interrupt and Wake-Up on Pin Change
  • Power-On Reset and Programmable Brown-Out Detection
  • Internal 8 MHz Calibrated Oscillator
  • External and Internal Interrupt Sources
  • Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and Extended Standby
  • Clock Failure Detection Mechanism and Switch to Internal 8 MHz RC Oscillator in case of Failure
  • Individual Serial Number to Represent a Unique ID
  • 27 Programmable I/O Lines
  • 32-pin TQFP and 32-pin QFN/MLF
  • 1.8 - 5.5V
  • -40°C to 105°C
  • 0 - 4MHz @ 1.8 - 5.5V
  • 0 - 10MHz @ 2.7 - 5.5.V
  • 0 - 20MHz @ 4.5 - 5.5V
  • Active Mode: 0.24mA
  • Power-Down Mode: 0.2μA
  • Power-Save Mode: 1.3μA (Including 32kHz RTC)
View More
Overview
Documents
Development Environment
Similar Devices
RoHS Information
Buy Now

Device Overview

Summary

The high-performance Microchip's ATmega328PB is an 8-bit AVR® RISC-based microcontroller (MCU) with picoPower® technology. It combines 32kB ISP Flash memory with read-while-write capabilities, 1kB EEPROM, 2kB SRAM, 27 general purpose I/O lines, 32 general purpose working registers, five flexible timer/counters with compare modes, internal and external interrupts, two USARTs with wake-up on start of transmission, two byte-oriented 2-wire serial interfaces, two SPI serial ports, 8-channel 10-bit A/D converter, programmable watchdog timer with internal oscillator, a unique serial number and six software selectable power saving modes. The device operates between 1.8-5.5 volts.

The ATmega328PB is the first 8-bit AVR MCU to feature the QTouch® Peripheral Touch Controller (PTC), which acquires signals in order to detect touch on capacitive sensors, and supports both self- and mutual-capacitance sensors. The PTC is supported by the QTouch Composer development tool (QTouch Library project builder and QTouch Analyzer). It provides a faster and less complex capacitive touch implementation in any application.

The ATmega328PB supports 24 buttons in self-capacitance mode, or up to 144 buttons in mutual-capacitance mode. Mixing and matching mutual-and self-capacitance sensors is possible. Only one pin is required per electrode and no external components are required, delivering savings on the BOM cost compared to competing solutions.

By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed.

Additional Features
    • Advanced RISC Architecture
      • 131 Powerful Instructions
      • Most Single Clock Cycle Execution
      • 32 x 8 General Purpose Working Registers
      • Fully Static Operation
      • Up to 20 MIPS Throughput at 20MHz
      • On-Chip 2-Cycle Multiplier
    • High Endurance Non-Volatile Memory Segments
      • 32KBytes of In-System Self-Programmable Flash program memory
      • 1KBytes EEPROM
      • 2KBytes Internal SRAM
      • Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
      • Data retention: 20 years at 85°C
      • Optional Boot Code Section with Independent Lock Bits
        • In-System Programming by On-chip Boot Program
        • True Read-While-Write Operation
      • Programming Lock for Software Security
    • Peripheral Features
      • Peripheral Touch Controller (PTC)
        • Capacitive Touch Buttons, Sliders and Wheels
        • 24 Self-Cap Channels and 144 Mutual Cap Channels
      • Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode
      • Three 16-bit Timer/Counters with Separate Prescaler, Compare Mode, and Capture Mode
      • Real Time Counter with Separate Oscillator
      • Ten PWM Channels
      • 8-channel 10-bit ADC in TQFP and QFN/MLF package
      • Two Programmable Serial USARTs
      • Two Master/Slave SPI Serial Interfaces
      • Two Byte-Oriented 2-Wire Serial Interfaces (Philips I2C Compatible)
      • Programmable Watchdog Timer with Separate On-chip Oscillator
      • On-Chip Analog Comparator
      • Interrupt and Wake-Up on Pin Change
    • Special Microcontroller Features
      • Power-On Reset and Programmable Brown-Out Detection
      • Internal 8 MHz Calibrated Oscillator
      • External and Internal Interrupt Sources
      • Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and Extended Standby
      • Clock Failure Detection Mechanism and Switch to Internal 8 MHz RC Oscillator in case of Failure
      • Individual Serial Number to Represent a Unique ID
    • I/O and Packages
      • 27 Programmable I/O Lines
      • 32-pin TQFP and 32-pin QFN/MLF
    • Operating Voltage:
      • 1.8 - 5.5V
    • Temperature Range:
      • -40°C to 105°C
    • Speed Grade:
      • 0 - 4MHz @ 1.8 - 5.5V
      • 0 - 10MHz @ 2.7 - 5.5.V
      • 0 - 20MHz @ 4.5 - 5.5V
    • Power Consumption at 1MHz, 1.8V, 25°C
      • Active Mode: 0.24mA
      • Power-Down Mode: 0.2μA
      • Power-Save Mode: 1.3μA (Including 32kHz RTC)
Parametrics
Name
Value
Program Memory Type
Flash
Program Memory Size (KB)
32
CPU Speed (MIPS/DMIPS)
20
SRAM Bytes
2,048
Data EEPROM/HEF (bytes)
1024
Digital Communication Peripherals
2-UART, 2-SPI, 2-I2C
Capture/Compare/PWM Peripherals
3 Input Capture, 3 CCP, 10PWM
Timers
2 x 8-bit, 3 x 16-bit
Number of Comparators
1
Temperature Range (C)
-40 to 105
Operating Voltage Range (V)
1.8 to 5.5
Pin Count
32
Low Power
Yes

Documents

Jump to:

Data Sheet

Application Notes

Download All

Product Document

12/10/2016
2468KB

User Guides

08/02/2017
312KB

White Papers

Development Environment

  • Demo & Evaluation Boards
  • Emulators & Debuggers
  • Programmers
  • Application Examples
Demo & Evaluation Boards
ATSTK600 Kit
ATSTK600 Kit ( ATSTK600 )

A complete starter kit and development system for the 8-bit and 32-bit AVR microcontrollers that gives designers a quick start to develop code on the AVR, with advanced features for prototyping and testing new designs.

The AVR device connects to the STK600 using an innovative routing and socketcard sandwich system, which routes the signals from the device to the appropriate...

Learn More
Add To Cart
Power Debugger kit
Power Debugger kit ( ATPOWERDEBUGGER )

Power Debugger is a powerful development tool for debugging and programming AVR microcontrollers using UPDI, JTAG, PDI, debugWIRE, aWire, TPI or SPI target interfaces and ARM® Cortex®-M based SAM microcontrollers using JTAG or SWD target interfaces.

In addition the Power Debugger has two independent current sensing channels for measuring and optimizing the power consumption of

...

Learn More
Add To Cart
ATmega328PB-XMINI
ATmega328PB-XMINI ( ATMEGA328PB-XMINI )

The ATmega328PB Xplained Mini evaluation kit is a hardware platform for evaluating the ATmega328PB microcontroller (MCU). The evaluation kit comes with a fully integrated debugger that provides seamless integration with Atmel Studio. The kit provides access to the features of the ATmega328PB MCU, enabling easy integration of the device into a custom design.

The kit features two

...

Learn More
Add To Cart
Atmel-ICE Full Kit
Atmel-ICE Full Kit ( ATATMEL-ICE )

Atmel-ICE is a powerful development tool for debugging and programming ARM® Cortex®-M based SAM and AVR microcontrollers with on-chip debug capability.

Atmel-ICE supports:

  • Programming and on-chip debugging of all AVR 32-bit MCUs on both JTAG and aWire interfaces
  • Programming and on-chip debugging of all AVR
...

Learn More
Add To Cart
Emulators & Debuggers
MPLAB PICkit 4 In-Circuit Debugger
MPLAB PICkit 4 In-Circuit Debugger ( PG164140 )

Fast programming, increased functionality, at the same price as its predecessor.


The MPLAB® PICkit™ 4 In-Circuit Debugger/Programmer allows fast and easy debugging and programming of PIC® ,  dsPIC®, and CEC flash microcontrollers, using the powerful graphical user interface of MPLAB X Integrated Development Environment

...

Learn More
Add To Cart
Programmers
MPLAB PICkit 4 In-Circuit Debugger
MPLAB PICkit 4 In-Circuit Debugger ( PG164140 )

Fast programming, increased functionality, at the same price as its predecessor.


The MPLAB® PICkit™ 4 In-Circuit Debugger/Programmer allows fast and easy debugging and programming of PIC® ,  dsPIC®, and CEC flash microcontrollers, using the powerful graphical user interface of MPLAB X Integrated Development Environment

...

Learn More
Add To Cart

Similar Devices

Product
Pins
Flash (KB)
RAM (B)
Price 5K
Notes
32
16
1,024
$2.07
 
32
16
1,024
$1.15
 
32
16
1,024
$2.28
 
32
16
1,024
$1.14
 
32
16
1,024
$0.87
 
32
32
2,048
$1.33
 
32
32
2,048
$1.46
 
32
32
2,048
$3.09
 
32
32
2,048
$0.92
 
32
32
2,048
 
 
32
4
512
$1.31
 
32
4
512
$0.77
 
32
4
512
$1.46
 
32
4
512
$0.89
 
32
4
512
$0.76
 
32
8
1,024
$1.70
 
32
8
1,024
$1.84
 
32
8
1,024
$0.92
 
32
8
1,024
$1.90
 
32
8
1,024
$0.95
 
32
8
1,024
$0.81
 
32
8
1,024
$1.39
 

RoHS Information

Part Number
Device Weight (g)
Shipping Weight (Kg)
Lead Count
Package Type
Package Width
Solder Composition
JEDEC Indicator
RoHS
China EFUP
ATMEGA328PB-AN
0.338300
0.800000
32
TQFP
7x7x1mm
Matte Tin
e3
ATMEGA328PB-AU
0.338300
0.800000
32
TQFP
7x7x1mm
Matte Tin
e3
ATMEGA328PB-AUR
0.338300
0.497500
32
TQFP
7x7x1mm
Matte Tin
e3
ATMEGA328PB-ANR
0.338300
0.497500
32
TQFP
7x7x1mm
Matte Tin
e3
ATMEGA328PB-MUR
0.061300
0.075200
32
VQFN
5x5x0.9mm
Matte Tin
e3
ATMEGA328PB-MN
0.061300
0.512245
32
VQFN
5x5x0.9mm
Matte Tin
e3
ATMEGA328PB-MNR
0.061300
0.075200
32
VQFN
5x5x0.9mm
Matte Tin
e3
ATMEGA328PB-MU
0.061300
0.512245
32
VQFN
5x5x0.9mm
Matte Tin
e3
To see a complete listing of RoHS data for this device, please Click here
Shipping Weight = Device Weight + Packing Material weight. Please contact sales office if device weight is not available.

Buy from the Microchip Store

Grid
View
Table
View
Filter:
Apply
Clear
Only show products with samples
Product
Leads
Package Type
Temp Range
Packing Media
5K Pricing
Buy