PIC16F871-I/PT - 8-Bit 3.5KB Flash MCU 20MHz TQFP-44 | Microchip
MPN: PIC16F871-I/PT β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $4.32 | $4.32 |
| 10 | $3.88 | $38.80 |
| 100 | $3.45 | $345.00 |
| 500 | $3.1 | $1,550.00 |
| 1,000 | $2.82 | $2,820.00 |
PIC16F871-I/PT Overview
A microcontroller (MCU) is a single-chip computer containing a CPU core, non-volatile program memory, working RAM, and a range of peripheral interfaces such as timers, ADCs and communication blocks. PIC16F family MCUs use Microchip's enhanced RISC architecture with 14-bit wide opcodes and 35 single-word instructions, placing them within the broader hierarchy: PIC16F -> mid-range 8-bit MCU -> embedded microcontroller -> semiconductor IC. The PIC16F871 also supports In-Circuit Debugging (ICD) and nanoWatt power management for low-power applications.
Key features of the PIC16F871 include eight 10-bit ADC channels (versus five on the smaller PIC16F870), two additional timers, Capture/Compare/PWM (CCP) peripherals, a Universal Synchronous/Asynchronous Receiver-Transmitter (USART), 64-byte EEPROM and 33 I/O pins. The wide 4.0 V to 5.5 V supply range and 20 MHz clock let the device sustain up to 5 MIPS of throughput, which is sufficient for motor control, sensor conditioning and human-machine interface (HMI) tasks.
Typical applications span industrial control boards, low-cost data acquisition nodes, automotive body electronics (non-safety), appliance user-interface panels, and consumer peripherals. The PIC16F871's combination of internal EEPROM, ADC and USART also suits remote sensor hubs where the CCP/PWM blocks drive actuators or indicators.
Designers should note the parallel-slave-port pinout on the 44-pin TQFP is not present on the 28-pin PIC16F870 variant; PCB layouts are therefore not interchangeable between the two packages. The 'I' suffix denotes the industrial -40C to +85C temperature range, and '/PT' indicates the TQFP-44 package on tape-and-reel.
This page synthesizes distributor pricing, same-brand and cross-brand drop-in alternatives, and practical design notes for the PIC16F871 that are not bundled in the manufacturer datasheet alone.
Drop-in alternatives for PIC16F871-I/PT β 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 PIC16F871-I/PT (same form factor and footprint) β differing in Package, Timers, ADC, Operating Temperature, Core Architecture.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
PIC16F871-I/P
β Drop-Inβ In Stock
$3.3 / Unit
View Datasheet βPIC16F871-E/PT
β Drop-Inπ Reference alternative (not in catalog)
PIC16F871-I/L
β Drop-Inβ In Stock
$2.75 / Unit
View Datasheet βPIC16F871T-I/PT
β Drop-Inπ Reference alternative (not in catalog)
PIC16F870-I/PT
β Drop-Inπ Reference alternative (not in catalog)
PIC16F871-I/PT Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC16 enhanced RISC |
| Instruction Set | 35 single-word instructions, 14-bit opcode |
| Program Memory (FLASH) | 3.5 KB (2K x 14) |
| Data Memory (SRAM) | 128 bytes |
| Data EEPROM | 64 bytes |
| Maximum Clock Frequency | 20 MHz |
| Instruction Cycle | 200 ns |
| Supply Voltage (VDD) | 4.0 V to 5.5 V |
| I/O Pins | 33 |
| ADC | 10-bit, 8 channels |
| Timers | 3 (Timer0, Timer1, Timer2) |
| Capture/Compare/PWM | Yes (CCP module) |
| USART | Yes |
| Parallel Slave Port | Yes (40-/44-pin variants only) |
| In-Circuit Debug | ICD support |
| Self-Programming | Yes |
| Operating Temperature | -40 C to +85 C (Industrial) |
| Package | 44-pin TQFP (10x10 mm) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC16F871-I/PT Pin Configuration
| Pin 1 | MCLR β Master Clear (reset, active low) |
| Pin 2 | RA0/AN0 β Port A bit 0 / ADC channel 0 |
| Pin 3 | RA1/AN1 β Port A bit 1 / ADC channel 1 |
| Pin 4 | RA2/AN2/VREF- β Port A bit 2 / ADC channel 2 / VREF- |
| Pin 5 | RA3/AN3/VREF+ β Port A bit 3 / ADC channel 3 / VREF+ |
| Pin 6 | RA4/T0CKI β Port A bit 4 / Timer0 clock input |
| Pin 7 | RA5/AN4/SS β Port A bit 5 / ADC channel 4 / SSP slave select |
| Pin 8 | RE0/RD/AN5 β Port E bit 0 / Parallel Slave Port read / ADC ch5 |
| Pin 9 | RE1/WR/AN6 β Port E bit 1 / Parallel Slave Port write / ADC ch6 |
| Pin 10 | RE2/CS/AN7 β Port E bit 2 / Parallel Slave Port CS / ADC ch7 |
| Pin 11 | VDD β Positive supply |
| Pin 12 | VSS β Ground |
| Pin 13 | OSC1/CLKIN β Oscillator input / external clock |
| Pin 14 | OSC2/CLKOUT β Oscillator output |
| Pin 15 | RC0/T1OSO/T1CKI β Port C bit 0 / Timer1 oscillator output / clock input |
| Pin 16 | RC1/T1OSI/CCP2 β Port C bit 1 / Timer1 oscillator input / CCP2 |
| Pin 17 | RC2/CCP1 β Port C bit 2 / Capture/Compare/PWM 1 |
| Pin 18 | RC3/SCK/SCL β Port C bit 3 / SSP clock / I2C clock |
| Pin 19 | RD0/PSP0 β Port D bit 0 / Parallel Slave Port bit 0 |
| Pin 20 | RD1/PSP1 β Port D bit 1 / Parallel Slave Port bit 1 |
| Pin 21 | RD2/PSP2 β Port D bit 2 / Parallel Slave Port bit 2 |
| Pin 22 | RD3/PSP3 β Port D bit 3 / Parallel Slave Port bit 3 |
| Pin 23 | RC4/SDI/SDA β Port C bit 4 / SSP data in / I2C data |
| Pin 24 | RC5/SDO β Port C bit 5 / SSP data out |
| Pin 25 | RC6/TX/CK β Port C bit 6 / USART TX / clock |
| Pin 26 | RC7/RX/DT β Port C bit 7 / USART RX / data |
| Pin 27 | RD4/PSP4 β Port D bit 4 / Parallel Slave Port bit 4 |
| Pin 28 | RD5/PSP5 β Port D bit 5 / Parallel Slave Port bit 5 |
| Pin 29 | RD6/PSP6 β Port D bit 6 / Parallel Slave Port bit 6 |
| Pin 30 | RD7/PSP7 β Port D bit 7 / Parallel Slave Port bit 7 |
| Pin 31 | VSS β Ground |
| Pin 32 | VDD β Positive supply |
| Pin 33 | RB0/INT β Port B bit 0 / External interrupt |
| Pin 34 | RB1 β Port B bit 1 |
| Pin 35 | RB2 β Port B bit 2 |
| Pin 36 | RB3/PGM β Port B bit 3 / Low-voltage programming |
| Pin 37 | RB4 β Port B bit 4 |
| Pin 38 | RB5 β Port B bit 5 |
| Pin 39 | RB6/PGC β Port B bit 6 / ICD clock |
| Pin 40 | RB7/PGD β Port B bit 7 / ICD data |
| Pin 41 | NC β Not connected (per datasheet) |
| Pin 42 | NC β Not connected (per datasheet) |
| Pin 43 | NC β Not connected (per datasheet) |
| Pin 44 | NC β Not connected (per datasheet) |
Typical Applications
PIC16F871-I/PT is suitable for 6 applications: Industrial Control Board, Low-Cost Data Acquisition Module, Appliance User Interface Panel, Automotive Body Electronics (Non-Safety), Sensor Hub with USART Backhaul, Educational and Prototyping Platform.
Industrial Control Board
The PIC16F871-I/PT fits industrial control boards where 8 ADC channels read sensor voltages, USART talks to a host PLC, and CCP/PWM drives indicators or small actuators. Its 33 I/O lines provide ample headroom for keypads, LCD bias control, opto-isolated digital inputs and relay outputs. The industrial -40 C to +85 C temperature range and 4.0-5.5 V supply tolerance match 5 V industrial backplanes. The device's parallel slave port also allows fast data exchange with a host processor in modular PLC designs where the PIC handles local I/O aggregation.
Recommended
Low-Cost Data Acquisition Module
The PIC16F871-I/PT's 8-channel 10-bit ADC and 64-byte EEPROM make it a strong fit for low-cost data acquisition nodes that log sensor readings locally and push results over USART. The 3.5 KB FLASH holds the small state machine plus Modbus RTU or ASCII framing; 128-byte SRAM is sufficient for a short circular buffer of recent samples. The 20 MHz clock and 5 MIPS throughput let the MCU run a 9600-115200 bps UART alongside the ADC conversion loop without processor stalls. Self-programming supports in-field firmware upgrades via bootloader.
Recommended
Appliance User Interface Panel
The PIC16F871-I/PT drives appliance UI panels such as washing machines, microwave ovens and HVAC thermostats that need a small MCU with ADC for temperature sensing, PWM for buzzer/LED brightness, and USART for communication with the main controller board. Its 33 I/O lines support multiplexed 7-segment displays, capacitive touch pads, and rotary encoder inputs. nanoWatt power-management modes reduce standby current, which is critical for ENERGY STAR-rated appliances with low standby budget.
Recommended
Automotive Body Electronics (Non-Safety)
The PIC16F871-I/PT targets non-safety automotive body modules such as ambient lighting controllers, seat-position memories, and HVAC flap motors where AEC-Q100 is not mandated. Its industrial temperature range covers most cabin environments, and 33 I/O plus CCP/PWM drive LEDs, H-bridges and small DC motors. The 8-channel ADC reads multiple position sensors and thermistors. Designers needing AEC-Q100 must select the PIC16F871-E/PT (extended temperature) or move to an AEC-Q100-qualified part such as PIC16F1939-I/PT.
Recommended
Sensor Hub with USART Backhaul
The PIC16F871-I/PT is well suited to remote sensor hubs that aggregate temperature, pressure, humidity, and analog signals from multiple transducers and forward them over USART to a gateway. The 8 ADC channels scan each sensor sequentially, while the CCP/PWM module can also be used to drive a status LED or a 1-Wire host line. 64 bytes of EEPROM stores calibration coefficients, and self-programming lets firmware tweaks be pushed to deployed units without disassembly.
Recommended
Educational and Prototyping Platform
The PIC16F871-I/PT remains a popular educational MCU because the PIC16F architecture has 35 instructions and rich peripheral documentation in the Microchip datasheet (DS30569B). The TQFP-44 footprint is breadboard-compatible via breakout boards, and the in-circuit debugger pinout allows classroom use with PICkit 3 or MPLAB SNAP. With USART, ADC, CCP and parallel slave port, students can experiment with digital I/O, analog sampling, PWM control and serial communication on a single chip - making the PIC16F871 a versatile teaching vehicle.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F871-I/PT β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F871-I/P | PIC16F871-E/PT | PIC16F871-I/L | PIC16F871T-I/PT | PIC16F870-I/PT |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | TQFP-44 (10x10 mm) | PDIP-40 (NOT pin-compatible) | TQFP-44 (same) | PLCC-44 (NOT pin-compatible) | TQFP-44 (same) | TQFP-44 (same) |
| Program Memory (FLASH) | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB |
| Data SRAM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes |
| Data EEPROM | 64 bytes | 64 bytes | 64 bytes | 64 bytes | 64 bytes | 64 bytes |
| Maximum Clock Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| ADC Channels | 8 channels, 10-bit | 8 channels | 8 channels | 8 channels | 8 channels | 5 channels |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 22 (28-pin variant) |
| Operating Temperature | -40 C to +85 C (Industrial) | -40 C to +85 C | -40 C to +125 C (Extended) | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C |
| Parallel Slave Port | Yes | Yes | Yes | Yes | Yes | No (28-pin only) |
Key Differentiators
- Eight 10-bit ADC channels - three more than the PIC16F870 (vs PIC16F870-I/PT)
- Parallel Slave Port for host-bus communication (vs PIC16F870-I/PT)
- Extended-temperature grade available in same TQFP-44 package (vs PIC16F871-I/PT vs PIC16F871-E/PT)
Design Notes
The PIC16F871-I/PT operates from 4.0 V to 5.5 V and is not a 3.3 V native part. For 3.3 V-only systems, migrate to a PIC16F1xx or PIC24 device with native 3.3 V support. Decouple VDD with 100 nF ceramic placed within 5 mm of each VDD/VSS pair (the TQFP-44 has two VDD/VSS pairs at pins 11/12 and 31/32). Add a bulk 10 uF tantalum or aluminum cap near the MCU when driving noisy loads such as relays.
OSC1/OSC2 traces should be kept short and routed away from high-di/dt switching signals. If using a crystal, place load capacitors (typically 15-33 pF) within 5 mm of the oscillator pins and ground them to VSS close to the IC. RB6/PGC and RB7/PGD must be reachable from the programming header for ICD; route these pins to test points or a 6-pin header to support in-circuit debugging with PICkit 3 or MPLAB SNAP.
Do not confuse the 28-pin PIC16F870 with the 44-pin PIC16F871: the PIC16F870 lacks the parallel slave port (PSP) and has only 5 ADC channels vs 8. PCB layouts are NOT interchangeable. Also note that the '/PT' suffix denotes TQFP-44, not PLCC-44; verify the land pattern matches your PCB before ordering. Finally, the MCLR pin requires a 10 kohm pull-up to VDD for normal operation - omitting it prevents reset and keeps the device in reset state.
The PIC16F871's parallel slave port (PSP) on RD0-RD7 can move 8-bit data to a host bus. When using PSP, ensure the bus is short (< 100 mm) and add 10 kohm pull-ups on RD lines if the host releases them during bus turn-around. For USART runs longer than 200 mm at 115200 bps, switch to RS-232/RS-485 transceivers (e.g., MCP2551 for CAN, MAX232 for RS-232) to avoid noise-induced framing errors.
Compliance Information
RoHS/REACH compliance confirmed on Microchip product page. The 'I' (industrial) temperature grade is -40C to +85C; for AEC-Q100 needs, select an AEC-qualified part such as PIC16F1939-I/PT. Lead-free and halogen-free per Microchip material declarations.