Microchip Technology

PIC16LC642-04/SO - 8-Bit 4MHz OTP MCU 7KB | Microchip

MPN: PIC16LC642-04/SO ✓ Active
In Stock Ships in 1-3 business days
3 V to 5.5 V Vdss 28-SOIC Package 4 MHz Speed OTP (One-Time Programmable) Memory
From $2 USD / Unit
MOQ: 1 |
Price updated: 2026-09-22
Volume Pricing
Qty Unit Price Extended
1 $3.2 $3.20
10 $2.9 $29.00
100 $2.55 $255.00
500 $2.25 $1,125.00
1,000 $2 $2,000.00
ℹ️ All prices are in USD

PIC16LC642-04/SO Overview

The Microchip Technology PIC16LC642-04/SO is an 8-bit RISC microcontroller from the PIC® 16C family, featuring 4MHz maximum operating speed, 7KB (4K x 14) of OTP program memory, 176 bytes of RAM, and 22 I/O pins, all packaged in a 28-pin SOIC (Small Outline IC) form factor.

A microcontroller (MCU) is a single-chip computer that integrates a CPU, memory, and programmable I/O peripherals on a single die. The PIC16C/PIC16LC family represents one of the earliest and most successful 8-bit RISC architectures, with the PIC16LC variants optimized for low-voltage (3.0V to 5.5V) operation. Within the broader taxonomy, this part sits in the hierarchy: microcontroller -> 8-bit MCU -> RISC MCU -> embedded controller -> semiconductor IC. The 'LC' designation specifically indicates CMOS low-power operation, and the '04' speed suffix denotes a 4MHz oscillator/clock limit.

Key features include 35 single-word instructions (most single-cycle, with program branches taking two cycles), a Harvard architecture with separate program and data buses, and OTP (One-Time Programmable) memory that allows programming exactly once, making it ideal for mature, stable-volume products where firmware is finalized. The 22 I/O pins support direct LED drive, TTL-compatible inputs, and standard peripheral interfacing.

Technical depth: The PIC16LC642 uses a 14-bit instruction word with an 8-bit data path, providing a code-efficient instruction set for C and assembly development. The integrated RISC core delivers deterministic interrupt response in as little as one instruction cycle, which is critical for real-time control loops. Internal peripherals include timers, a watchdog timer, and an analog comparator that supports brown-out and voltage-monitoring functions.

Typical applications include industrial control nodes, appliance controllers, automotive sub-systems (non-safety-critical), consumer electronics, and legacy embedded products that require 5V-tolerant logic. With 7KB of OTP and 176 bytes of RAM, the device targets medium-complexity control tasks that do not require field re-programming.

When designing with this device, ensure the MCLR reset circuit includes the proper pull-up and decoupling as shown in the Microchip PIC16C6xx reference design. The OTP memory has no revision capability, so production firmware must be fully validated before programming.

This page synthesizes distributor pricing, drop-in same-package alternatives, and practical design notes that go beyond the manufacturer datasheet, giving engineers a single reference for sourcing and validation decisions.

Drop-in alternatives for PIC16LC642-04/SO — 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 PIC16LC642-04/SO (same form factor and footprint) — differing in Core Architecture, Package Type, Program Memory Type, Supply Voltage Range.

Microchip Technology
Package Type: SOIC-28 (SO), 7.50 mm body width
Program Memory Type: OTP (One-Time Programmable) EPROM
Supply Voltage Range: 4 V to 5.5 V
Microchip Technology
Core Architecture: PIC16 (8-bit RISC)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

No drop-in alternatives available for this product.

Request Alternatives

PIC16LC642-04/SO Maximum Ratings & Electrical Characteristics

Core Architecture PIC 8-bit RISC
Family PIC® 16C
Program Memory Type OTP (One-Time Programmable)
Program Memory Size 7 KB (4K x 14)
RAM Size 176 bytes
Maximum Clock Speed 4 MHz
Supply Voltage Range 3 V to 5.5 V
Number of I/O Pins 22
Instruction Set 35 single-word instructions
Instruction Cycle 200 ns at 20 MHz equivalent cycle time
Package Type 28-SOIC
Mounting Type Surface Mount
I/O Compatibility TTL-compatible inputs
Peripherals Timers, Watchdog Timer, Analog Comparator

PIC16LC642-04/SO Pin Configuration

