ATMEGA168-20PU - 8-bit AVR MCU 16KB Flash 20MHz PDIP-28 | Microchip
부품 번호: ATMEGA168-20PU ✓ 활성| 수량 | 단가 | 합계 |
|---|---|---|
| 1 | $5.05 | $5.05 |
| 10 | $4.72 | $47.20 |
| 100 | $4.35 | $435.00 |
| 500 | $4.05 | $2,025.00 |
| 1,000 | $3.78 | $3,780.00 |
ATMEGA168-20PU 개요
An 8-bit microcontroller (MCU) is a self-contained computing chip that integrates a processor core, program memory, data memory, and peripherals on a single die. Within the power-management and embedded hierarchy, the ATMEGA168 belongs to the AVR ATmega family of microcontroller ICs, which sit above bare logic ICs and below 32-bit application processors, making them ideal for compact embedded control tasks.
Key features include the advanced AVR RISC architecture executing 133 powerful instructions - most in a single clock cycle - 32 general-purpose 8-bit working registers, 16KB of In-System Self-Programmable Flash with read-while-write capability, and debugWIRE on-chip debugging. The 20 MHz grade (the '-20' suffix) delivers up to 20 MIPS throughput at 5V, roughly 1 MIPS per MHz.
The Harvard-architecture core accesses program and data memory through separate buses, allowing single-cycle instruction fetch. Peripheral set includes two 8-bit timers, one 16-bit timer, a 6-channel 10-bit ADC on the PDIP variant, USART, two-wire interface (I2C-compatible), SPI, analog comparator, and multiple sleep modes for low-power design. In-System Programming (ISP) via the SPI or debugWIRE interface allows firmware updates without removing the chip from the board.
Typical applications include Arduino-compatible hobby and prototyping boards, industrial sensor nodes, home automation controllers, battery-powered instruments, and legacy through-hole designs where hand-solderability matters. The PDIP-28 package fits standard 0.1-inch sockets for rapid prototyping.
Design tip: full 20 MHz operation is specified at 4.5V to 5.5V; at lower supply voltages the maximum safe clock frequency scales down per the datasheet frequency-versus-voltage curve.
This page synthesizes verified distributor pricing, drop-in alternatives, PDIP-28 pinout data, and practical design notes not consolidated in the manufacturer datasheet.
드롭인 대체품: ATMEGA168-20PU — 동일 패키지, 핀 호환. PCB 재작업이 필요한 다른 패키지 부품은 제외됩니다.
이 시리즈의 변형
다음과 드롭인 호환되는 동일 시리즈 모델: ATMEGA168-20PU (동일 폼 팩터 및 풋프린트) — 차이점: Communication Interfaces, Package, ADC, RoHS Status, Working Registers.
빠른 비교 도구 — 나란히 비교할 대체 부품을 선택하십시오:
ATMEGA168A-PU
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
ATMEGA168PA-PU
✅ 드롭인✓ 재고 있음
$1.86 / 개
데이터시트 보기 →ATMEGA168P-20PU
✅ 드롭인✓ 재고 있음
$2.05 / 개
데이터시트 보기 →ATMEGA328P-PU
✅ 드롭인✓ 재고 있음
가격 문의
데이터시트 보기 →ATMEGA328-PU
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
ATMEGA88-20PU
✅ 드롭인 ⚠️ 사양 미검증✓ 재고 있음
$0.82 / 개
데이터시트 보기 →ATMEGA168-20PI
✅ 드롭인 ⚠️ 사양 미검증📋 참조 대체품 (카탈로그에 없음)
ATMEGA168-20PU 최대 정격 & 전기적 특성
| Core Processor | AVR 8-bit RISC |
| Core Size | 8-Bit |
| Max Clock Speed | 20 MHz |
| Flash Memory | 16 KB (8K x 16) |
| EEPROM | 512 B |
| SRAM | 1 KB |
| Supply Voltage Range | 2.7 V to 5.5 V |
| General Purpose I/O | 23 |
| ADC Resolution | 10-bit |
| ADC Channels (PDIP) | 6 |
| Communication Interfaces | USART, SPI, I2C (TWI) |
| Timers | 2 x 8-bit, 1 x 16-bit |
| 패키지 | 28-PDIP (0.300 inch, 7.62 mm) |
| 실장 유형 | Through Hole |
| Instruction Set | 133 instructions, most single-cycle |
| Working Registers | 32 x 8-bit |
| Debug Interface | debugWIRE |
ATMEGA168-20PU 핀 구성
| 핀 1 | PC6 / RESET — Reset input (active low) or digital I/O PC6 |
| 핀 2 | PD0 / RXD — Digital I/O PD0, USART receive |
| 핀 3 | PD1 / TXD — Digital I/O PD1, USART transmit |
| 핀 4 | PD2 / INT0 — Digital I/O PD2, external interrupt 0 |
| 핀 5 | PD3 / INT1 / OC2B — Digital I/O PD3, external interrupt 1, Timer2 PWM output |
| 핀 6 | PD4 / T0 / XCK — Digital I/O PD4, Timer0 counter input, USART external clock |
| 핀 7 | VCC — Digital supply voltage (2.7 V to 5.5 V) |
| 핀 8 | GND — Ground |
| 핀 9 | PB6 / XTAL1 / TOSC1 — Digital I/O PB6, crystal oscillator input, RTC oscillator input |
| 핀 10 | PB7 / XTAL2 / TOSC2 — Digital I/O PB7, crystal oscillator output |
| 핀 11 | PD5 / T1 / OC0B — Digital I/O PD5, Timer1 counter input, Timer0 PWM output |
| 핀 12 | PD6 / AIN0 / OC0A — Digital I/O PD6, analog comparator positive input, Timer0 PWM output |
| 핀 13 | PD7 / AIN1 — Digital I/O PD7, analog comparator negative input |
| 핀 14 | PB0 / ICP1 / CLK0 — Digital I/O PB0, Timer1 input capture, divided clock output |
| 핀 15 | PB1 / OC1A — Digital I/O PB1, Timer1 PWM output A |
| 핀 16 | PB2 / SS / OC1B — Digital I/O PB2, SPI slave select, Timer1 PWM output B |
| 핀 17 | PB3 / MOSI / OC2A — Digital I/O PB3, SPI master data out, Timer2 PWM output |
| 핀 18 | PB4 / MISO — Digital I/O PB4, SPI master data in |
| 핀 19 | PB5 / SCK — Digital I/O PB5, SPI serial clock |
| 핀 20 | AVCC — ADC supply voltage, connect to VCC via low-pass filter |
| 핀 21 | AREF — ADC analog reference voltage |
| 핀 22 | GND — Ground |
| 핀 23 | PC0 / ADC0 — Digital I/O PC0, ADC channel 0 |
| 핀 24 | PC1 / ADC1 — Digital I/O PC1, ADC channel 1 |
| 핀 25 | PC2 / ADC2 — Digital I/O PC2, ADC channel 2 |
| 핀 26 | PC3 / ADC3 — Digital I/O PC3, ADC channel 3 |
| 핀 27 | PC4 / ADC4 / SDA — Digital I/O PC4, ADC channel 4, TWI data line |
| 핀 28 | PC5 / ADC5 / SCL — Digital I/O PC5, ADC channel 5, TWI clock line |
일반적인 애플리케이션
ATMEGA168-20PU 적합 용도: 6 애플리케이션s: Arduino-Compatible Prototyping Boards, Industrial Sensor Nodes and Data Loggers, Home Automation and Smart Devices, Battery-Powered Portable Instruments, Motor Control and PWM Actuation, Educational and Legacy Through-Hole Systems.
Arduino-Compatible Prototyping Boards
The ATMEGA168-20PU is a natural fit for Arduino-compatible boards and through-hole prototypes because the PDIP-28 package plugs into a standard 0.1-inch socket, allowing the MCU to be swapped without desoldering. The Arduino ecosystem (including the MiniCore hardware package on GitHub) provides bootloaders and board definitions for ATmega168/328 parts. With a 16 MHz crystal at 5V, the device delivers 16 MIPS with single-cycle I/O access, comfortably running digitalRead/Write, PWM, and ADC sampling loops. ISP flashing through the SPI header keeps firmware updates non-destructive to the board.
추천
Industrial Sensor Nodes and Data Loggers
In industrial sensing, the ATMEGA168-20PU combines a 10-bit ADC with six analog channels on the PDIP variant, USART for RS-485/Modbus links via a transceiver, and the TWI (I2C) master for digital sensors. The 2.7V-5.5V supply range tolerates unregulated industrial rails after simple LDO conditioning, and the Power-down sleep mode (sub-uA class) suits battery-backed loggers that wake on timer or interrupt. The 16KB Flash accommodates a Modus-free acquisition firmware plus a small protocol stack, while 512B EEPROM safely stores calibration constants across power cycles.
추천
Home Automation and Smart Devices
For smart-home nodes such as wall switches, dimmers, and RF remotes, the ATMEGA168-20PU offers TWI for OLED displays and RTC chips, SPI for RF transceiver modules, and hardware PWM on multiple timer channels for LED dimming or small motor control. Running at 20 MHz from a 5V rail gives ample timing resolution for zero-cross AC dimming, and the analog comparator supports mains-sync detection without external op-amps. The through-hole package simplifies repair-friendly consumer designs and low-volume assembly by hand or wave soldering.
추천
Battery-Powered Portable Instruments
Portable meters and handheld instruments benefit from the AVR family's low-power design: multiple sleep modes, an on-chip ADC with internal 1.1V/2.56V references, and clock prescaling that lets the 20 MHz core idle at kilohertz rates to save power. The 2.7V floor permits two-cell alkaline or single-cell lithium operation with a boost regulator. Firmware can gate peripherals per the datasheet's Power Reduction Register, and debugWIRE on the RESET pin enables single-wire in-system debugging with only one signal pin consumed during development.
추천
Motor Control and PWM Actuation
The ATMEGA168-20PU drives small DC motors, servos, and stepper drivers using its three timers: two 8-bit timers provide up to four PWM channels for fan/servo control, and the 16-bit Timer1 generates precise servo or phase-correct PWM at 20 MHz resolution. Hardware input-capture supports tachometer/encoder feedback without CPU polling. Fast GPIO with single-cycle access allows bit-banged protocols for ESC or driver interfaces. Combined with a MOSFET gate driver, the MCU's 20 MIPS throughput handles closed-loop speed control loops at multi-kilohertz update rates.
추천
Educational and Legacy Through-Hole Systems
Universities and repair shops value the ATMEGA168-20PU because the DIP-28 body teaches real pin-level wiring - crystals, ISP headers, decoupling - with no hot-air rework required, and it retrofits into decades of legacy DIP-based control boards as a direct replacement for older AT90S/ATmega8-class sockets (with firmware porting). The AVR instruction set, with 133 mostly single-cycle instructions and 32 working registers, remains a standard teaching platform, and open toolchains (avrdude, GCC, MiniCore) run free on any PC.
추천
추천 제품 요약
엔지니어링 참조 데이터: ATMEGA168-20PU — 비교, 설계 지침 및 규정 준수 정보.
선택 가이드
대체품과의 비교
| 파라미터 | 이 제품 | ATMEGA168A-PU | ATMEGA168PA-PU | ATMEGA168P-20PU | ATMEGA328P-PU | ATMEGA88-20PU |
|---|---|---|---|---|---|---|
| Package | 28-PDIP | 28-PDIP - same | 28-PDIP - same | 28-PDIP - same | 28-PDIP - same | 28-PDIP - same |
| Brand | Microchip Technology (Atmel legacy) | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 16 KB | 16 KB | 16 KB | 16 KB | 32 KB | 8 KB |
| SRAM | 1 KB | 1 KB | 1 KB | 1 KB | 2 KB | 1 KB |
| EEPROM | 512 B | 512 B | 512 B | 512 B | 1 KB | 512 B |
| Max Clock Speed | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Power Technology | Standard CMOS | Refreshed low-power | picoPower | picoPower | picoPower | Standard CMOS |
| GPIO Count | 23 | 23 | 23 | 23 | 23 | 23 |
| Drop-in Compatibility | Reference part | Pin-to-pin, same register map | Pin-to-pin, same register map | Pin-to-pin, same register map | Pin-to-pin upgrade, 2x memory | Pin-to-pin downgrade, half Flash |
주요 차별점
- Through-hole PDIP-28 package for socketed, repairable designs (vs ATMEGA168-20AU / ATMEGA328P-PU TQFP peers)
- 20 MHz top speed grade within the ATmega168 PDIP family (vs ATMEGA168V-10PU / ATMEGA168PV-10PU)
- Straightforward memory upgrade path (vs ATMEGA328P-PU)
설계 노트
The 20 MHz '-20' speed grade is guaranteed only in the 4.5V-5.5V supply region; below that, derate the clock per the datasheet maximum-frequency-vs-VCC safe operating region (roughly halving near 2.7V). Provide separate VCC and AVCC filtering: connect AVCC to VCC through an LC or RC low-pass (e.g., 10 uH / 10 uF) so ADC readings are not corrupted by digital supply noise, and never leave AVCC floating even if the ADC is unused.
Place 100 nF ceramic decoupling capacitors directly across VCC-GND (pins 7-8) and AVCC-GND (pin 20 to nearest ground), with leads as short as possible on through-hole layouts. Add a bulk 10 uF capacitor at the power entry point. Route the ISP header (MOSI/MISO/SCK/RESET/VCC/GND) as a 2x3 0.1-inch header near the MCU so AVRISP/MPLAB SNAP programmers reach it without disturbing crystal routing.
PC6 (pin 1) defaults to RESET, not GPIO - reconfiguring it as I/O disables external reset and complicates ISP recovery, so keep it as RESET in most designs. When using an external crystal on PB6/PB7, set the correct CKSEL/SUT fuse bits; wrong fuses can brick the clock configuration, requiring a high-frequency external clock for rescue. Also note RESET doubles as the debugWIRE single-wire debug pin.
For I2C (TWI on PC4/SDA, PC5/SCL), include pull-up resistors sized for bus capacitance - typically 4.7 kOhm at 100 kHz for short buses on a 5V rail. For USART links beyond board level, use a proper transceiver (RS-485/RS-232) rather than driving lines directly. Crystal layout should keep the crystal and two load capacitors within a few millimeters of PB6/PB7 over a solid ground pour.
규정 준수 정보
Compliance status not stated in provided web data; the FindMyChip listing references 'GREEN' packaging for the related ATMEGA168P-20PU, but this product's RoHS/REACH status must be confirmed on the Microchip product page.