PIC16F874-04/L - 8-Bit 4MHz 7KB Flash MCU 44-PLCC | Microchip
부품 번호: PIC16F874-04/L ✓ 활성| 수량 | 단가 | 합계 |
|---|---|---|
| 1 | $11.44 | $11.44 |
| 10 | $10.3 | $103.00 |
| 100 | $9.15 | $915.00 |
| 500 | $8 | $4,000.00 |
| 1,000 | $6.85 | $6,850.00 |
PIC16F874-04/L 개요
A PIC microcontroller is a programmable system-on-chip that combines a RISC CPU core, non-volatile program memory, RAM, EEPROM, and on-chip peripherals (timers, ADC, USART, I2C/SPI, PWM) into a single IC. Within the broader taxonomy, the PIC16F874 belongs to the mid-range PIC16 family, which sits between the baseline PIC10/12/16 family and the high-performance PIC18 and dsPIC families. Mid-range PICs are widely used in industrial control, automotive body electronics, and consumer appliances because of their deterministic architecture, low power consumption, and free MPLAB X IDE toolchain.
Key features of the PIC16F874-04/L include five 8-bit/16-bit timer/counter modules, a 10-bit ADC with up to 8 channels, a USART with support for RS-485/RS-232, an MSSP module supporting SPI and I2C (master/slave), a parallel slave port for external bus interfacing, and a 14-bit instruction word optimized for C and assembly development. The 04 speed grade limits the oscillator to 4 MHz, yielding 1 us instruction cycles, which is well-suited to applications that do not require high-speed sampling.
Architecturally, the PIC16F874 uses a Harvard RISC core with separate code and data buses, a hardware multiplier is absent on this mid-range device, and interrupt handling is vectored with prioritized sources. The FLASH memory supports in-circuit serial programming (ICSP) via RB6/RB7, enabling field firmware updates without removing the device from the board.
Typical applications include industrial automation controllers, HVAC and thermostat systems, motor control front-ends, smart sensor hubs, and legacy embedded products migrating from PIC16C/CR to FLASH. The 44-PLCC package offers socketed replacement-friendly mounting for low-volume and prototyping builds. According to Microchip, the PIC16F874 is recommended for new designs; engineers are pointed to PIC16F884 for new designs that need more memory, ADC channels, and peripherals.
When designing with this MCU, allocate a 100 nF decoupling capacitor within 5 mm of VDD and a 10 uF bulk capacitor near the ICSP header. Use a 4 MHz crystal with 22 pF load capacitors if higher timing accuracy than the internal RC oscillator is required. Note that the 04 speed grade caps oscillator frequency at 4 MHz; if 20 MHz operation is needed, select the PIC16F874-20/L variant.
드롭인 대체품: PIC16F874-04/L — 동일 패키지, 핀 호환. PCB 재작업이 필요한 다른 패키지 부품은 제외됩니다.
이 시리즈의 변형
다음과 드롭인 호환되는 동일 시리즈 모델: PIC16F874-04/L (동일 폼 팩터 및 풋프린트) — 차이점: Package, Timers, Core Architecture, Operating Temperature, Communication Peripherals.
빠른 비교 도구 — 나란히 비교할 대체 부품을 선택하십시오:
PIC16F874-20/L
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
PIC16F874-04I/L
✅ 드롭인✓ 재고 있음
$5.4 / 개
데이터시트 보기 →PIC16F874-20I/L
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
PIC16F884-I/L
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
PIC16F874-04/L 최대 정격 & 전기적 특성
| Core Architecture | 8-bit PIC16 mid-range RISC |
| Program Memory Type | FLASH |
| Program Memory Size | 7 KB (4K x 14 words) |
| SRAM | 192 bytes |
| EEPROM | 128 bytes |
| Maximum CPU Clock | 4 MHz |
| Instruction Cycle Time | 200 ns (at 20 MHz) / 1 us at 4 MHz |
| Supply Voltage (VDD) | 4 V to 5.5 V |
| I/O Pins | 33 |
| 패키지 | 44-pin PLCC (J-lead) |
| 동작 온도 | 0C to +70C (commercial, /L) |
| ADC | 10-bit, up to 8 channels |
| Timers | Three 8/16-bit timers (Timer0, Timer1, Timer2) |
| Communication Peripherals | USART (RS-232/RS-485), MSSP (SPI/I2C) |
| Parallel Slave Port | Yes (8-bit PSP) |
| ICSP | In-Circuit Serial Programming (RB6/RB7) |
| RoHS 상태 | Compliant |
PIC16F874-04/L 핀 구성
| 핀 1 | MCLR/VPP — Master clear (reset) input / programming voltage input |
| 핀 2 | RA0/AN0 — PORTA bit 0 / analog input channel 0 |
| 핀 3 | RA1/AN1 — PORTA bit 1 / analog input channel 1 |
| 핀 4 | RA2/AN2 — PORTA bit 2 / analog input channel 2 |
| 핀 5 | RA3/AN3/VREF — PORTA bit 3 / analog input channel 3 / VREF+ |
| 핀 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| 핀 7 | RA5/AN4/SS — PORTA bit 5 / analog input channel 4 / SPI slave select |
| 핀 8 | RE0/RD/AN5 — PORTE bit 0 / parallel slave port read / AN5 |
| 핀 9 | RE1/WR/AN6 — PORTE bit 1 / parallel slave port write / AN6 |
| 핀 10 | RE2/CS/AN7 — PORTE bit 2 / parallel slave port chip select / AN7 |
| 핀 11 | VDD — Positive supply voltage (4V to 5.5V) |
| 핀 12 | VSS — Ground reference |
| 핀 13 | OSC1/CLKI — Crystal oscillator input / external clock input |
| 핀 14 | OSC2/CLKO — Crystal oscillator output / clock output |
| 핀 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock |
| 핀 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 PWM |
| 핀 17 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| 핀 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| 핀 19 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| 핀 20 | RC5/SDO — PORTC bit 5 / SPI data out |
| 핀 21 | RC6/TX/CK — PORTC bit 6 / USART TX / clock |
| 핀 22 | RC7/RX/DT — PORTC bit 7 / USART RX / data |
| 핀 23 | RB0/INT — PORTB bit 0 / external interrupt input |
| 핀 24 | RB1 — PORTB bit 1 |
| 핀 25 | RB2 — PORTB bit 2 |
| 핀 26 | RB3/PGM — PORTB bit 3 / low-voltage programming |
| 핀 27 | RB4 — PORTB bit 4 |
| 핀 28 | RB5 — PORTB bit 5 |
| 핀 29 | RB6/PGC — PORTB bit 6 / ICSP clock |
| 핀 30 | RB7/PGD — PORTB bit 7 / ICSP data |
| 핀 31 | VSS — Ground reference |
| 핀 32 | VDD — Positive supply voltage (4V to 5.5V) |
| 핀 33 | RD0/PSP0 — PORTD bit 0 / parallel slave port bit 0 |
| 핀 34 | RD1/PSP1 — PORTD bit 1 / parallel slave port bit 1 |
| 핀 35 | RD2/PSP2 — PORTD bit 2 / parallel slave port bit 2 |
| 핀 36 | RD3/PSP3 — PORTD bit 3 / parallel slave port bit 3 |
| 핀 37 | RD4/PSP4 — PORTD bit 4 / parallel slave port bit 4 |
| 핀 38 | RD5/PSP5 — PORTD bit 5 / parallel slave port bit 5 |
| 핀 39 | RD6/PSP6 — PORTD bit 6 / parallel slave port bit 6 |
| 핀 40 | RD7/PSP7 — PORTD bit 7 / parallel slave port bit 7 |
일반적인 애플리케이션
PIC16F874-04/L 적합 용도: 6 애플리케이션s: Industrial Automation Controller, HVAC Thermostat and Climate Control, Motor Control Front-End, Smart Sensor Hub and Data Logger, Consumer Appliance Control Board, Legacy Industrial Controller Replacement.
Industrial Automation Controller
The PIC16F874-04/L fits industrial control because its 33 I/O pins drive relays, contactors, and indicator panels without external mux logic. Its 7 KB FLASH holds ladder-logic-style state machines, while the 128-byte EEPROM stores non-volatile calibration constants and trip thresholds across power cycles. The 10-bit ADC with 8 channels digitizes 4-20 mA loop signals and 0-10 V process variables, and the USART links to an HMI or PLC over RS-485 at up to 4 MHz. Designers benefit from PIC16F874-04/L's proven mid-range RISC core, deterministic 1 us instruction cycle, and the free MPLAB X IDE toolchain, all of which reduce firmware risk in long-life factory automation projects.
추천
HVAC Thermostat and Climate Control
The PIC16F874-04/L is well-suited to HVAC thermostats because it integrates a 10-bit ADC for NTC thermistor temperature sensing, PWM outputs for damper and valve actuation, and 192 bytes of SRAM sufficient for scheduling state. Operating from a 5 V supply matches common HVAC control boards, and the 0-70C commercial temperature range covers indoor equipment. The MSSP module connects to wall-mounted display boards via I2C, while the USART links to a Wi-Fi or Zigbee module for smart-thermostat connectivity. With 7 KB of FLASH, the device accommodates full scheduling logic, PID control loops, and a user interface driver without external memory.
추천
Motor Control Front-End
The PIC16F874-04/L drives small BLDC or stepper motor control front-ends by generating PWM on CCP modules, sampling current via the 10-bit ADC, and sequencing commutation through GPIO. Its 4 MHz clock yields 1 us PWM resolution at 20 kHz switching frequency, sufficient for fractional-horsepower fans and pumps. The USART provides a debug and command channel to a host controller or inverter display. With 33 I/O, designers can connect Hall sensors, encoder feedback, and fault indicators directly to the MCU, eliminating the need for an I/O expander. The 44-pin PLCC package is socketed, simplifying bench tuning and field service.
추천
Smart Sensor Hub and Data Logger
The PIC16F874-04/L serves as a smart sensor hub by aggregating multiple analog inputs through its 8-channel 10-bit ADC, conditioning data, and forwarding it via USART or SPI to a host processor. Its 128-byte EEPROM stores calibration coefficients and sensor identity for plug-and-play replacement, while the 192-byte SRAM holds 32 latest samples for averaging. The MSSP module reads I2C temperature, humidity, or pressure sensors without an external bus controller. ICSP via RB6/RB7 enables in-the-field firmware updates as sensor algorithms evolve. This makes PIC16F874-04/L an ideal low-power data aggregator for industrial IoT edge nodes.
추천
Consumer Appliance Control Board
The PIC16F874-04/L is widely used in consumer appliances like washing machines, microwave ovens, and coffee makers because of its 33 I/O capability, integrated timers, and free development tools. The 10-bit ADC reads water level, temperature, and humidity sensors, while PWM outputs drive solenoid valves, triac-fired heaters, and brushless DC motors. The USART connects to LED or LCD user interfaces, and the parallel slave port allows a graphics controller to share memory. With 7 KB FLASH, designers implement complete wash-cycle programs, user menus, and diagnostic routines without external program memory.
추천
Legacy Industrial Controller Replacement
The PIC16F874-04/L is the go-to choice for maintaining and replicating legacy industrial controllers that originally used PIC16C, PIC16CR, or PIC16F parts in 40-pin PDIP or 44-pin PLCC sockets. Engineers can drop it into existing PCB footprints without redesigning the board, and use ICSP to program it without removing it from the circuit. The 7 KB FLASH, 192-byte SRAM, and 128-byte EEPROM match the resource profile of mid-1990s designs, allowing straightforward firmware porting. Industrial customers with installed equipment that must be supported for 10-20 years rely on the PIC16F874-04/L's long-term availability and Microchip's product longevity policy.
추천
추천 제품 요약
엔지니어링 참조 데이터: PIC16F874-04/L — 비교, 설계 지침 및 규정 준수 정보.
선택 가이드
대체품과의 비교
| 파라미터 | 이 제품 | PIC16F874-20/L | PIC16F874-04I/L | PIC16F874-20I/L | PIC16F884-I/L |
|---|---|---|---|---|---|
| Package | 44-pin PLCC | 44-pin PLCC - same | 44-pin PLCC - same | 44-pin PLCC - same | 44-pin PLCC - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Max Clock Speed | 4 MHz | 20 MHz | 4 MHz | 20 MHz | 20 MHz |
| FLASH Memory | 7 KB | 7 KB | 7 KB | 7 KB | 14 KB |
| SRAM | 192 bytes | 192 bytes | 192 bytes | 192 bytes | 368 bytes |
| EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 256 bytes |
| I/O Pins | 33 | 33 | 33 | 33 | 36 |
| Operating Temperature | 0C to +70C (commercial) | 0C to +70C (commercial) | -40C to +85C (industrial) | -40C to +85C (industrial) | -40C to +85C (industrial) |
주요 차별점
- 44-pin PLCC with socketed mounting (vs PIC16F874-04/PQ (44-pin PQFP))
- Industry-standard mid-range PIC16 core with proven toolchain (vs PIC16F84A (18-pin baseline PIC))
- Long-term availability with Microchip product longevity program (vs PIC16F74 (smaller FLASH variant))
설계 노트
Estimated: at 4 MHz clock and 5 V supply, PIC16F874-04/L typical operating current is 2-5 mA, with idle current below 1 mA and sleep current around 1 uA. Place a 100 nF decoupling capacitor within 5 mm of each VDD pin and a 10 uF bulk capacitor near the ICSP header to suppress switching noise. Brown-out reset (BOR) should be enabled in CONFIG to avoid undefined behavior during slow power-down ramps below 4V.
The PIC16F874-04/L operates over 0C to +70C (commercial /L grade). For industrial environments, choose PIC16F874-04I/L rated -40C to +85C. The 44-pin PLCC package has a typical theta_JA around 60 C/W in still air, well within the device's thermal envelope since total power dissipation is below 50 mW. No heatsink is required.
Route the 4 MHz crystal traces symmetrically and keep them short (under 10 mm) with grounded guard traces to reduce EMI pickup. Use 22 pF load capacitors matched to the crystal's load specification. Place MCLR/VPP reset pull-up resistor (typically 10 kOhm) close to the pin and add a 100 nF cap if long reset traces are unavoidable. Keep ICSP lines RB6/PGC and RB7/PGD away from high-current switching traces to prevent programming glitches.
Do not exceed 5.5V on any VDD pin or apply voltage to MCLR before VDD is stable - this can trigger latch-up. The 04 speed grade caps the oscillator at 4 MHz; using a 20 MHz crystal on the 04 grade may cause intermittent operation or device damage over time. When porting code from PIC16F877, verify ADC channel count (8 vs 14) and parallel slave port pin mapping. Always set the CONFIG register for proper oscillator selection, BOR, and code protection before final firmware lock.
규정 준수 정보
RoHS and REACH compliance per Microchip product documentation. Not AEC-Q100 qualified; for automotive applications consider PIC16F1939 or PIC16F1829. Lead-free finish compatible with 260C peak reflow. Operating temperature 0C to +70C (commercial /L grade).