SOIC-28 Package Pinout Diagram SOIC-28W 28-pin, 7.5x17.9mm, P1.27mm, JEDEC MS-013. 1 28 2 27 3 26 4 25 5 24 6 23 7 22 8 21 9 20 10 19 11 18 12 17 13 16 14 15 SOIC-28
Pin 1 MCLR — Master Clear (Reset) input, active low
Pin 2 RA0 — PORTA bit 0 (digital I/O)
Pin 3 RA1 — PORTA bit 1 (digital I/O)
Pin 4 RA2 — PORTA bit 2 (digital I/O)
Pin 5 RA3 — PORTA bit 3 (digital I/O)
Pin 6 RA4 — PORTA bit 4 (digital I/O, open-drain capable)
Pin 7 RA5 — PORTA bit 5 (digital I/O)
Pin 8 VSS — Ground reference
Pin 9 OSC1 — Oscillator input / external clock
Pin 10 OSC2 — Oscillator output
Pin 11 RC0 — PORTC bit 0 (digital I/O)
Pin 12 RC1 — PORTC bit 1 (digital I/O)
Pin 13 RC2 — PORTC bit 2 (digital I/O)
Pin 14 RC3 — PORTC bit 3 (digital I/O)
Pin 15 RC4 — PORTC bit 4 (digital I/O)
Pin 16 RC5 — PORTC bit 5 (digital I/O)
Pin 17 RC6 — PORTC bit 6 (digital I/O)
Pin 18 RC7 — PORTC bit 7 (digital I/O)
Pin 19 VSS — Ground reference
Pin 20 VDD — Positive supply voltage
Pin 21 RB0 — PORTB bit 0 (digital I/O, external interrupt capable)
Pin 22 RB1 — PORTB bit 1 (digital I/O)
Pin 23 RB2 — PORTB bit 2 (digital I/O)
Pin 24 RB3 — PORTB bit 3 (digital I/O)
Pin 25 RB4 — PORTB bit 4 (digital I/O, interrupt-on-change)
Pin 26 RB5 — PORTB bit 5 (digital I/O, interrupt-on-change)
Pin 27 RB6 — PORTB bit 6 (digital I/O, ICSP clock)
Pin 28 RB7 — PORTB bit 7 (digital I/O, ICSP data)

Typical Applications

PIC16LC642-04/SO is suitable for 7 applications: Industrial Control Nodes, Home Appliance Controllers, Automotive Sub-Systems (Non-Safety), Consumer Electronics Devices, Sensor Interface Modules, Legacy Embedded Products / Repair, Battery-Operated Devices.

🏭

Industrial Control Nodes

The PIC16LC642-04/SO fits industrial control nodes because its 4 MHz core delivers deterministic 200 ns instruction cycles, sufficient for sensor polling, actuator drive, and Modbus-style UART traffic on shop-floor networks. The 22 I/O pins map cleanly to typical RTU channel counts (8 to 16 digital inputs plus 4 to 8 relay outputs) and the 3.0V to 5.5V supply range accepts both 24V-to-5V buck-derived rails and battery backup without level translation. Compared with the PIC16F882-I/SO drop-in upgrade, this OTP part is preferable where firmware lock-down is a compliance requirement and field updates are not desired.

🏠

Home Appliance Controllers

The PIC16LC642-04/SO is a strong fit for home appliance controllers (washing machines, microwave ovens, HVAC actuators) because its 7KB OTP memory stores fixed control algorithms, the 22 I/O accommodate relay coils, keypads, and seven-segment or LCD display drivers, and the 35-instruction RISC core makes it easy to certify timing-critical code paths. The LC variant operates from 3.0V to 5.5V, simplifying designs that need to share a single supply with opto-isolated 5V gate drivers. For designers considering migration, the PIC16F882-I/SO is the flash-based pin-compatible successor for late-stage firmware changes.

🚗

Automotive Sub-Systems (Non-Safety)

The PIC16LC642-04/SO serves automotive sub-systems such as HVAC flap motors, accessory controllers, and lighting dimmer sub-modules where AEC-Q100 full qualification is not required but industrial-grade temperature tolerance matters. The -40 to +85 C range covers cabin and under-hood periphery environments, while the 22 I/O and 176-byte RAM suit CAN-bus slave nodes and LIN-bus responder tasks. The OTP memory stabilizes firmware against unauthorized modification. For AEC-Q100 applications, migrate to PIC16F882-I/SO with full automotive qualification.

📱

Consumer Electronics Devices

The PIC16LC642-04/SO is well matched to consumer electronics such as remote controls, electronic toys, kitchen timers, and small appliances where low cost, 5V tolerance, and 22 user-port-pins are needed without USB or large-memory requirements. The 7KB OTP holds typical remote-control or kitchen-appliance logic comfortably, and the RISC 4 MHz core keeps active power low. Designers scaling this part in volume can migrate to the PIC16F882-I/SO for the flash variant while keeping the same SOIC-28 PCB footprint.

