PIC16F873-04/SO - 4MHz 8-Bit Flash MCU | Microchip Technology
MPN: PIC16F873-04/SO ✗ 停產PIC16F873-04/SO 概覽
An 8-bit PIC microcontroller is a programmable semiconductor that combines a central processing unit, program memory, data memory, general-purpose I/O, timers, and communication peripherals on one integrated circuit. In the product hierarchy, the PIC16F873 belongs to the Microchip PIC16 family of 8-bit microcontrollers and combines embedded flash memory with a RISC-style instruction set. Unlike a discrete logic controller, it executes embedded firmware that allows product behavior to be changed without replacing the physical controller.
The primary specifications are a 4 MHz maximum clock frequency, 7 KB of flash program memory, 192 bytes of RAM, and 22 general-purpose I/O lines. Its 4K x 14 flash organization allows the device to hold 4096 program words. The 28-pin SOIC package provides a surface-mount alternative to larger through-hole packages while retaining separate connections for the I/O ports, oscillator, reset, programming, power, and ground functions needed in embedded control boards.
The PIC16F873 architecture uses a Harvard-style arrangement in which program memory and data memory are accessed through separate paths, supporting efficient execution of embedded firmware. Flash memory permits in-circuit programming and repeated firmware updates during development or field servicing. Its peripheral set is appropriate for sensing, timing, pulse generation, input capture, serial communication, and state-machine control, while the 4 MHz operating limit favors deterministic control loops that do not require high-bandwidth computation.
Typical applications include industrial equipment interfaces, environmental monitoring instruments, motor and relay controllers, programmable logic controllers, appliance controls, instrumentation modules, and communications-enabled embedded nodes. The device can operate as the central controller in a board that reads sensors, applies control logic, drives indicators or actuators, and communicates with a higher-level controller. Its 22 I/O lines allow multiple digital inputs and outputs to be connected without requiring a larger package.
When laying out a replacement board, verify the 28-pin SOIC footprint, pin orientation, oscillator requirements, programming interface, and decoupling connections against the manufacturer pin and package documentation. Pay particular attention to the reset and programming pins because incorrect programming or decoupling can appear as an unstable oscillator or intermittent startup. The -04 device is specifically a 4 MHz part and should not be substituted with a different speed grade without reviewing timing and operating requirements.
This product analysis consolidates the verified PIC16F873-04/SO memory, clock, package, and lifecycle information with practical migration guidance and same-package alternatives. It is intended to help engineers identify the correct device, compare temperature-grade options, and plan a board-compatible replacement without overlooking firmware, timing, or qualification constraints.
直接替換替代品,適用於 PIC16F873-04/SO — 相同封裝,腳位對腳位相容。需重新設計 PCB 的不同封裝零件不列入。
此系列的變體
與下列產品可直接替換的同系列型號: PIC16F873-04/SO (相同外形與佔位) — 差異在於 Core Architecture, Package, ADC, Timers, Maximum Clock Frequency.
PIC16F873-04I/SO
✅ 直接替換📋 參考替代品(不在目錄中)
PIC16F873-04E/SO
✅ 直接替換聯絡詢價
查看資料表 →PIC16F873T-04/SO
✅ 直接替換📋 參考替代品(不在目錄中)
PIC16F873T-04I/SO
✅ 直接替換聯絡詢價
查看資料表 →PIC16F873T-04E/SO
✅ 直接替換聯絡詢價
查看資料表 →PIC16F873-04/SO 最大額定值與電氣特性
| Microcontroller Type | 8-bit PIC RISC microcontroller |
| 最大時脈頻率 | 4 MHz |
| Program Memory Type | Flash |
| Program Memory Size | 7 KB |
| Program Memory Organization | 4K x 14 words |
| RAM Size | 192 bytes |
| Data EEPROM Size | 128 bytes |
| I/O Pin Count | 22 |
| 供應電壓 | 4 V to 5.5 V |
| Nominal Supply Voltage | 5 V |
| Package Type | 28-pin SOIC |
| Total Pin Count | 28 pins |
| 安裝類型 | Surface mount |
| Speed Designator | -04, 4 MHz |
| 生命週期狀態 | Not Recommended for new designs |
PIC16F873-04/SO 28-pin soic 腳位配置指南
PIC16F873-04/SO(28-pin soic 封裝)的腳位配置。 此數位 IC 包含 GPIO、通訊介面(UART、SPI、I2C)與電源腳位。替代腳位功能與配置選項請參閱製造商資料表。對嵌入式系統設計與 PCB 佈局至關重要。
無詳細腳位定義資料: PIC16F873-04/SO.
請參閱 資料表 以查看完整腳位配置。
典型應用
PIC16F873-04/SO 適用於 6 應用s: Industrial Equipment Interface Controller, Environmental Monitoring Instrument, Motor and Relay Controller, Programmable Logic Controller, Appliance and Building Control, Communications-Enabled Embedded Node.
Industrial Equipment Interface Controller
The PIC16F873-04/SO fits an industrial equipment interface because its 22 I/O lines can accommodate multiple digital inputs, status outputs, and control signals within one 28-pin SOIC footprint. The 4 MHz clock supports responsive state-machine logic, while 7 KB of flash provides room for startup handling, diagnostics, and device-specific control routines. Place the controller between a machine sensor network and relay or actuator drivers, then use timed I/O operations for predictable sequencing. The main design consideration is environmental qualification: a wider industrial temperature range calls for the 04I/SO grade rather than the commercial-grade target.
推薦
Environmental Monitoring Instrument
PIC16F873-04/SO can serve as the supervisory controller in an environmental monitoring instrument that combines digital sensors, a local display, alarm outputs, and a communications link. Its 4 MHz clock is sufficient for scheduled sampling and threshold logic, while 192 bytes of RAM supports short-term working data and 7 KB of flash holds acquisition and alarm routines. Firmware can manage sensor selection, averaging, debouncing, and fault reporting without a separate processor. Keep analog conditioning outside the MCU where appropriate, and apply filtering to digital sensor lines before they reach the 22 available I/O pins.
推薦
Motor and Relay Controller
The PIC16F873-04/SO is appropriate for small motor, solenoid, and relay control systems where the embedded controller must sequence multiple outputs and respond to input conditions. Its 22 I/O lines allow direct connections to limit switches, position sensors, relay drivers, and status indicators, while the 4 MHz clock supports rapid task scheduling. A typical implementation uses timers for pulse generation or debounce intervals and firmware interlocks to prevent conflicting actuator states. External driver transistors and protection components remain necessary because MCU I/O pins are control signals, not power-stage devices.
推薦
Programmable Logic Controller
PIC16F873-04/SO can implement a compact programmable logic controller for sequencing, latch logic, counter tasks, and basic machine control. The 7 KB flash memory provides room for structured ladder-like or state-machine routines, and the 4 MHz operating frequency supports deterministic execution of multiple I/O tasks. Its 22 I/O pins offer more board flexibility than a simple fixed-function logic device while retaining simple firmware-based changes. For dependable operation, define safe output states during reset, validate input conditioning, and confirm that the selected temperature grade covers the enclosure's worst-case environment.
推薦
Appliance and Building Control
PIC16F873-04/SO fits compact appliance and building-control modules that coordinate user inputs, displays, sensors, communications, and relay outputs. Its 4 MHz speed is sufficient for menu handling, timers, status logic, and protocol servicing, while 7 KB of flash stores application firmware and configuration behavior. The 28-pin SOIC package supports automated board assembly and provides a practical upgrade from a larger through-hole footprint. Designers should allocate pins carefully for programming, oscillator components, reset, and serial functions, and should use a wider temperature-grade variant when the product operates in a hot enclosure or outdoor environment.
推薦
Communications-Enabled Embedded Node
PIC16F873-04/SO can act as the local controller in a communications-enabled sensor node or instrument interface. The 4 MHz clock and 22 I/O lines allow a firmware loop to acquire data, apply thresholds, update indicators, and service a serial interface. With 7 KB of flash and 192 bytes of RAM, the device is best suited to compact protocol handling and supervisory logic rather than high-throughput data processing. A production design should provide suitable oscillator and decoupling arrangements, define programming access for field updates, and use the temperature-grade variant matching the installation environment.
推薦
推薦產品摘要
工程參考資料,適用於 PIC16F873-04/SO — 比較、設計指引及合規資訊。
選型指南
與替代品比較
| 參數 | 本產品 | PIC16F873-04I/SO | PIC16F873-04E/SO | PIC16F873T-04/SO | PIC16F873T-04I/SO | PIC16F873T-04E/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-pin SOIC | 28-pin SOIC | 28-pin SOIC | 28-pin SOIC | 28-pin SOIC | 28-pin SOIC |
| Maximum Clock Frequency | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz |
| Program Memory | 7 KB flash | 7 KB flash | 7 KB flash | 7 KB flash | 7 KB flash | 7 KB flash |
| Program Memory Organization | 4K x 14 words | 4K x 14 words | 4K x 14 words | 4K x 14 words | 4K x 14 words | 4K x 14 words |
| Speed Grade | -04, 4 MHz | -04, 4 MHz | -04, 4 MHz | -04, 4 MHz | -04, 4 MHz | -04, 4 MHz |
| Temperature or Qualification Suffix | Commercial-grade base suffix | Industrial-grade suffix | Extended-temperature suffix | Temperature-grade T suffix | Temperature-grade T and industrial-grade I suffixes | Temperature-grade T and extended-temperature E suffixes |
主要差異化特點
- Identified family options preserve the target's 4 MHz clock and 7 KB flash configuration (對比PIC16F873-04I/SO)
- The target is the commercial-grade base option within the identified drop-in family (對比PIC16F873T-04/SO)
- Exact 28-pin SOIC package identification supports controlled PCB reuse (對比PIC16F873T-04E/SO)
設計說明
Do not treat the 04, I, E, or T suffix as interchangeable packaging information. The target and its alternatives all use a 28-pin SOIC footprint, but the suffix selection affects the intended temperature or qualification class. Verify the product's worst-case ambient temperature, enclosure temperature rise, and required qualification before substitution. Also preserve the 4 MHz speed requirement because a similarly named PIC16F873 variant with a different speed designation may not be a drop-in functional match.
Use the manufacturer 28-pin SOIC package drawing to define the land pattern, pin-1 orientation, courtyard, and solder-mask clearance. Place the programming header or test pads where they do not interfere with analog or high-current circuitry, and route sensitive oscillator and reset nets away from switching nodes. The 28-pin package footprint is compatible across the listed family options, but a mechanical drawing alone does not validate pin function, power sequencing, or peripheral multiplexing.
Follow the manufacturer guidance for supply voltage and decoupling placement when this controller replaces an existing design. The documented operating range is 4 V to 5.5 V, with 5 V as the nominal supply used in component descriptions. Keep the regulator reference and power traces short, place local bypass capacitance close to the supply pins, and avoid sharing high-current return paths with sensitive digital inputs. Validate startup and brownout behavior in the complete board rather than relying only on the nominal supply voltage.
Give oscillator, reset, and programming signals priority in the layout because unstable clocking or programming can resemble a defective microcontroller. Keep clock traces short, provide the required oscillator loading network at the device, and maintain clean ground returns around the controller. External switches and relays should have isolation from digital input traces, and any sensor attached to an I/O pin should include appropriate filtering to prevent false transitions from affecting embedded control logic.
合規資訊
Compliance declarations for the exact PIC16F873-04/SO MPN were not identified in the available product information. Confirm RoHS, REACH, automotive qualification, lead-free, halogen-free, and conflict-minerals status with Microchip Technology before release.