ATMEGA165P-16ANR - 16KB Flash AVR MCU 16MHz 64-TQFP | Microchip
Артикул: ATMEGA165P-16ANR ✓ Активен| Кол-во | Цена за ед. | Итого |
|---|---|---|
| 1 | $3.45 | $3,45 |
| 10 | $3.1 | $31,00 |
| 100 | $2.72 | $272,00 |
| 500 | $2.45 | $1.225,00 |
| 1.000 | $2.18 | $2.180,00 |
ATMEGA165P-16ANR Обзор
An 8-bit AVR microcontroller is a self-contained computing IC that integrates a RISC CPU core, nonvolatile program memory, RAM, peripherals, and I/O into a single chip, sitting at the top of the microcontroller hierarchy within the broader family of embedded processors and power-management silicon. The AVR architecture uses a Harvard memory structure with 131 single-cycle instructions, letting most instructions execute in one clock cycle.
Key features include the advanced RISC AVR core with 32 general-purpose working registers, JTAG (IEEE 1149.1 compliant) boundary-scan and on-chip debugging, and picoPower technology that reduces active current consumption. The ATMEGA165P is the process-improved, lower-power successor to the original ATmega165, keeping full firmware and pinout compatibility.
Technical depth: the device provides three flexible timer/counters with compare modes, an 8-channel 10-bit ADC, SPI and two USART serial interfaces, a byte-oriented two-wire interface, and an analog comparator. Programming is performed via SPI (ICSP) or JTAG, with true read-while-write self-programming for bootloaders. Operating voltage spans 2.7 V to 5.5 V, supporting both 3.3 V and 5 V systems.
Typical applications include industrial control panels, consumer appliance controllers, instrumentation front ends, and battery-powered devices where the picoPower sleep modes extend battery life.
Design consideration: at 16 MHz and 5 V, ensure a stable decoupled supply and route the ADC reference away from switching noise; the on-chip BOD should be enabled for flash integrity during brownouts.
This page adds value beyond the datasheet by synthesizing distributor pricing, drop-in alternatives, and practical engineering notes in one place.
Аналоги без доработки для ATMEGA165P-16ANR — тот же корпус, pin-to-pin совместимость. Компоненты в других корпусах, требующие переработки PCB, исключены.
Варианты в этой серии
Модели той же серии, совместимые без доработки с ATMEGA165P-16ANR (тот же форм-фактор и посадочное место) — отличается по Package, Timers, Instruction Set, RoHS Status, Flash Memory.
Инструмент быстрого сравнения — выберите альтернативные компоненты для сравнения бок о бок:
ATMEGA165P-16AN
✅ Прямая замена✓ В наличии
$1.65 / шт.
Открыть даташит →ATMEGA165A-AU
✅ Прямая замена✓ В наличии
$3.47 / шт.
Открыть даташит →ATMEGA325P-16AN
✅ Прямая замена ⚠️ Характеристики не проверены📋 Справочный аналог (нет в каталоге)
ATMEGA645P-16AN
✅ Прямая замена ⚠️ Характеристики не проверены📋 Справочный аналог (нет в каталоге)
ATMEGA165PV-8AN
✅ Прямая замена✓ В наличии
$3.25 / шт.
Открыть даташит →ATMEGA165P-16ANR Максимальные параметры и электрические характеристики
| Core Processor | AVR 8-bit RISC |
| Core Size | 8-bit |
| Speed | 16 MHz |
| Flash Memory | 16 KB (8K x 16) ISP |
| EEPROM | 512 B |
| SRAM | 1 KB |
| Instructions | 131 (most single-cycle) |
| General Purpose I/O | 53 |
| Operating Voltage Range | 2.7 V to 5.5 V |
| Рабочая температура | -40C to +105C |
| Корпус | 64-TQFP (14x14 mm) |
| Тип монтажа | Surface Mount |
| Debug / Scan | JTAG (IEEE 1149.1) boundary scan |
| Programming Interfaces | SPI (ICSP), JTAG |
| Timers | 3 x timer/counter with compare |
| Serial Interfaces | SPI, 2 x USART, 2-wire (I2C-compatible) |
| ADC | 8-channel 10-bit |
| Low Power Technology | picoPower |
| Статус RoHS | Compliant |
| Packaging | Tape & Reel (TR) |
Конфигурация выводов ATMEGA165P-16ANR
| Контакт 1 | PEN — Programming enable (active low, programming mode entry) |
| Контакт 2 | PDI/PE0 (RXD0) — Programming data input / Port E bit 0, USART0 receive |
| Контакт 3 | PDO/PE1 (TXD0) — Programming data output / Port E bit 1, USART0 transmit |
| Контакт 4 | PE2 (XCK0/AIN0) — Port E bit 2, USART0 clock / analog comparator negative input |
| Контакт 5 | PE3 (OC3A/AIN1) — Port E bit 3, Timer3 output compare A / comparator positive input |
| Контакт 6 | PE4 (OC3B/INT4) — Port E bit 4, Timer3 output compare B / external interrupt 4 |
| Контакт 7 | PE5 (OC3C/INT5) — Port E bit 5, Timer3 output compare C / external interrupt 5 |
| Контакт 8 | PE6 (T3/INT6) — Port E bit 6, Timer3 clock input / external interrupt 6 |
| Контакт 9 | PE7 (ICP3/INT7/CLKO) — Port E bit 7, Timer3 input capture / external interrupt 7 / clock out |
| Контакт 10 | VCC — Digital supply voltage |
| Контакт 11 | GND — Ground |
| Контакт 12 | PA0 (AD0) — Port A bit 0, external memory address/data line 0 |
| Контакт 13 | PA1 (AD1) — Port A bit 1, external memory address/data line 1 |
| Контакт 14 | PA2 (AD2) — Port A bit 2, external memory address/data line 2 |
| Контакт 15 | PA3 (AD3) — Port A bit 3, external memory address/data line 3 |
| Контакт 16 | PA4 (AD4) — Port A bit 4, external memory address/data line 4 |
| Контакт 17 | PA5 (AD5) — Port A bit 5, external memory address/data line 5 |
| Контакт 18 | PA6 (AD6) — Port A bit 6, external memory address/data line 6 |
| Контакт 19 | PA7 (AD7) — Port A bit 7, external memory address/data line 7 |
| Контакт 20 | PC0 (A8) — Port C bit 0, external memory address line 8 |
| Контакт 21 | PC1 (A9) — Port C bit 1, external memory address line 9 |
| Контакт 22 | PC2 (A10) — Port C bit 2, external memory address line 10 |
| Контакт 23 | PC3 (A11) — Port C bit 3, external memory address line 11 |
| Контакт 24 | PC4 (A12) — Port C bit 4, external memory address line 12 |
| Контакт 25 | PC5 (A13) — Port C bit 5, external memory address line 13 |
| Контакт 26 | PC6 (A14) — Port C bit 6, external memory address line 14 |
| Контакт 27 | PC7 (A15) — Port C bit 7, external memory address line 15 |
| Контакт 28 | VCC — Digital supply voltage |
| Контакт 29 | GND — Ground |
| Контакт 30 | PG0 (WR) — Port G bit 0, external memory write strobe |
| Контакт 31 | PG1 (RD) — Port G bit 1, external memory read strobe |
| Контакт 32 | PB0 (SS/PCINT8) — Port B bit 0, SPI slave select |
| Контакт 33 | PB1 (SCK) — Port B bit 1, SPI serial clock / ICSP programming clock |
| Контакт 34 | PB2 (MOSI) — Port B bit 2, SPI master out / ICSP programming data in |
| Контакт 35 | PB3 (MISO) — Port B bit 3, SPI master in / ICSP programming data out |
| Контакт 36 | PB4 (OC2A/PCINT4) — Port B bit 4, Timer2 output compare A / pin change interrupt 4 |
| Контакт 37 | PB5 (OC1A) — Port B bit 5, Timer1 output compare A / PWM output |
| Контакт 38 | PB6 (OC1B) — Port B bit 6, Timer1 output compare B / PWM output |
| Контакт 39 | PB7 (OC0A/OC1C) — Port B bit 7, Timer0 output compare A / Timer1 output compare C |
| Контакт 40 | VCC — Digital supply voltage |
| Контакт 41 | GND — Ground |
| Контакт 42 | PG2 (ALE) — Port G bit 2, external memory address latch enable |
| Контакт 43 | PG3 (TOSC2) — Port G bit 3, Timer/RTC oscillator output |
| Контакт 44 | PG4 (TOSC1) — Port G bit 4, Timer/RTC oscillator input |
| Контакт 45 | RESET — Reset input (active low), also used for ICSP programming |
| Контакт 46 | VCC — Digital supply voltage |
| Контакт 47 | GND — Ground |
| Контакт 48 | XTAL2 — Main crystal oscillator output |
| Контакт 49 | XTAL1 — Main crystal oscillator input / external clock input |
| Контакт 50 | PD0 (RXD1) — Port D bit 0, USART1 receive |
| Контакт 51 | PD1 (TXD1) — Port D bit 1, USART1 transmit |
| Контакт 52 | PD2 (SDA/INT0) — Port D bit 2, two-wire data / external interrupt 0 |
| Контакт 53 | PD3 (SCL/INT1) — Port D bit 3, two-wire clock / external interrupt 1 |
| Контакт 54 | PD4 (ICP1) — Port D bit 4, Timer1 input capture |
| Контакт 55 | PD5 (XCK1) — Port D bit 5, USART1 external clock |
| Контакт 56 | PD6 (T1) — Port D bit 6, Timer1 external clock input |
| Контакт 57 | PD7 (T0) — Port D bit 7, Timer0 external clock input |
| Контакт 58 | AVCC — Analog supply voltage for ADC (connect to VCC via LC filter) |
| Контакт 59 | GND — Ground |
| Контакт 60 | PF0 (ADC0) — Port F bit 0, ADC channel 0 |
| Контакт 61 | PF1 (ADC1) — Port F bit 1, ADC channel 1 |
| Контакт 62 | PF2 (ADC2) — Port F bit 2, ADC channel 2 |
| Контакт 63 | PF3 (ADC3) — Port F bit 3, ADC channel 3 |
| Контакт 64 | AREF — ADC analog reference voltage |
Типичное применение
ATMEGA165P-16ANR подходит для 6 применениеs: Industrial Control Panels, Battery-Powered Portable Instruments, Home Appliance Controllers, Motor Control and Driver Interfaces, Data Acquisition Front Ends, Security and Access Control Systems.
Industrial Control Panels
The ATMEGA165P-16ANR fits industrial control panels because its -40C to +105C operating range, 53 GPIO lines, and JTAG boundary scan support both harsh environments and production in-circuit test. Its 16 MIPS throughput at 16 MHz executes typical ladder-style control loops with microsecond-level latency, while the 8-channel 10-bit ADC reads analog sensors such as potentiometers and thermistors directly. The two USARTs handle Modbus RTU links and HMI communication simultaneously, and the SPI interface drives relays or isolated I/O expanders. Because the JTAG port provides IEEE 1149.1 boundary scan, panel builders can verify every soldered connection during end-of-line test without a bed-of-nails fixture, reducing test cost and improving first-pass yield.
Рекомендуется
Battery-Powered Portable Instruments
In portable instrumentation, the picoPower technology of the ATMEGA165P-16ANR directly extends battery life by cutting idle and standby current versus the original ATmega165 die. The 2.7 V to 5.5 V supply range allows operation directly from two alkaline cells or a single lithium cell through the lower end of the range with a boost regulator. Its power-saving sleep modes keep only the asynchronous timer running between measurements, waking on external interrupts or watchdog timeout to take an ADC reading. The 512 B EEPROM stores calibration constants that survive battery replacement. With 16 KB Flash there is room for a bootloader plus measurement firmware, and the true read-while-write capability lets logging continue during EEPROM updates without stalling the CPU.
Рекомендуется
Home Appliance Controllers
Appliance control boards benefit from the ATMEGA165P-16ANR combination of robust I/O count, ADC inputs, and low EMI single-cycle RISC execution. The 53 GPIO lines drive seven-segment displays, relays, and triac triggers via the timer compare outputs, while the 8-channel 10-bit ADC reads NTC temperature sensors and user potentiometers. Its 105C rating tolerates the hot environments inside ovens, dishwashers, and boiler housings. The on-chip brown-out detector protects Flash contents during mains brownouts, a common field-failure root cause in appliance electronics. Meanwhile the two-wire interface connects to touch panels or EEPROM configuration chips over a simple two-wire bus, minimizing PCB layers and harness complexity in cost-sensitive white-good designs.
Рекомендуется
Motor Control and Driver Interfaces
The ATMEGA165P-16ANR suits low-end motor control and driver-interface boards through its three timer/counters with compare and PWM output channels, letting it generate complementary drive waveforms for brushed DC or stepper drivers at 16 MHz resolution. The analog comparator and fast interrupt structure handle overcurrent trip events within single clock cycles. Two USARTs bridge to a host controller or RS-485 network while the SPI port configures gate-driver or encoder-interface ICs. Because the die is the P-generation picoPower process, self-heating and supply noise are lower than the original ATmega165, improving ADC accuracy when measuring motor current through shunt resistors. The 105C temperature rating matches typical driver-board enclosures without external cooling.
Рекомендуется
Data Acquisition Front Ends
For compact data acquisition nodes, the ATMEGA165P-16ANR integrates an 8-channel 10-bit ADC with an internal reference option, eliminating a separate converter IC for moderately accurate multi-channel acquisition. The picoPower sleep modes allow duty-cycled sampling that reduces average supply current to microamp levels between conversions, which matters for wireless sensor nodes powered by batteries or energy harvesting. The 1 KB SRAM buffers measurement bursts, and read-while-write Flash operation supports in-system firmware updates over the network without interrupting data logging. The SPI interface streams samples to external Flash or a radio module, while JTAG enables hardware debugging of timing-critical sampling loops during development.
Рекомендуется
Security and Access Control Systems
Access-control keypads, RFID reader boards, and alarm panels use the ATMEGA165P-16ANR for its balance of I/O, serial ports, and nonvolatile storage. Two USARTs allow simultaneous connection to an RFID front-end module and an RS-485 panel bus, while the two-wire interface reads real-time-clock ICs for event timestamping. The 512 B EEPROM stores user credential tables locally so the door controller continues operating during network outages. The JTAG boundary-scan chain simplifies manufacturing test of the dense keypad matrix wiring. Additionally, the 105C rating and brown-out protection ensure reliable credential validation and alarm-state retention in outdoor gate enclosures exposed to wide temperature swings and unstable supply voltage.
Рекомендуется
Сводка рекомендуемых товаров
Справочные инженерные данные для ATMEGA165P-16ANR — сравнение, рекомендации по проектированию и информация о соответствии.
Руководство по выбору
Сравнение с аналогами
| Параметр | Этот товар | ATMEGA165P-16AN | ATMEGA165A-AU | ATMEGA325P-16AN | ATMEGA645P-16AN | ATMEGA165PV-8AN |
|---|---|---|---|---|---|---|
| Package | 64-TQFP (14x14 mm) | 64-TQFP (14x14 mm) - same | 64-TQFP (14x14 mm) - same | 64-TQFP (14x14 mm) - same | 64-TQFP (14x14 mm) - same | 64-TQFP (14x14 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 16 KB | 16 KB | 16 KB | 32 KB | 64 KB | 16 KB |
| SRAM | 1 KB | 1 KB | 1 KB | 2 KB | 4 KB | 1 KB |
| Max Clock Speed | 16 MHz | 16 MHz | 16 MHz | 16 MHz | 16 MHz | 8 MHz |
| Process / Power | picoPower (P generation) | picoPower (P generation) | Standard ATmega165A | picoPower (P generation) | picoPower (P generation) | picoPower, low-voltage V-variant |
| Operating Voltage | 2.7 V to 5.5 V | 2.7 V to 5.5 V | 2.7 V to 5.5 V | 2.7 V to 5.5 V | 2.7 V to 5.5 V | 1.8 V to 5.5 V |
| Pin-to-Pin Compatibility | Reference | 100% - identical die | 100% pinout | 100% pinout, family migration | 100% pinout, family migration | 100% pinout, speed derated |
Ключевые отличия
- picoPower P-generation die (против ATMEGA165A-AU)
- In-family Flash upgrade path on the same footprint (против ATMEGA325P-16AN)
- Full 16 MHz operation vs low-voltage variant (против ATMEGA165PV-8AN)
Заметки по проектированию
Provide separate filtered supplies for AVCC (pin 58) and VCC: connect AVCC to VCC through an LC filter (10 uH inductor with 100 nF and 10 uF caps) to keep ADC noise low. Place a 100 nF ceramic capacitor within 5 mm of every VCC pin (10, 28, 40, 46) and pair with bulk 10 uF at the board entry. Enable the on-chip brown-out detector at the appropriate threshold for your clock frequency so Flash writes never occur during supply sags. Estimated: at 16 MHz and 5 V, active current is typically in the 10-15 mA range per AVR family characteristics - verify against the manufacturer datasheet electrical characteristics table.
Use the 14x14 mm, 0.8 mm pitch TQFP-64 land pattern from the Microchip packaging drawing. Keep XTAL1/XTAL2 crystal traces under 15 mm with guard ground, and route the AREF trace away from switching signals with its own 100 nF capacitor to ground. Reserve a 6-pin (or 2x3) ICSP header for SPI programming and, if boundary-scan test or JTAG debugging is planned, bring the four JTAG pins on port C to test points. Distribute ground vias around the four GND pins to minimize ground bounce on the high-drive port B outputs.
When migrating firmware from the original ATmega165 or from ATMEGA325P variants, verify the interrupt vector table order and fuse settings differ slightly across family members - always recheck the fuse bits (especially CLKDIV8 and BOD level) after programming with a new tool. Note the PEN pin (pin 1) is active low for programming mode entry and must not be pulled low accidentally in normal operation. Also remember the ATMEGA165PV-8AN is limited to 8 MHz: selecting it as a drop-in for a 16 MHz design halves throughput and can break timing-sensitive UART baud rates.
Информация о соответствии
RoHS compliance and lead-free finish inferred from the AN package suffix per Microchip part-numbering. Obtain REACH and conflict-minerals declarations from the Microchip compliance portal.