🧩

Sensor Interface Modules

The PIC16LC642-04/SO suits sensor interface modules where analog signals from thermistors, photodiodes, or 4-20 mA loops must be digitized and forwarded over UART or SPI links. Its on-chip comparator and timer peripherals provide analog threshold detection and pulse counting, while 176 bytes of RAM support circular sample buffers and command parsing. The 3.0V minimum supply is ideal for battery-backed sensors. For higher-precision analog systems, add an external ADC companion such as MCP3002 or MCP3008.

🔧

Legacy Embedded Products / Repair

The PIC16LC642-04/SO is frequently specified in legacy embedded products that have shipped for 10+ years, including industrial test equipment, vending machine controllers, and older HVAC sub-systems. For maintenance and repair operations, this OTP part remains in production as an active Microchip SKU and is stocked at major distributors. The 28-SOIC footprint allows technicians to replace surface-mounted units on existing PCBs without board rework. For new designs requiring flash memory, the PIC16F882-I/SO is the recommended modern successor.

🔋

Battery-Operated Devices

The PIC16LC642-04/SO fits battery-operated devices thanks to the LC variant's low-voltage 3.0V operation, which allows direct connection to 2x AA alkaline cells (3.0V nominal) or 1x Li-Ion cell (3.3V to 4.2V) without a boost converter. The 4 MHz clock keeps dynamic current low (typically 2 mA at 5V, 1 mA at 3V active), and the OTP memory avoids in-circuit reprogramming current spikes. Pair with an MCP1700 LDO for stable rail conditioning during transmission events from companion RF modules.

Recommended Products Summary

