PIC16F874-20/PQ - 8-Bit 20MHz 7KB Flash MCU, 44-MQFP | Microchip
MPN: PIC16F874-20/PQ ✗ پایان تولیدPIC16F874-20/PQ نمای کلی
A microcontroller (MCU) is a single-chip computer containing a CPU, non-volatile program memory, working RAM, and integrated peripherals such as timers, ADC, and communication interfaces. The PIC16F family sits within Microchip's 8-bit mid-range architecture portfolio, which targets cost-sensitive embedded control. Within that hierarchy, the PIC16F874 occupies the upper-memory position, distinguished from siblings by its richer peripheral set: a 10-bit ADC with up to 8 channels, two capture/compare/PWM modules, a USART, an MSSP (SPI/I2C) port, and a Parallel Slave Port. These capabilities place it above the PIC16F873 (28/40-pin, 7 KB flash) as the 40/44-pin version, and below the PIC16F876 family (28/40-pin, 14 KB flash) which doubles program memory.
Key features include 33 digital I/O pins, an instruction set of only 35 single-word instructions, an internal oscillator option on related family members, and a programmable code-protection scheme. The Harvard bus architecture separates program and data paths to allow simultaneous fetch and access, simplifying deterministic real-time control loops. The device supports in-circuit serial programming (ICSP) via two pins, eliminating the need for an external programmer socket in production.
Typical applications include industrial control panels, motor drive front-ends, instrumentation front-ends, low-cost data loggers, and consumer appliance controllers. The 10-bit ADC and PWM channels enable direct interface with analog sensors and brushed DC or stepper actuator stages without external glue logic. The PQ package suits industrial control boards where moderate thermal dissipation is acceptable and where through-hole pin access (DIP/PLCC alternatives) is not required.
Design consideration: the PIC16F874 has been marked by Microchip as legacy; new designs are directed to the PIC16F884 (more memory, same PQ footprint option). Engineers designing new products should evaluate the PIC16F884 migration path before committing board layout, while existing designs can continue to source the PIC16F874-20/PQ through distribution channels.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone. It cross-references parametric data with the 44-pin MQFP footprint so engineers can quickly identify pin-compatible replacements and migration candidates within the Microchip mid-range family.
جایگزینهای drop-in برای PIC16F874-20/PQ — همان پکیج، سازگار پینبهپین. قطعات با پکیج متفاوت که نیاز به تغییر PCB دارند مستثنی هستند.
گونهها در این سری
مدلهای همسری که جایگزین مستقیم هستند برای PIC16F874-20/PQ (همان فرمفاکتور و فوتپرینت) — متفاوت در Core Architecture, ADC, Instruction Cycle Time, Package, Timers.
PIC16F874-04/PQ
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC16F874-20I/PQ
✅ جایگزین مستقیم📋 جایگزین مرجع (خارج از کاتالوگ)
PIC16F874-04I/PQ
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC16F874-04E/PQ
✅ جایگزین مستقیمبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC16F874-04/PQ
✅ جایگزین مستقیم ⚠️ مشخصات تأییدنشدهبرای قیمت تماس بگیرید
مشاهده دیتاشیت ←PIC16F884-20/PQ
✅ جایگزین مستقیم📋 جایگزین مرجع (خارج از کاتالوگ)
PIC16F874-20/PQ حداکثر مقادیر مجاز و مشخصات الکتریکی
| Product Type | 8-bit Microcontroller (MCU) |
| Core Architecture | PIC16F (Mid-Range) Harvard |
| Program Memory | 7 KB (4K x 14) FLASH |
| Data SRAM | 192 bytes |
| Data EEPROM | 128 bytes |
| حداکثر فرکانس کلاک | 20 MHz |
| Instruction Cycle Time | 200 ns |
| Instruction Set Size | 35 single-word instructions |
| I/O Pins | 33 |
| ADC | 10-bit, up to 8 channels |
| CCP Modules | 2 (Capture/Compare/PWM) |
| Serial Interfaces | USART + MSSP (SPI/I2C) |
| Parallel Slave Port | Yes |
| بستهبندی | 44-pin MQFP (PQ) 10x10 mm |
| دمای کاری | 0C to +70C (Commercial) |
| نوع نصب | Surface Mount (Gull-wing) |
پیکربندی پین PIC16F874-20/PQ
| پین 1 | MCLR/Vpp — Master Clear (Reset) input / Programming voltage |
| پین 2 | OSC1/CLKIN — Crystal oscillator input / External clock input |
| پین 3 | OSC2/CLKOUT — Crystal oscillator output / Clock output |
| پین 4 | RA0/AN0 — PORTA bit 0 / Analog input 0 |
| پین 5 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| پین 6 | RA2/AN2 — PORTA bit 2 / Analog input 2 |
| پین 7 | RA3/AN3/VREF — PORTA bit 3 / Analog input 3 / ADC reference |
| پین 8 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| پین 9 | RA5/AN4/SS — PORTA bit 5 / Analog input 4 / SPI Slave Select |
| پین 10 | Vss — Ground reference |
| پین 11 | Vdd — Positive supply voltage |
| پین 12 | RB0/INT — PORTB bit 0 / External interrupt |
| پین 13 | RB1 — PORTB bit 1 |
| پین 14 | RB2 — PORTB bit 2 |
| پین 15 | RB3/PGM — PORTB bit 3 / Low-voltage programming |
| پین 16 | RB4 — PORTB bit 4 |
| پین 17 | RB5 — PORTB bit 5 |
| پین 18 | RB6/PGC — PORTB bit 6 / ICSP clock |
| پین 19 | RB7/PGD — PORTB bit 7 / ICSP data |
| پین 20 | Vss — Ground reference |
| پین 21 | Vdd — Positive supply voltage |
| پین 22 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / clock input |
| پین 23 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| پین 24 | RC2/CCP1 — PORTC bit 2 / CCP1 output |
| پین 25 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| پین 26 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| پین 27 | RC5/SDO — PORTC bit 5 / SPI data out |
| پین 28 | RC6/TX/CK — PORTC bit 6 / USART TX / clock |
| پین 29 | RC7/RX/DT — PORTC bit 7 / USART RX / data |
| پین 30 | Vss — Ground reference |
| پین 31 | Vdd — Positive supply voltage |
| پین 32 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| پین 33 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| پین 34 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| پین 35 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| پین 36 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| پین 37 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| پین 38 | RD6/PSP6 — PORTD bit 6 / Parallel Slave Port bit 6 |
| پین 39 | RD7/PSP7 — PORTD bit 7 / Parallel Slave Port bit 7 |
| پین 40 | Vss — Ground reference |
| پین 41 | Vdd — Positive supply voltage |
| پین 42 | RE0/RD/AN5 — PORTE bit 0 / Read control for PSP / Analog input 5 |
| پین 43 | RE1/WR/AN6 — PORTE bit 1 / Write control for PSP / Analog input 6 |
| پین 44 | RE2/CS/AN7 — PORTE bit 2 / Chip select for PSP / Analog input 7 |
کاربردهای معمول
PIC16F874-20/PQ مناسب است برای 6 کاربردs: Industrial Control Panels, Motor Control Front-End, Low-Cost Data Loggers, Consumer Appliance Controllers, Instrumentation Front-Ends, Sensor Conditioning Hubs.
Industrial Control Panels
The PIC16F874-20/PQ suits industrial control panel designs because its 33 I/O pins drive discrete LEDs, relay coils, and 7-segment displays while the 10-bit ADC reads 4-20 mA loopback or potentiometric setpoints. Its 20 MHz clock and 200 ns instruction cycle execute scan loops within sub-millisecond windows, sufficient for panel debounce and state-machine logic. The USART and MSSP link to operator-interface modules or remote I/O expanders over RS-485 or I2C. With 7 KB FLASH, the firmware accommodates small protocol stacks and lookup tables.
پیشنهادی
Motor Control Front-End
The PIC16F874-20/PQ serves as a motor control front-end, generating PWM signals through its two CCP modules to drive brushed DC or stepper driver stages such as the L293D or DRV8871. The 10-bit ADC samples shunt current or back-EMF for closed-loop torque and speed control. The 20 MHz clock delivers high PWM resolution at typical 20 kHz switching frequencies, and the 7 KB FLASH holds state-space controllers plus fault-handling routines. The 44-pin MQFP exposes dedicated PWM and ADC channels to simplify PCB routing.
پیشنهادی
Low-Cost Data Loggers
The PIC16F874-20/PQ functions as a data logger controller, sequencing the 10-bit ADC across 8 channels to capture temperature, pressure, or process variables at programmable intervals. Its internal 128-byte EEPROM stores calibration constants, while external SPI/I2C EEPROM or SD cards (via MSSP) hold logged records. The 192-byte SRAM buffers samples between writes, and the ICSP interface allows in-field firmware updates without dismantling the enclosure. Commercial 0C to +70C rating is adequate for indoor or sheltered industrial enclosures.
پیشنهادی
Consumer Appliance Controllers
The PIC16F874-20/PQ is well-suited for consumer appliance controllers, including washing machines, dishwashers, and small kitchen appliances. The 33 I/O pins drive relays, triac interfaces, valve solenoids, and user keypads. The 10-bit ADC reads water level sensors, thermistors, and motor current feedback. The USART interfaces with inverter boards or display modules, and the 7 KB FLASH accommodates wash-cycle state machines plus diagnostic fault logging. The MQFP package fits appliance main control boards with mixed SMT and through-hole components.
پیشنهادی
Instrumentation Front-Ends
The PIC16F874-20/PQ acts as an instrumentation front-end, scaling and digitizing analog signals from sensor bridges or transducers. The 10-bit ADC provides adequate resolution for non-precise measurements, while the MSSP interfaces with external 16-bit or 24-bit sigma-delta ADCs for higher-precision applications. The USART streams digitized data to a host controller or PC, and the 20 MHz clock supports real-time digital filtering. With 33 I/O and two CCP modules, the MCU can also generate excitation pulses for resistive sensors.
پیشنهادی
Sensor Conditioning Hubs
The PIC16F874-20/PQ serves as a sensor conditioning hub, aggregating multiple analog and digital sensors via its ADC channels and serial interfaces. The MSSP port talks to I2C temperature sensors, SPI accelerometers, or SPI displays, while the USART bridges to host processors or wireless modules. The 7 KB FLASH holds sensor linearization tables and digital filters. With 33 I/O pins and the Parallel Slave Port, the hub can also forward data to a host MCU without consuming serial bandwidth, useful for high-throughput data acquisition.
پیشنهادی
خلاصه محصولات پیشنهادی
دادههای مرجع مهندسی برای PIC16F874-20/PQ — مقایسه، راهنمای طراحی و اطلاعات انطباق.
راهنمای انتخاب
مقایسه با جایگزینها
| پارامتر | این محصول | PIC16F874-04/PQ | PIC16F874-20I/PQ | PIC16F874-04I/PQ | PIC16F874-04E/PQ | PIC16F884-20/PQ |
|---|---|---|---|---|---|---|
| Package | 44-MQFP (PQ) | 44-MQFP (PQ) - same | 44-MQFP (PQ) - same | 44-MQFP (PQ) - same | 44-MQFP (PQ) - same | 44-MQFP (PQ) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Max Clock Frequency | 20 MHz | 4 MHz | 20 MHz | 4 MHz | 4 MHz | 20 MHz |
| Instruction Cycle | 200 ns | 1 us | 200 ns | 1 us | 1 us | 200 ns |
| FLASH Program Memory | 7 KB (4K x 14) | 7 KB (4K x 14) | 7 KB (4K x 14) | 7 KB (4K x 14) | 7 KB (4K x 14) | 14 KB (8K x 14) |
| SRAM | 192 bytes | 192 bytes | 192 bytes | 192 bytes | 192 bytes | 368 bytes |
| EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 256 bytes |
| Operating Temperature | 0C to +70C (Commercial) | 0C to +70C (Commercial) | -40C to +85C (Industrial) | -40C to +85C (Industrial) | -40C to +125C (Extended) | -40C to +85C (Industrial) |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 36 |
| Lifecycle Status | NRND | NRND | NRND | NRND | NRND | Active |
تفاوتهای کلیدی
- Higher 20 MHz clock speed versus 4 MHz siblings (در مقابلPIC16F874-04/PQ)
- Commercial vs industrial temperature grade (در مقابلPIC16F874-20I/PQ)
- Legacy NRND part vs active migration successor (در مقابلPIC16F884-20/PQ)
یادداشتهای طراحی
Estimated: the 44-pin MQFP package of the PIC16F874-20/PQ has a typical theta_JA of approximately 50 C/W in still air. With a maximum supply current of approximately 15 mA at 20 MHz and 5V, the maximum dissipation is roughly 75 mW, yielding a junction temperature rise of under 4C above ambient. Thermal management is not a primary design concern for this MCU in typical industrial control environments. However, in enclosed enclosures with limited airflow or in extended-temperature (E) variants, verify the design with thermal measurements.
Place 100 nF decoupling capacitors as close as possible to each Vdd pin (there are four on the 44-pin MQFP: pins 11, 21, 31, 41) and pair them with a single 10 uF bulk capacitor near the package. Connect all Vss pins (pins 10, 20, 30, 40) to a low-impedance ground plane. Place the crystal or resonator within 10 mm of the OSC1/OSC2 pins and guard the traces with a ground pour to reduce EMI coupling into adjacent analog inputs.
The PIC16F874-20/PQ is NRND per Microchip's lifecycle classification as of 2026-09-21, so new designs should migrate to the PIC16F884-20/PQ (same 44-MQFP footprint, doubled FLASH/EEPROM, active lifecycle). Do not use the MCLR pin as a general-purpose input without proper configuration - it defaults to reset and requires the CONFIG register to be set for digital I/O. When using the ICSP interface, ensure RB6/PGC and RB7/PGD are not heavily loaded during programming; external pull-up resistors on these pins are recommended.
اطلاعات انطباق
RoHS/REACH/lead-free status not directly stated in the provided web data; marked as unknown per Data Authenticity Rule. The part is NRND (Not Recommended for New Designs) per Microchip's product page as of 2026-09-21. PIC16F874 family does not carry AEC-Q100 automotive qualification.