PIC16F882T-I/ML - 8-bit MCU, 20MHz, 3.5KB Flash, 28-QFN | Microchip
MPN: PIC16F882T-I/ML β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.94 | $1.94 |
| 10 | $1.75 | $17.50 |
| 100 | $1.55 | $155.00 |
| 500 | $1.36 | $680.00 |
| 1,000 | $1.21 | $1,210.00 |
| 3,000 | $1.05 | $3,150.00 |
PIC16F882T-I/ML Overview
A microcontroller (MCU) is a single-chip computer containing a CPU, non-volatile program memory (Flash), volatile data memory (RAM), EEPROM, and a rich set of peripheral blocks such as timers, ADC, comparators, USART and PWM modules. Within the broader hierarchy, the PIC16F882 sits at: microcontroller -> 8-bit MCU -> embedded processor -> semiconductor IC. It targets low-power, deterministic, interrupt-driven embedded control applications where RISC architecture and easy programming are valued.
Key features of the PIC16F882 include 35 single-word instructions, self-programming support, in-circuit debug (ICD), 2 on-chip comparators, a 10-bit ADC with up to 11 channels, a precision internal oscillator factory calibrated to +/-1% with software-selectable frequency from 8 MHz down to 31 kHz, and nanoWatt XLP low-power technology. These features let a designer replace external oscillators and reduce BOM cost while still supporting analog signal conditioning.
The architecture is a Harvard RISC design with a 200 ns instruction cycle at 20 MHz, providing deterministic real-time response. Its enhanced mid-range core adds hardware context saving for interrupts and a 14-bit instruction word, balancing code density with execution speed. Combined with the internal oscillator and nanoWatt XLP sleep modes, the PIC16F882 delivers long battery life and robust operation in electrically noisy industrial environments.
Typical applications include consumer appliance control, sensor interface nodes, lighting controllers, small motor drives, USB-to-UART bridges, industrial automation I/O modules, and educational development boards. The wide 2.0V-5.5V supply range and integrated peripherals make it a drop-in workhorse for low-cost, low-power embedded designs.
When designing with this device, allocate sufficient PCB copper area beneath the exposed pad of the QFN package to keep junction temperature within ratings at maximum clock. Use MPLAB X IDE with the XC8 compiler for code development, and configure the configuration bits to select the internal oscillator and disable unused peripherals to minimize quiescent current.
This page synthesizes distributor pricing, drop-in pin-compatible alternatives, application examples, and practical PCB layout notes not found in the manufacturer datasheet, providing an engineer-ready reference for PIC16F882T-I/ML selection and design-in.
Drop-in alternatives for PIC16F882T-I/ML β same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with PIC16F882T-I/ML (same form factor and footprint) β differing in Package, ADC, Core Architecture, I/O Pins, Timers.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
PIC16F882-I/ML
β Drop-Inπ Reference alternative (not in catalog)
PIC16F883-I/ML
β Drop-Inβ In Stock
$3.04 / Unit
View Datasheet βPIC16F886-I/ML
β Drop-Inβ In Stock
$2.18 / Unit
View Datasheet βPIC16F884-I/ML
β Drop-Inπ Reference alternative (not in catalog)
PIC16F887-I/ML
β Drop-Inβ In Stock
$3.16 / Unit
View Datasheet βPIC16F882-E/ML
β Drop-Inπ Reference alternative (not in catalog)
PIC16F882T-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC16 enhanced mid-range 8-bit RISC |
| Program Memory (Flash) | 3.5 KB (2K x 14 words) |
| RAM | 128 bytes |
| EEPROM | 128 bytes |
| Maximum CPU Clock | 20 MHz |
| Instruction Cycle | 200 ns |
| Supply Voltage | 2.0 V to 5.5 V |
| I/O Pins | 22 (typical for 28-pin PIC16F882) |
| ADC | 10-bit, up to 11 channels |
| Comparators | 2 on-chip |
| Timers | Timer0, Timer1, Timer2 |
| PWM Channels | Enhanced CCP, 10-bit PWM |
| Internal Oscillator | 8 MHz to 31 kHz, +/-1% calibrated |
| Communication Peripherals | EUSART, MSSP (SPI/I2C) |
| Operating Temperature | -40C to +85C (Industrial) |
| Package | 28-QFN (6x6 mm) with exposed thermal pad |
| Mounting Type | Surface Mount |
| MSL Level | 1 (unlimited floor life at <30C/85% RH) |
| RoHS Status | Compliant |
| Lead-Free | Yes |
PIC16F882T-I/ML Pin Configuration
| Pin 1 | RA7/OSO β Bidirectional I/O port A bit 7 / oscillator output |
| Pin 2 | RA6/OSC2 β Bidirectional I/O port A bit 6 / crystal oscillator output |
| Pin 3 | RA5/MCLR/VPP β Bidirectional I/O port A bit 5 / Master Clear reset input / programming voltage |
| Pin 4 | RA4/AN4/T1G β Bidirectional I/O port A bit 4 / analog input 4 / Timer1 gate |
| Pin 5 | RA3/AN3/VREF+ β Bidirectional I/O port A bit 3 / analog input 3 / positive voltage reference |
| Pin 6 | RA2/AN2/VREF- β Bidirectional I/O port A bit 2 / analog input 2 / negative voltage reference |
| Pin 7 | RA1/AN1/C1IN1- β Bidirectional I/O port A bit 1 / analog input 1 / comparator 1 inverting input |
| Pin 8 | RA0/AN0/C1IN+ β Bidirectional I/O port A bit 0 / analog input 0 / comparator 1 non-inverting input |
| Pin 9 | VSS β Ground reference |
| Pin 10 | RA0/AN0 β Note: simplified package representation - see datasheet for exact pin allocation |
| Pin 11 | RB7/ICSPDAT β Bidirectional I/O port B bit 7 / ICSP data |
| Pin 12 | RB6/ICSPCLK β Bidirectional I/O port B bit 6 / ICSP clock |
| Pin 13 | RB5/AN13 β Bidirectional I/O port B bit 5 / analog input 13 |
| Pin 14 | RB4/AN11 β Bidirectional I/O port B bit 4 / analog input 11 |
| Pin 15 | RB3/CCP2 β Bidirectional I/O port B bit 3 / Capture/Compare/PWM 2 |
| Pin 16 | RB2/INT2 β Bidirectional I/O port B bit 2 / external interrupt 2 |
| Pin 17 | RB1/INT1 β Bidirectional I/O port B bit 1 / external interrupt 1 |
| Pin 18 | RB0/INT0 β Bidirectional I/O port B bit 0 / external interrupt 0 |
| Pin 19 | VSS β Ground reference |
| Pin 20 | VDD β Positive supply voltage |
| Pin 21 | RB0/AN12 β Bidirectional I/O port B / analog input 12 |
| Pin 22 | RC7/RX β Bidirectional I/O port C bit 7 / EUSART RX |
| Pin 23 | RC6/TX β Bidirectional I/O port C bit 6 / EUSART TX |
| Pin 24 | RC5/SDO β Bidirectional I/O port C bit 5 / SPI data out |
| Pin 25 | RC4/SDA β Bidirectional I/O port C bit 4 / I2C data |
| Pin 26 | RC3/SCL β Bidirectional I/O port C bit 3 / I2C clock |
| Pin 27 | RC2/CCP1 β Bidirectional I/O port C bit 2 / Capture/Compare/PWM 1 |
| Pin 28 | RC1/AN10 β Bidirectional I/O port C bit 1 / analog input 10 |
| Pin EP | EP β Exposed thermal pad - must be soldered to PCB ground pad for thermal dissipation |
Typical Applications
PIC16F882T-I/ML is suitable for 6 applications: Consumer Appliance Control, Battery-Powered IoT Sensor Node, Lighting and LED Dimmer Control, Industrial Sensor Interface Module, Small BLDC or DC Motor Drive, USB-to-UART Bridge Dongle.
Consumer Appliance Control
The PIC16F882T-I/ML fits consumer appliance control boards because its 20 MHz enhanced mid-range core and 35 single-word instructions give deterministic response for relay, valve and triac timing. Its 22 I/O lines drive LEDs, keypads and seven-segment displays without external glue logic, while the internal +/-1% calibrated 8 MHz oscillator eliminates a discrete crystal and reduces BOM cost by ~$0.10 per board. The 2.0-5.5V supply range supports both 3.3V and 5V appliance rails. Power dissipation is minimal because the MCU spends most of its time in sleep with nanoWatt XLP, drawing sub-microamp standby current; wake-up via interrupt on a button press executes a short debounce routine in microseconds.
Recommended
Battery-Powered IoT Sensor Node
The PIC16F882T-I/ML is well matched to battery-powered IoT sensor nodes thanks to nanoWatt XLP technology and a software-selectable internal oscillator down to 31 kHz. The 10-bit ADC with up to 11 channels reads temperature, humidity, light or gas sensors directly, while the EUSART and MSSP peripherals connect to radios and EEPROMs. Sleep current below 1 microamp (per datasheet) lets a CR2032 coin cell power the node for years when the MCU wakes briefly every few minutes. The wide 2.0V-5.5V supply also accepts a single lithium cell to two AA cells without level shifters. The 28-QFN package keeps the design under 30 mm x 30 mm - critical for wearable form factors.
Recommended
Lighting and LED Dimmer Control
The PIC16F882T-I/ML drives lighting controllers and LED dimmers using its Enhanced CCP module producing a 10-bit PWM output for smooth dimming across the full visible range. Two on-chip comparators support zero-cross detection for phase-controlled TRIAC dimming of legacy incandescent or leading-edge dimmable LED loads. The 20 MHz core computes logarithmic dimming curves and gamma correction in real time without external DSP. With 3.5 KB of Flash, designers implement multiple lighting presets, fade transitions and color-mixing routines for RGB fixtures. Industrial -40C to +85C temperature grade handles enclosed-luminaire thermal environments without derating.
Recommended
Industrial Sensor Interface Module
The PIC16F882T-I/ML serves as the main controller in industrial sensor interface modules such as 4-20 mA loop transmitters or RTD-to-digital converters. Its 10-bit ADC with 11 channels reads multiple bridge, RTD or thermocouple signals, while the EUSART provides RS-485 connectivity for Modbus RTU networks. The +/-1% factory-calibrated internal oscillator is accurate enough for baud-rate generation up to 9600 without external crystals, reducing field failures from mechanical shock. nanoWatt XLP sleep modes support loop-powered 4-20 mA designs that draw as little as 3.5 mA total. The 28-QFN exposed pad simplifies thermal management in sealed IP65 enclosures.
Recommended
Small BLDC or DC Motor Drive
The PIC16F882T-I/ML controls small brushless DC or brushed DC motors up to a few hundred watts using the Enhanced CCP and standard CCP modules for PWM generation at up to 20 kHz, above the audible band. Two on-chip comparators implement hardware over-current protection by sensing shunt voltage directly, shutting down PWM within microseconds without CPU intervention. The 22 I/O lines handle Hall-sensor inputs, direction logic, fault outputs and tachometer feedback. The 28-QFN exposed pad couples directly to a small copper heatsink area on the PCB for thermal relief at higher duty cycles. 3.5 KB Flash holds trapezoidal commutation tables and soft-start ramps.
Recommended
USB-to-UART Bridge Dongle
The PIC16F882T-I/ML implements a low-cost USB-to-UART or USB-to-SPI bridge in field-service tools and development dongles using the MSSP (SPI/I2C) and EUSART peripherals. The 20 MHz core executes USB enumeration via bit-banging on a software stack, while the EUSART provides a true hardware UART at up to 115200 baud. 128 bytes of RAM support HID-class or CDC-class USB descriptor handling without external memory. The internal 8 MHz oscillator eliminates a crystal that would otherwise be damaged by portable-tool drop events. Operating from 2.0-5.5V, the bridge adapts to either 3.3V or 5V targets without level shifters.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F882T-I/ML β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F882-I/ML | PIC16F883-I/ML | PIC16F886-I/ML | PIC16F884-I/ML | PIC16F887-I/ML |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-QFN (6x6 mm) | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same |
| Flash Program Memory | 3.5 KB (2K x 14) | 3.5 KB (2K x 14) | 7.2 KB (4K x 14) | 14 KB (8K x 14) | 7.2 KB (4K x 14) | 14 KB (8K x 14) |
| RAM | 128 bytes | 128 bytes | 256 bytes | 368 bytes | 256 bytes | 368 bytes |
| EEPROM | 128 bytes | 128 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| ADC Channels | 11 (10-bit) | 11 (10-bit) | 12 (10-bit) | 11 (10-bit) | 14 (10-bit) | 14 (10-bit) |
| Maximum CPU Clock | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| Supply Voltage | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V |
| Operating Temperature | -40C to +85C (Industrial) | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
Key Differentiators
- Lowest-cost option in the PIC16F882/883/884/886/887 family (vs PIC16F883-I/ML)
- External EUSART and MSSP peripherals included (vs PIC16F882-E/SP (PDIP variant))
- Industrial temperature grade versus consumer (vs PIC16F882-I/P (PDIP-28 industrial))
Design Notes
The 28-QFN (6x6 mm) package has an exposed thermal pad on the underside that must be soldered to a PCB ground pad with at least 8 thermal vias to a copper pour on the opposite side. According to Microchip QFN PCB layout guidelines, missing or insufficient vias raise the junction-to-ambient thermal resistance theta_JA above 60 C/W, causing thermal shutdown at high CPU duty cycles. Use a 0.25 mm via array with 0.5 mm pitch to maximize heat transfer.
Place a 100 nF decoupling capacitor as close as possible to each VDD pin pair, plus a single 10 uF bulk capacitor within 10 mm of the package. For battery-powered designs using the internal 31 kHz LF oscillator, add a 1 uF bulk capacitor to handle EUSART burst transmit peaks without VDD sag. The PIC16F882's nanoWatt XLP sleep draws under 1 uA when properly configured - keep unused peripherals disabled in firmware to achieve this floor current.
Do not leave the MCLR pin floating; tie it to VDD through a 10 kohm pull-up and a 100 nF capacitor to ground for proper in-circuit serial programming (ICSP) operation. Also configure the configuration bits (CONFIG1-2) to select the internal oscillator source and disable the watchdog timer if not used - otherwise firmware hangs on unexpected resets. When migrating from PIC16F882 to PIC16F883, verify that the higher Flash size is reflected in the linker script or the firmware will silently fail to start.
Compliance Information
RoHS compliant per Microchip product page. Not AEC-Q100 qualified; not intended for automotive safety-critical applications. Lead-free reflow profile per JEDEC J-STD-020.