MCP2551 CAN bus transceiver for industrial bus interface Used in: Industrial Control Nodes MAX232 RS-232 line driver for Modbus communication Used in: Industrial Control Nodes PIC16F883-I/SO Microchip Technology Used in: Industrial Control Nodes, Legacy Embedded Products / Repair MOC3041 Triac driver for AC load switching Used in: Home Appliance Controllers PIC16F882-I/SO Microchip Technology Used in: Home Appliance Controllers, Automotive Sub-Systems (Non-Safety), Consumer Electronics Devices, Sensor Interface Modules, Legacy Embedded Products / Repair ULN2003 Darlington array for relay coil driving Used in: Home Appliance Controllers MCP2515 Standalone CAN controller for bus connectivity Used in: Automotive Sub-Systems (Non-Safety) TJA1027 LIN bus transceiver for body-electronics nodes Used in: Automotive Sub-Systems (Non-Safety) MCP9700 Analog temperature sensor for thermal feedback Used in: Consumer Electronics Devices MCP1700 3.3V LDO regulator for power-rail conditioning Used in: Consumer Electronics Devices, Sensor Interface Modules, Legacy Embedded Products / Repair, Battery-Operated Devices MCP3002 10-bit SPI ADC for analog sensor channels Used in: Sensor Interface Modules MCP1640 Boost regulator for RF transmit bursts Used in: Battery-Operated Devices MRF24J40 2.4 GHz RF transceiver for wireless link Used in: Battery-Operated Devices
What is the program memory size of PIC16LC642-04/SO?
The PIC16LC642-04/SO has 7 KB (4K x 14) of OTP (One-Time Programmable) program memory. According to the Microchip PIC16C64X datasheet (DS30244D), the 14-bit instruction word width is standard for the PIC16C6x family, providing efficient code density for 8-bit embedded applications where firmware will not require field updates.
What is the maximum operating frequency of PIC16LC642-04/SO?
The PIC16LC642-04/SO operates at a maximum clock speed of 4 MHz (denoted by the '-04' speed suffix in the MPN). The PIC16LC642 family datasheet specifies 200 ns minimum instruction cycle time at 20 MHz, but the -04 part is limited to 4 MHz oscillator input for low-voltage 3.0V to 5.5V operation.
What is the supply voltage range for PIC16LC642-04/SO?
The PIC16LC642-04/SO operates from a supply voltage of 3.0V to 5.5V, suitable for 3.3V and 5V logic systems. According to the Microchip datasheet, the 'LC' designation indicates low-voltage CMOS process technology, making the part suitable for battery-powered and low-power industrial designs.
How many I/O pins does PIC16LC642-04/SO have?
The PIC16LC642-04/SO provides 22 programmable I/O pins across a 28-pin SOIC package. Of the 28 total package pins, 22 are configured as digital I/O while the remaining pins are dedicated to VDD, VSS, MCLR, and oscillator functions (OSC1/OSC2), per the Microchip 28-pin PICmicro pinout specification.
Is PIC16LC642-04/SO RoHS compliant?
RoHS compliance status for PIC16LC642-04/SO is not confirmed in the web-retrieved distributor data; the SOIC package variant was released prior to mandatory RoHS compliance requirements for many Microchip devices. Per Microchip's product stewardship policy, the /SO part number typically denotes the standard (non-Pb-free) finish, while /SO with a 'G' suffix indicates lead-free finish - check the actual marking on the received parts.
What is the difference between PIC16LC642 and PIC16C642?
The PIC16LC642 uses low-voltage CMOS process technology optimized for 3.0V to 5.5V operation, whereas the PIC16C642 is the standard CMOS variant that requires 4.5V to 5.5V. Both share the same 7KB OTP memory, 176 bytes RAM, and 22 I/O architecture, so the LC version is a drop-in replacement for battery-powered applications.
What are the typical applications for PIC16LC642-04/SO?
Typical applications include industrial control nodes, appliance controllers (washers, microwave ovens, HVAC actuators), consumer electronics, automotive sub-systems (non-safety-critical), sensor interface modules, and low-power battery-operated devices. The 7KB OTP memory and 22 I/O make it well suited for medium-complexity control tasks with fixed firmware.
What is the operating temperature range of PIC16LC642-04/SO?
The PIC16LC642-04/SO commercial-grade variant operates from -40 C to +85 C operating ambient, consistent with the PIC16LC6x family specification. For extended-temperature or automotive-grade variants, the PIC16LC642-04I/SO and PIC16LC642-04E/SO parts offer different temperature grades - check the suffix letter against your design's environmental requirements.
Where can I buy PIC16LC642-04/SO and what is the price?
The PIC16LC642-04/SO is currently in stock at major distributors including DigiKey (321436) and Mouser, with pricing as of 2026-09-22 starting at approximately $2.42 to $3.20 per unit in single-piece quantity, dropping to roughly $2.00 per unit at 1000-piece volume. The part is also available at authorized Microchip resellers such as Avnet and Newark.
What is the lead time for PIC16LC642-04/SO?
The PIC16LC642-04/SO typically ships from DigiKey and Mouser with same-day dispatch for orders placed before 4 PM local time, with lead time as of 2026-09-22 averaging 2-3 weeks for distributor stock replenishment. For high-volume orders, Microchip factory direct may have a 6-8 week production lead time - request a quote via microchipdirect.com.
Is PIC16LC642-04/SO in stock at distributors?
Yes, the PIC16LC642-04/SO is listed as in stock at DigiKey (Mouser shows similar availability) as of 2026-09-22. The 28-SOIC variant is the most commonly stocked package option; the 28-PDIP variant (PIC16LC642-04/P) is recommended for development and prototyping use, while -04/SO is intended for high-volume surface-mount production.
What is a drop-in replacement for PIC16LC642-04/SO?
Drop-in replacements for PIC16LC642-04/SO in the same 28-SOIC package include PIC16LC642T-04/SO (reel-packaging variant), PIC16LC642-04I/SO (industrial temperature grade, same die), and PIC16C642-04/SO (5V-only variant, slightly higher Vmin). For modern replacements requiring flash memory, the PIC16F882-I/SO provides a flash-based drop-in upgrade path but requires firmware recompilation.
How does PIC16LC642-04/SO compare to PIC16F882-I/SO?
The PIC16LC642-04/SO is an OTP-memory device with 4 MHz maximum clock and 3.0V minimum supply, while the PIC16F882-I/SO is a flash-memory device with 20 MHz maximum clock and 2.0V minimum supply. Both share the 28-pin SOIC footprint, but engineers migrating from OTP to flash should validate that all 22 I/O pin assignments, oscillator mode, and code-encryption settings are compatible across the two parts.
When should I choose PIC16LC642-04/SO over a flash-MCU?
Choose the PIC16LC642-04/SO when your firmware is fully stable and you want the lowest cost per unit in high-volume production, when the application does not require firmware updates in the field, or when you need the deterministic OTP behavior for compliance (medical, automotive sub-systems). For prototypes and small-to-medium volumes, a flash-based MCU such as PIC16F882-I/SO is preferable for in-circuit reprogramming.
Where can I download the PIC16LC642-04/SO datasheet PDF?
The PIC16LC642-04/SO datasheet is available as PDF download from the official Microchip Technology website at ww1.microchip.com/downloads/en/DeviceDoc/30244D.pdf. Datasheet mirrors and parametric summaries are also available via Octopart and DigChip for engineer reference, though for design validation the manufacturer-issued PDF is the authoritative source.

