PIC16F874-04I/P - 8-bit 4MHz 7KB Flash MCU 40-PDIP | Microchip
부품 번호: PIC16F874-04I/P ✓ 활성| 수량 | 단가 | 합계 |
|---|---|---|
| 1 | $9.85 | $9.85 |
| 10 | $8.92 | $89.20 |
| 100 | $7.45 | $745.00 |
| 500 | $6.3 | $3,150.00 |
| 1,000 | $5.55 | $5,550.00 |
PIC16F874-04I/P 개요
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program memory, data RAM, peripherals, and I/O on one die. Within the broader semiconductor hierarchy, an MCU sits under microcontrollers, which in turn are a subset of digital logic integrated circuits (ICs) used for embedded control. The PIC16F family from Microchip is one of the longest-running 8-bit RISC architectures, prized for deterministic timing, low power, and a small instruction set that shortens firmware development cycles.
Key features of the PIC16F874-04I/P include the 4 MHz maximum oscillator, 4K x 14 Flash word program memory (7KB), 192 bytes of data SRAM, and 128 bytes of EEPROM. It provides 33 I/O pins, an integrated 10-bit A/D converter, two 8-bit timers plus one 16-bit timer, a USART with addressing, a Master Synchronous Serial Port (MSSP) for SPI/I2C, and two Capture/Compare/PWM modules. These peripherals address motor control, sensor readout, and human-machine interface (HMI) functions without external support chips.
The 40-pin PDIP form factor and pinout are compatible with PIC16C73B/74B/76/77 devices, simplifying board-level migration. According to Microchip's product page, Microchip recommends the newer PIC16F884 as a modern replacement offering more memory and peripherals in the same 40-pin footprint for new designs. The 4 MHz speed grade is appropriate for control loops, slow communication, and battery-powered sensor nodes rather than high-throughput DSP workloads.
Typical applications include industrial automation controllers, building HVAC systems, appliance control boards, instrumentation front panels, and legacy embedded retrofits. The wide operating voltage range (2.0 V to 5.5 V) allows direct connection to 3.3 V or 5 V rails. Engineers should observe proper decoupling (0.1 uF ceramic near VDD) and consider the in-circuit serial programming (ICSP) interface for firmware updates in fielded units.
드롭인 대체품: PIC16F874-04I/P — 동일 패키지, 핀 호환. PCB 재작업이 필요한 다른 패키지 부품은 제외됩니다.
이 시리즈의 변형
다음과 드롭인 호환되는 동일 시리즈 모델: PIC16F874-04I/P (동일 폼 팩터 및 풋프린트) — 차이점: Package, Core Architecture, Timers, Mounting Type, Operating Temperature.
빠른 비교 도구 — 나란히 비교할 대체 부품을 선택하십시오:
PIC16F874-04/PQ
✅ 드롭인✓ 재고 있음
$5.9 / 개
데이터시트 보기 →PIC16F874-04I/L
✅ 드롭인✓ 재고 있음
$5.4 / 개
데이터시트 보기 →PIC16F874-04E/PQ
✅ 드롭인✓ 재고 있음
$5.1 / 개
데이터시트 보기 →PIC16F874-04/L
✅ 드롭인✓ 재고 있음
$6.85 / 개
데이터시트 보기 →PIC16F884-I/P
✅ 드롭인✓ 재고 있음
$2.62 / 개
데이터시트 보기 →PIC16F877A-I/P
✅ 드롭인✓ 재고 있음
가격 문의
데이터시트 보기 →PIC16F871-I/P
✅ 드롭인✓ 재고 있음
$3.3 / 개
데이터시트 보기 →PIC16F874-04I/P 최대 정격 & 전기적 특성
| Core Architecture | PIC16 8-bit RISC |
| 최대 클록 주파수 | 4 MHz |
| Instruction Cycle Time | 200 ns |
| Program Memory (Flash) | 7 KB (4K x 14 words) |
| Data SRAM | 192 bytes |
| Data EEPROM | 128 bytes |
| Number of I/O Pins | 33 |
| ADC Resolution | 10-bit |
| Supply Voltage Range | 2.0 V to 5.5 V |
| 동작 온도 범위 | -40C to +85C (Industrial) |
| 패키지 | 40-pin PDIP (P) |
| 실장 유형 | Through Hole |
| Timers | Two 8-bit + One 16-bit |
| Communication Peripherals | USART, MSSP (SPI/I2C) |
| PWM Modules | 2 (CCP) |
| RoHS 상태 | Compliant |
| Pinout Compatibility | PIC16C73B/74B/76/77 |
PIC16F874-04I/P 핀 구성
| 핀 1 | MCLR — Master Clear (Reset) input, active low |
| 핀 2 | RA0/AN0 — PORTA bit 0 / ADC input 0 |
| 핀 3 | RA1/AN1 — PORTA bit 1 / ADC input 1 |
| 핀 4 | RA2/AN2 — PORTA bit 2 / ADC input 2 |
| 핀 5 | RA3/AN3/VREF+ — PORTA bit 3 / ADC input 3 / VREF+ |
| 핀 6 | RA4/AN4 — PORTA bit 4 / ADC input 4 (open-drain) |
| 핀 7 | RA5/AN5/SS — PORTA bit 5 / ADC input 5 / SPI slave select |
| 핀 8 | OSC1/CLKIN — Oscillator crystal input / external clock |
| 핀 9 | OSC2/CLKOUT — Oscillator crystal output / clock out |
| 핀 10 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator out / clock in |
| 핀 11 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator in / CCP2 PWM |
| 핀 12 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| 핀 13 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| 핀 14 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| 핀 15 | RC5/SDO — PORTC bit 5 / SPI data out |
| 핀 16 | RC6/TX/CK — PORTC bit 6 / USART TX / clock |
| 핀 17 | RC7/RX/DT — PORTC bit 7 / USART RX / data |
| 핀 18 | VSS — Ground reference |
| 핀 19 | VDD — Positive supply voltage (2.0 V to 5.5 V) |
| 핀 20 | RB0/INT — PORTB bit 0 / external interrupt |
| 핀 21 | RB1 — PORTB bit 1 |
| 핀 22 | RB2 — PORTB bit 2 |
| 핀 23 | RB3/PGM — PORTB bit 3 / LVP programming |
| 핀 24 | RB4 — PORTB bit 4 |
| 핀 25 | RB5 — PORTB bit 5 |
| 핀 26 | RB6/PGC — PORTB bit 6 / ICSP clock |
| 핀 27 | RB7/PGD — PORTB bit 7 / ICSP data |
| 핀 28 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| 핀 29 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| 핀 30 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| 핀 31 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| 핀 32 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| 핀 33 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| 핀 34 | RD6/PSP6 — PORTD bit 6 / Parallel Slave Port bit 6 |
| 핀 35 | RD7/PSP7 — PORTD bit 7 / Parallel Slave Port bit 7 |
| 핀 36 | RE0/RD — PORTE bit 0 / PSP read control |
| 핀 37 | RE1/WR — PORTE bit 1 / PSP write control |
| 핀 38 | RE2/CS — PORTE bit 2 / PSP chip select |
| 핀 39 | VSS — Ground reference (second VSS pin) |
| 핀 40 | VDD — Positive supply voltage (second VDD pin) |
일반적인 애플리케이션
PIC16F874-04I/P 적합 용도: 7 애플리케이션s: Industrial Automation Controllers, HVAC and Building Control Boards, Appliance Control Boards, Instrumentation Front Panels, Legacy Embedded Retrofits, Sensor Node Edge Devices, Educational and Development Platforms.
Industrial Automation Controllers
The PIC16F874-04I/P is well matched to industrial PLC node and machine controller designs where its industrial temperature grade (-40C to +85C), 33 I/O pins, and 10-bit ADC support direct sensor interfacing and relay driving. The 4 MHz clock provides deterministic instruction timing suitable for polling loops in the 1-10 ms range typical of SCADA nodes, while the 7KB Flash accommodates Modbus or CANopen state-machine firmware. Designers place 0.1 uF ceramic decoupling at each VDD pin and add a TVS on the MCLR line to survive factory-floor ESD events.
추천
HVAC and Building Control Boards
HVAC damper and thermostat controllers benefit from the PIC16F874-04I/P's wide 2.0-5.5 V supply range, allowing direct operation from 24 VAC rectified rails with regulation, and from its integrated USART plus MSSP peripherals for talking to remote temperature/humidity sensors over I2C. The 10-bit ADC handles thermistor and pressure transducer inputs with sufficient resolution for setpoint control, while the 33 I/O lines drive triac outputs for compressor and fan switching. The -40C to +85C industrial range supports unconditioned mechanical rooms.
추천
Appliance Control Boards
White-goods control boards for washers, dishwashers, and ovens use the PIC16F874-04I/P because its 33 I/O lines handle keypad scanning, LED/LCD multiplexing, and motor-driver logic without external glue chips. The 192-byte SRAM and 7KB Flash run simple state machines for cycle timing, and the integrated USART supports diagnostic or smart-appliance connectivity. EEPROM (128 bytes) preserves user settings across power cycles, a critical feature for appliance UX.
추천
Instrumentation Front Panels
Bench-top instruments and panel meters leverage the PIC16F874-04I/P's USART for command-line interfaces, MSSP for SPI displays or ADC chips, and 10-bit ADC for direct transducer readout. The 4 MHz clock is sufficient for refresh rates up to a few hundred Hz on small segment displays. The 40-pin PDIP package is also friendly to hand-soldered prototypes and through-hole assembly favored in low-volume instrumentation. The industrial temp grade handles equipment-room environments.
추천
Legacy Embedded Retrofits
The PIC16F874-04I/P is the go-to MCU for maintaining installed equipment originally designed around the PIC16C73B/74B/76/77 family, since its pinout is electrically and mechanically compatible. Existing PCBs accept the part without rework, and legacy firmware ports with minimal changes thanks to the same 35-instruction PIC16 mid-range core. The Flash memory also supports ICSP for in-field firmware patches, an advantage over the older one-time-programmable and ROM variants in legacy fleets.
추천
Sensor Node Edge Devices
Battery-powered remote sensor nodes use the PIC16F874-04I/P for its low operating voltage (down to 2.0 V), modest 4 MHz clock enabling sleep-mode duty cycling, and integrated 10-bit ADC for periodic transducer readings. The 192-byte SRAM is sufficient for short data buffers before UART transmission, while the 33 I/O lines interface multiple low-power sensors. EEPROM preserves calibration constants across battery swaps, and ICSP allows field firmware updates.
추천
Educational and Development Platforms
The PIC16F874-04I/P's simple 35-instruction RISC core, generous 7KB Flash, and through-hole 40-pin PDIP package make it ideal for university embedded-systems courses and hobbyist development boards. Students can hand-solder the part and probe every pin with standard lab equipment, while the ICSP interface supports frequent firmware reloads. PICkit programmers and the MPLAB X IDE ecosystem provide free tools, and the same package family is supported across PIC16F84 through PIC16F877A.
추천
추천 제품 요약
엔지니어링 참조 데이터: PIC16F874-04I/P — 비교, 설계 지침 및 규정 준수 정보.
선택 가이드
대체품과의 비교
| 파라미터 | 이 제품 | PIC16F874-04/P | PIC16F874-04I/L | PIC16F874-04E/P | PIC16F884-I/P | PIC16F877A-I/P |
|---|---|---|---|---|---|---|
| Package | 40-PDIP | 40-PDIP - same | 44-PLCC - same die | 40-PDIP - same | 40-PDIP - same | 40-PDIP - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Memory (Flash) | 7 KB | 7 KB | 7 KB | 7 KB | 14 KB | 8 KB |
| Data SRAM | 192 bytes | 192 bytes | 192 bytes | 192 bytes | 368 bytes | 368 bytes |
| Maximum Clock Frequency | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 10 MHz | 20 MHz |
| Operating Temperature | -40C to +85C | 0C to +70C | -40C to +85C | -40C to +125C | -40C to +85C | -40C to +85C |
| Number of I/O Pins | 33 | 33 | 33 | 33 | 36 | 33 |
| ADC Resolution | 10-bit | 10-bit | 10-bit | 10-bit | 10-bit | 10-bit |
| Lifecycle Status | Active | Active | Active | Active | Active (recommended) | Active |
주요 차별점
- Pin-compatible with PIC16C73B/74B/76/77 legacy parts (vs PIC16C74B-04/P)
- Industrial temperature grade in identical 40-PDIP (vs PIC16F874-04/P)
- Lower power consumption than newer PIC16F884 replacement (vs PIC16F884-I/P)
설계 노트
Place a 0.1 uF ceramic decoupling capacitor as close as physically possible to each VDD pin (pins 19 and 40) and a single 10 uF bulk tantalum or aluminum polymer capacitor on the board supply rail. The PIC16F874-04I/P operates across 2.0 V to 5.5 V but is most commonly run at 5.0 V for industrial retrofits. Use a low-dropout regulator such as MCP1700 for 3.3 V battery-powered nodes. Add a 10 kohm pull-up on MCLR (pin 1) and a 100 nF cap to ground for clean power-on reset behavior.
The "-04" speed grade suffix limits the oscillator to 4 MHz maximum; substituting a 20 MHz crystal without changing to the PIC16F874-20 variant will cause the chip to malfunction because the internal clock-divider configuration bits default differently across speed grades. Always verify the speed grade in your BOM matches the crystal or resonator installed. Also, ensure ICSP pins (RB6/RB7) are not permanently pulled low or high by external circuitry during programming - this is a frequent cause of in-circuit programming failures.
Route the oscillator traces (OSC1/OSC2, pins 8 and 9) as short as possible with a ground guard ring on both sides; place the crystal or resonator within 5 mm of the MCU. Keep ADC analog inputs (RA0-RA5) away from digital switching traces to minimize crosstalk, and use a separate analog ground return if mixed-signal accuracy is required. The MCLR pin benefits from a 100 nF cap directly to ground and a series resistor if the board will be exposed to ESD.
규정 준수 정보
Industrial temperature grade -40C to +85C. RoHS and lead-free per Microchip product page; not AEC-Q100 qualified (use automotive-grade PIC16F874-04E/P or PIC variant for Q100).