ATMEGA168PB-MU - 8-bit AVR MCU 16KB Flash 20MHz QFN-32 | Microchip
料号: ATMEGA168PB-MU ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 1 | $1.85 | $1.85 |
| 10 | $1.68 | $16.80 |
| 100 | $1.52 | $152.00 |
| 500 | $1.4099 | $704.95 |
| 1,000 | $1.31 | $1,310.00 |
ATMEGA168PB-MU 概述
An 8-bit microcontroller is a single-chip computer that processes data in 8-bit words and integrates a CPU, memory, timers, and communication peripherals on one die. The ATmega168PB belongs to the AVR ATmega family of microcontrollers, part of the broader power-management hierarchy of embedded processors, and succeeds the ATmega168A/P generations with lower power and added peripherals. The picoPower technology and AVR enhanced RISC architecture execute most instructions in a single clock cycle, achieving throughputs approaching 1 MIPS per MHz.
Key features include 16 KB (8K x 16) self-programmable flash with read-while-write support, 512 B EEPROM, 1 KB SRAM, 27 general-purpose I/O lines, and 32 general-purpose working registers. Peripheral set comprises three flexible timers/counters with compare modes, a 10-bit ADC, a USART with wake-up on start condition, and two-wire interface (I2C) and SPI serial ports. The device operates from 1.8 V to 5.5 V over the industrial temperature range of -40C to +85C, and is classified by DigiKey as an AVR ATmega Functional Safety (FuSa) microcontroller IC.
Architecturally, the AVR core uses Harvard structure with separate program and data buses; the single-cycle instruction execution allows system designers to optimize power consumption versus processing speed, choosing slower clocks for battery life rather than lower supply voltage rails.
Typical applications include industrial sensor nodes, consumer appliances, battery-powered portable devices, and hobby/Arduino-compatible embedded systems, where the QFN/MLF footprint suits space-constrained, automated PCB assembly.
For design, verify pin functionality changes when migrating from ATmega48/88/168 to the PB generation, per Microchip application note MCU8APPS-456, since PB parts are drop-in for the 32-pin VFQFN only under stated conditions.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet.
直接替换替代料: ATMEGA168PB-MU ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: ATMEGA168PB-MU (相同外形与封装尺寸) ——差异在于 Package, RoHS Status, Supply Voltage Range, Operating Temperature, Flash Memory.
快速对比工具——选择替代料号进行并排对比:
ATMEGA328PB-MU
✅ 直接替换✓ 有现货
$1.19 / 个
查看数据手册 →ATMEGA168PA-MU
✅ 直接替换✓ 有现货
$1.72 / 个
查看数据手册 →ATMEGA168A-MU
✅ 直接替换✓ 有现货
$1.38 / 个
查看数据手册 →ATMEGA168P-20MUR
✅ 直接替换✓ 有现货
$1.58 / 个
查看数据手册 →ATMEGA88PB-MU
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
ATMEGA48PB-MU
✅ 直接替换✓ 有现货
$0.94 / 个
查看数据手册 →ATMEGA168PB-MU 最大额定值与电气特性
| Core Processor | AVR |
| Core Size | 8-Bit |
| Speed | 20 MHz |
| Flash Memory | 16 KB (8K x 16) |
| EEPROM | 512 B |
| SRAM | 1 KB |
| General Purpose I/O | 27 |
| Working Registers | 32 |
| Supply Voltage Range | 1.8 V to 5.5 V |
| Timers/Counters | 3 flexible timers/counters with compare modes |
| ADC Resolution | 10-bit |
| Connectivity | USART, SPI, I2C (Two-Wire Interface) |
| 工作温度 | -40C to +85C (Industrial) |
| 封装 | 32-VFQFN (5x5 mm) with exposed pad |
| 安装类型 | Surface Mount |
| Technology | picoPower low-power CMOS |
| RoHS 状态 | Compliant (Green package) |
| Throughput | Approaching 1 MIPS per MHz |
ATMEGA168PB-MU 引脚配置
| 引脚 1 | PD3 — Port D bit 3 (GPIO / PCINT19) |
| 引脚 2 | PD4 — Port D bit 4 (GPIO / PCINT20 / XCK / T0) |
| 引脚 3 | GND — Ground |
| 引脚 4 | VCC — Digital supply voltage |
| 引脚 5 | GND — Ground |
| 引脚 6 | VCC — Digital supply voltage |
| 引脚 7 | PB6 — Port B bit 6 (XTAL1 / TOSC1 / PCINT6) |
| 引脚 8 | PB7 — Port B bit 7 (XTAL2 / TOSC2 / PCINT7) |
| 引脚 9 | PD5 — Port D bit 5 (GPIO / PCINT21 / T1 / OC0B) |
| 引脚 10 | PD6 — Port D bit 6 (GPIO / PCINT22 / AIN0 / OC0A) |
| 引脚 11 | PD7 — Port D bit 7 (GPIO / PCINT23 / AIN1) |
| 引脚 12 | PB0 — Port B bit 0 (GPIO / PCINT0 / ICP1 / CLKO) |
| 引脚 13 | PB1 — Port B bit 1 (GPIO / PCINT1 / OC1A) |
| 引脚 14 | PB2 — Port B bit 2 (GPIO / PCINT2 / SS / OC1B) |
| 引脚 15 | PB3 — Port B bit 3 (GPIO / PCINT3 / MOSI / OC2A) |
| 引脚 16 | PB4 — Port B bit 4 (GPIO / PCINT4 / MISO) |
| 引脚 17 | PB5 — Port B bit 5 (GPIO / PCINT5 / SCK) |
| 引脚 18 | AVCC — ADC supply voltage |
| 引脚 19 | ADC6 — Analog input channel 6 |
| 引脚 20 | ADC7 — Analog input channel 7 |
| 引脚 21 | PC0 — Port C bit 0 (ADC0 / PCINT8) |
| 引脚 22 | PC1 — Port C bit 1 (ADC1 / PCINT9) |
| 引脚 23 | PC2 — Port C bit 2 (ADC2 / PCINT10) |
| 引脚 24 | PC3 — Port C bit 3 (ADC3 / PCINT11) |
| 引脚 25 | PC4 — Port C bit 4 (ADC4 / SDA / PCINT12) |
| 引脚 26 | PC5 — Port C bit 5 (ADC5 / SCL / PCINT13) |
| 引脚 27 | PC6 — RESET (active-low reset input) |
| 引脚 28 | PD0 — Port D bit 0 (GPIO / PCINT16 / RXD) |
| 引脚 29 | PD1 — Port D bit 1 (GPIO / PCINT17 / TXD) |
| 引脚 30 | PD2 — Port D bit 2 (GPIO / PCINT18 / INT0) |
| 引脚 31 | GND — Ground |
| 引脚 32 | VCC — Digital supply voltage |
典型应用
ATMEGA168PB-MU 适用于 6 应用s: Industrial Sensor Nodes, Battery-Powered Portable Devices, Consumer Appliances and White Goods, Hobby and Arduino-Compatible Systems, Embedded Communication Interfaces, Motor Control and PWM Actuation.
Industrial Sensor Nodes
The ATMEGA168PB-MU fits industrial sensor nodes because its 1.8 V to 5.5 V supply range tolerates unregulated 3 V battery packs or noisy 5 V rails, while its industrial -40C to +85C rating covers factory-floor temperature swings. The 10-bit ADC digitizes thermistors, pressure bridges, and 4-20 mA conditioned signals directly, and the USART plus two-wire interface link to RS-485 transceivers or display drivers. In a typical node, the MCU spends most time in picoPower sleep modes, waking on comparator, external interrupt, or watchdog timeout, so average current drops to microamp levels. Its 16 KB flash holds sensor calibration tables and Modbus or custom protocol firmware with room to spare. Recommend 0.1 uF decoupling on VCC/AVCC and solid exposed-pad grounding for ADC accuracy.
推荐
Battery-Powered Portable Devices
picoPower technology makes the ATMEGA168PB-MU well suited to battery-powered portable products such as remote controls, meters, and wearable accessories. Operating directly from two alkaline cells (3 V) or a lithium coin cell (3 V) within the 1.8 V to 5.5 V range eliminates a regulator stage, saving board area and quiescent drain. Power-down and power-save modes reduce current to sub-microamp levels while the asynchronous timer keeps RTC functions alive, and the USART wake-up on start-condition feature lets the device sleep until an external event arrives. The 20 MHz capability is available when running on 5 V for burst processing, while 1 MHz internal oscillator modes stretch battery life at 3 V. Designers should measure real sleep current with all unused GPIO defined as inputs with pull-ups disabled, a common pitfall that inflates standby drain several-fold.
推荐
Consumer Appliances and White Goods
The ATMEGA168PB-MU serves appliance control boards where cost, robustness, and code space balance: 16 KB flash accommodates button debouncing, LED or LCD driving, motor relay sequencing, and fault-logging code, while 1 KB SRAM supports small state machines. The three timers with compare modes generate PWM for fan, heater, or dimmer control, and the 10-bit ADC reads NTC temperature sensors and user potentiometers. The 32-VFQFN (5x5 mm) surface-mount package supports automated assembly, and its Green RoHS package meets global appliance environmental requirements. Its industrial temperature rating handles enclosure interiors that exceed consumer-grade limits. DigiKey classifies the device as a Functional Safety (FuSa) MCU, which supports appliance safety workflows. Use the watchdog timer and brown-out detector enabled by fuse settings for power-dip resilience in mains-powered environments.
推荐
Hobby and Arduino-Compatible Systems
The ATMEGA168PB-MU is Arduino-compatible through the MiniCore and XMiniCore community hardware packages, and Microchip's ATmega168PB Xplained Mini kit provides an official Arduino Uno form-factor evaluation platform. The 16 KB flash is sufficient for typical sketches using Serial, I2C (Wire), and SPI libraries, with the caveat that large sketches may need optimization versus 32 KB ATmega328 boards. The AVR toolchain - Atmel Studio / Microchip Studio, avr-gcc, and avrdude - supports ISP programming through the standard 6-pin header, so existing UNO-style programming hardware works unchanged. Its PB-generation peripherals (extra timer and pin-function options) benefit advanced users while remaining transparent to Arduino API code. For prototypes, pair with a USB-serial bridge and rely on the internal 8 MHz oscillator to omit the external crystal in space-constrained builds.
推荐
Embedded Communication Interfaces
With USART, SPI, and two-wire interface (I2C) on board, the ATMEGA168PB-MU acts as a protocol bridge or companion controller in systems where a main processor needs offloading. The USART with wake-on-start-condition enables low-power listening for LIN-style or custom serial links; SPI runs sensor or flash devices at high clock rates; and the two-wire interface supports multi-drop peripheral networks with addressing. The PB generation's additional timer resources support precise baud-rate generation and software protocol timing. Running at 5 V provides TTL-level noise margin for cable runs, while 3.3 V operation interfaces directly with modern logic. The 27 GPIO lines cover chip-selects, direction control, and status handshakes without external expanders. Firmware volume for UART buffers, CRC routines, and command parsers fits comfortably in the 16 KB flash with 1 KB SRAM for buffering.
推荐
Motor Control and PWM Actuation
The ATMEGA168PB-MU's three flexible timers/counters with compare modes generate multiple hardware PWM channels for small DC motor, servo, fan, and LED actuation tasks. At 20 MHz, 8-bit PWM resolution is available at roughly 78 kHz carrier, above audible range for fan and pump control, while slower carriers suit hobby servos and H-bridge drive. The 10-bit ADC reads back current-sense or potentiometer feedback for closed-loop speed control, and external interrupts handle encoder or zero-cross inputs. The 1.8 V to 5.5 V range matches single-cell or USB-powered actuators, and the industrial temperature rating covers enclosed driver boards. Flash space of 16 KB accommodates PID control, ramp profiles, and fault handling. When driving inductive loads, use freewheeling diodes on the external power stage - the MCU GPIO itself must remain within its absolute maximum ratings.
推荐
推荐产品汇总
工程参考数据: ATMEGA168PB-MU ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | ATMEGA328PB-MU | ATMEGA168PA-MU | ATMEGA88PB-MU | ATMEGA48PB-MU |
|---|---|---|---|---|---|
| Package | 32-VFQFN (5x5 mm) with EP | 32-VFQFN (5x5 mm) - same | 32-VFQFN/MLF (5x5 mm) - same | 32-VFQFN (5x5 mm) - same | 32-VFQFN (5x5 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 16 KB (8K x 16) | 32 KB (16K x 16) | 16 KB (8K x 16) | 8 KB (4K x 16) | 4 KB (2K x 16) |
| SRAM | 1 KB | 2 KB | 1 KB | 512 B | 256 B |
| EEPROM | 512 B | 1 KB | 512 B | 256 B | 256 B |
| Max Clock Speed | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Supply Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V |
| Peripheral Set | 3 timers, 10-bit ADC, USART, SPI, TWI | More timers, 2x USART, 2x TWI, 2x SPI (PB additions) | 3 timers, 10-bit ADC, USART, SPI, TWI (PA set) | Reduced timer/serial set vs 168PB | Reduced timer/serial set vs 168PB |
| Operating Temperature | -40C to +85C (Industrial) | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
关键差异点
- Double the memory at the same footprint (对比 ATMEGA328PB-MU)
- Lower power and more peripherals than the PA generation (对比 ATMEGA168PA-MU)
- Balanced memory sizing for mid-range firmware (对比 ATMEGA88PB-MU)
- Cost floor with same pinout (对比 ATMEGA48PB-MU)
设计说明
The 32-VFQFN exposed pad is the primary ground connection and must be soldered to a PCB thermal land with an array of thermal vias to the ground plane. QFN center-pad voiding during reflow is a common yield problem: use a divided solder-paste pattern (typically 60-70% coverage across 4-6 apertures) rather than one large paste block. Follow Microchip's QFN land-pattern recommendations, and treat the MLF-to-VFQFN footprint equivalence described in application note MCU8APPS-456 when migrating legacy ATmega168 layouts.
Decouple both VCC pins (pins 4, 6, 32) and AVCC (pin 18) with 0.1 uF ceramics placed within 2-3 mm of each pin, plus one 4.7-10 uF bulk capacitor per supply domain. Tie AVCC to VCC through a low-pass LC filter (e.g., 10 uH + 10 uF) when ADC accuracy matters, and never leave AVCC unconnected even if the ADC is unused. Enable the internal brown-out detector via fuses for battery applications, since SRAM corruption below the minimum operating voltage is the most common field failure on AVR designs.
When migrating from ATmega168/168A/168PA to the PB version, review the Added/Modified Pin Functionality chapter of application note MCU8APPS-456 before reusing the PCB - PB parts are drop-in for the 32-pin VFQFN only under stated conditions, and some pins carry additional analog functions. Also note that PC6 (pin 27) is dedicated RESET on this pinout: enable the external-reset fuse or add an optional pull-up (10k) to VCC, since a floating reset pin causes sporadic boot failures that are difficult to diagnose.
Estimated: at 5 V and 20 MHz with all peripherals active, the ATmega168PB draws on the order of 10-15 mA of dynamic current (about 50-75 mW), which produces a junction rise well under 5 C over a typical land pattern given the exposed-pad thermal path - no heatsinking is required. Thermal design attention is instead justified only when many GPIO pins source near-maximum current simultaneously; in that case, verify per-pin and total device current limits against the datasheet absolute maximum table.
合规信息
Green RoHS-compliant package per Mouser (QFN/MLF GRN 5V) and LCSC listing. DigiKey additionally classifies the part as a Functional Safety (FuSa) microcontroller. REACH and conflict-minerals statements not found in provided data.