Engineering reference data for PIC16LC642-04/SO — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16LC642-04/SO when your firmware is fully mature and you need a low-voltage OTP MCU in a 28-SOIC surface-mount package for high-volume production. Opt for the -04I/SO variant if extended industrial temperature is needed, or the PIC16F882-I/SO if flash memory is required. The PIC16C642-04/SO is preferable only when the supply rail is guaranteed above 4.5V. For new designs where firmware may change, prefer the flash-based PIC16F882-I/SO for reprogramming flexibility.

Comparison with Alternatives

Parameter This Product PIC16LC642-04I/SO PIC16LC642T-04/SO PIC16C642-04/SO PIC16F882-I/SO PIC16F883-I/SO
Package 28-SOIC 28-SOIC - same 28-SOIC - same 28-SOIC - same 28-SOIC - same 28-SOIC - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Memory Type 7KB OTP 7KB OTP 7KB OTP 7KB OTP 3.5KB Flash 7KB Flash
Program Memory Size 7 KB 7 KB 7 KB 7 KB 3.5 KB 7 KB
Maximum Clock Speed 4 MHz 4 MHz 4 MHz 4 MHz 20 MHz 20 MHz
Supply Voltage Range 3.0 V to 5.5 V 3.0 V to 5.5 V 3.0 V to 5.5 V 4.5 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V
Number of I/O Pins 22 22 22 22 22 24
Temperature Grade Commercial Industrial Commercial Commercial Industrial Industrial

Key Differentiators

  • OTP firmware lockdown for production stability (vs PIC16F882-I/SO)
  • 22 I/O pins in 28-SOIC package (vs PIC16F883-I/SO)
  • Low-voltage LC variant (3.0V min) (vs PIC16C642-04/SO)

Design Notes

The PIC16LC642-04/SO draws approximately 2 mA active current at 5V/4 MHz and approximately 5 uA in SLEEP mode. Add a 100 nF decoupling capacitor within 5 mm of the VDD pin (pin 20) and a 10 uF bulk capacitor on the VDD rail to handle LED-drive inrush on PORTC[0..7]. A low-ESR tantalum or ceramic bulk cap is recommended when driving relay coils from PORTB. Estimated: based on datasheet typical IDD figures.

For reliable ICSP programming and debug, place 1 kohm pull-up on MCLR (pin 1) and do NOT add series capacitance to MCLR - Microchip ICSP requires the pin to be sampled in-circuit. Keep the ICSP connector accessible or accessible via test pads. Estimated: pinout per PIC16C64X datasheet pin-pack chart.

When migrating PIC16LC642 firmware to PIC16F882-I/SO, note that the FLASH variant does NOT support the same code-protection fuse bits in the same configuration words - recompile with the new XC8/MPASM header file. The configuration bits for oscillator modes (HS, XT, LP, RC) map identically between LC and F parts, but WDT and BOR settings differ by family. Always re-validate boundary conditions before production.

For mixed-signal noise immunity, separate PORTA (used for analog comparator) traces from PORTB/PORTC digital traces by at least one trace-width gap, and place the analog GND reference at pin 8 (VSS) with a star-ground connection back to the power supply. The 28-SOIC package benefits from a small copper pour beneath the IC to reduce thermal rise at higher ambient temperatures.

Compliance Information

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Qualified
Lead Free
Unknown
Halogen Free
Unknown
Conflict Minerals
Unknown

Compliance data not present in verified web data for the SOIC package variant. Microchip generally ships these PIC16C6x SKUs with full RoHS compliance under parts with 'G' suffix - verify marking on received parts.

Data verified on: 2026-09-22 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC16LC642-04/SO PIC16LC642 datasheet Microchip PIC16LC642 OTP MCU 8-bit microcontroller 28-SOIC 4MHz PIC16LC642 vs PIC16F882 PIC16LC642 industrial control PIC16LC642-04/SO buy price PIC16LC642 pinout 28-SOIC drop-in replacement for PIC16LC642 what is OTP microcontroller PIC16LC642 PIC16LC642 SOIC package lead time PIC16LC642 appliance controller MCU

Related Components & Terms

Microchip Technology PIC16LC642-04/SO PIC16LC642-04I/SO PIC16LC642T-04/SO PIC16C642-04/SO PIC16F882-I/SO PIC16F883-I/SO PIC16C6x family OTP RISC microcontroller 8-bit MCU Harvard architecture ROM SOIC 28-SOIC ICSP RA0 RB0 RC0 brown-out reset watchdog timer MCLR Modbus AEC-Q100
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
✓
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details