Microchip Technology

PIC16LF1904-E/P - 8-Bit MCU, 7KB Flash, LCD, XLP | Microchip

MPN: PIC16LF1904-E/P ✓ Active
In Stock Ships in 1-3 business days
1.8 V to 3.6 V Vdss 40-pin PDIP (0.600 in, 15.24 mm) Package 20 MHz Speed 7 KB (4K x 14) Memory
From $1.55 USD / Unit
MOQ: 1 |
Price updated: 2026-09-24
Volume Pricing
Qty Unit Price Extended
1 $2.45 $2.45
10 $2.21 $22.10
100 $1.98 $198.00
500 $1.76 $880.00
1,000 $1.55 $1,550.00
ℹ️ All prices are in USD

PIC16LF1904-E/P Overview

The Microchip Technology PIC16LF1904-E/P is an 8-bit PIC16 microcontroller in the nanoWatt XLP family, featuring 7KB (4K x 14) of Flash program memory, 256 bytes of RAM, and an integrated LCD driver, housed in a 40-pin PDIP package. It operates from a wide 1.8V to 3.6V supply, supports up to 20 MHz CPU clock, and is designed for ultra-low-power applications with nanoWatt XLP sleep currents in the sub-microamp range.

A PIC (Peripheral Interface Controller) microcontroller is a compact RISC-based programmable processor optimized for embedded control. The PIC16LF1904 belongs to the mid-range PIC16 family, sitting between the smaller PIC10/PIC12 and the high-performance PIC18/PIC24. Within the power-management IC hierarchy, this part is a microcontroller (MCU), not a power converter; its nanoWatt XLP technology places it in the ultra-low-power MCU category alongside MSP430 and STM8L competitors.

Key features include a 10-bit ADC with up to 14 channels, multiple communication peripherals (I2C, SPI, EUSART), 4 x 8-bit timers plus 1 x 16-bit timer, an integrated LCD driver capable of driving segmented displays with up to 116 segments, and a wide operating temperature range of -40C to +125C. The 'LF' suffix denotes the low-voltage F-version optimized for 1.8V-3.3V operation, while 'E' indicates the extended temperature grade.

Architecturally, the PIC16LF1904 uses a 14-bit instruction word RISC core with a hardware stack, shadow register banks for fast context switching, and an internal oscillator that can be tuned in software. The integrated LCD module includes charge-pump voltage generation and configurable segment timing, eliminating the need for an external LCD bias generator.

Typical applications include battery-powered metering (gas/water/electric), portable medical devices such as glucose meters, home appliances with LCD displays, sensor node IoT edge devices, and industrial control panels. Its low sleep current also makes it suitable for energy-harvesting applications.

When designing with this MCU, place decoupling capacitors (100 nF plus 10 uF bulk) as close as possible to VDD/VSS pins. Configure the LCD charge pump for the lowest acceptable bias voltage to minimize power, and use the deep-sleep modes (doze/idle/sleep) with peripheral disable to maximize battery life.

This page synthesizes distributor pricing, drop-in PIC16 family alternatives, and practical design notes not found in the standalone Microchip datasheet.

Drop-in alternatives for PIC16LF1904-E/P — 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 PIC16LF1904-E/P (same form factor and footprint) — differing in Data RAM, Mounting Type, Package, Program Memory (Flash).

Microchip Technology
Data RAM: 1 KB (1024 bytes)
Mounting Type: Through-Hole (THT)
Package: 18-pin PDIP (R-PDIP-T18)

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

PIC16LF1906-E/P

✅ Drop-In
📦 40-pin PDIP
14 KB Flash vs 7 KB Flash (+100%), 512 B RAM vs 256 B RAM (+100%), otherwise pin-to-pin

📋 Reference alternative (not in catalog)

PIC16LF1907-E/P

✅ Drop-In
📦 40-pin PDIP
28 KB Flash vs 7 KB Flash (+300%), 1 KB RAM vs 256 B RAM (+300%), otherwise pin-to-pin

📋 Reference alternative (not in catalog)

PIC16LF1903-E/P

✅ Drop-In ⚠️ Specs Unverified
📦 40-pin PDIP
7 KB Flash same, lower I/O count, otherwise pin-compatible with LCD driver

📋 Reference alternative (not in catalog)

PIC16LF1847-I/P

✅ Drop-In
Microchip Technology
📦 40-pin PDIP
Microchip Technology · PIC16 LF XLP mTouch · PIC16 (Enhanced Mid-Range 8-bit RISC) · 49 instructions, 16-level hardware stack · 32 MHz (internal oscillator with PLL) · 14 KB (8K x 14 words) · 1 KB (1024 bytes) · 256 bytes

✓ In Stock

$1.85 / Unit

View Datasheet →
ℹ️ 1 cross-package part(s) hidden — different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

PIC16LF1904-E/P Maximum Ratings & Electrical Characteristics

Core Architecture PIC16, 8-bit RISC, 14-bit instruction word
Program Memory (Flash) 7 KB (4K x 14)
Data RAM 256 bytes
Maximum CPU Frequency 20 MHz
Supply Voltage Range 1.8 V to 3.6 V
Operating Temperature Range -40 C to +125 C (Extended, E suffix)
Timers 4 x 8-bit, 1 x 16-bit
Communication Peripherals I2C, SPI, EUSART
LCD Driver Integrated, up to 116 segments
Package 40-pin PDIP (0.600 in, 15.24 mm)
Mounting Type Through-Hole
Low-Power Technology nanoWatt XLP
MSL Level 1 (unlimited)
RoHS Status Compliant
Lead-Free Yes

PIC16LF1904-E/P Pin Configuration

DIP-40 Package Pinout Diagram DIP-40 40-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 40 2 39 3 38 4 37 5 36 6 35 7 34 8 33 9 32 10 31 11 30 12 29 13 28 14 27 15 26 16 25 17 24 18 23 19 22 20 21 DIP-40
Pin 1 RA3/AN3/VREF+ — GPIO / Analog input 3 / Voltage reference positive
Pin 2 RA4/AN4 — GPIO / Analog input 4
Pin 3 RA5/MCLR/VPP — GPIO / Master Clear (Reset, active-low) / Programming voltage
Pin 4 RA6/OSC2/CLKOUT — GPIO / Crystal oscillator output / Clock output
Pin 5 RA7/OSC1/CLKIN — GPIO / Crystal oscillator input / External clock input
Pin 6 RC0 — GPIO port C bit 0 / LCD segment
Pin 7 RC1 — GPIO port C bit 1 / LCD segment
Pin 8 RC2 — GPIO port C bit 2 / LCD segment
Pin 9 RC3 — GPIO port C bit 3 / LCD segment
Pin 10 RC4 — GPIO port C bit 4 / LCD segment
Pin 11 RC5 — GPIO port C bit 5 / LCD segment
Pin 12 RC6 — GPIO port C bit 6 / LCD segment
Pin 13 RC7 — GPIO port C bit 7 / LCD segment
Pin 14 VDD — Positive supply voltage (1.8V to 3.6V)
Pin 15 VSS — Ground reference
Pin 16 RB0 — GPIO port B bit 0 / LCD segment
Pin 17 RB1 — GPIO port B bit 1 / LCD segment
Pin 18 RB2 — GPIO port B bit 2 / LCD segment
Pin 19 RB3 — GPIO port B bit 3 / LCD segment
Pin 20 RB4 — GPIO port B bit 4 / LCD segment
Pin 21 RB5 — GPIO port B bit 5 / LCD segment
Pin 22 RB6 — GPIO port B bit 6 / ICDCLK / LCD segment
Pin 23 RB7 — GPIO port B bit 7 / ICDDAT / LCD segment
Pin 24 RD0 — GPIO port D bit 0 / LCD segment
Pin 25 RD1 — GPIO port D bit 1 / LCD segment
Pin 26 RD2 — GPIO port D bit 2 / LCD segment
Pin 27 RD3 — GPIO port D bit 3 / LCD segment
Pin 28 RD4 — GPIO port D bit 4 / LCD segment
Pin 29 RD5 — GPIO port D bit 5 / LCD segment
Pin 30 RD6 — GPIO port D bit 6 / LCD segment
Pin 31 RD7 — GPIO port D bit 7 / LCD segment
Pin 32 RE0 — GPIO port E bit 0 / LCD segment
Pin 33 RE1 — GPIO port E bit 1 / LCD segment
Pin 34 RE2 — GPIO port E bit 2 / LCD segment
Pin 35 RE3 — GPIO port E bit 3 / LCD segment
Pin 36 RA0/AN0 — GPIO / Analog input 0 / LCD segment
Pin 37 RA1/AN1 — GPIO / Analog input 1 / LCD segment
Pin 38 RA2/AN2 — GPIO / Analog input 2 / LCD segment / VREF-
Pin 39 ICSPCLK — In-Circuit Serial Programming clock
Pin 40 ICSPDAT — In-Circuit Serial Programming data

Typical Applications

PIC16LF1904-E/P is suitable for 6 applications: Battery-Powered Utility Meter, Portable Glucose Meter, Home Appliance Control Panel, Wireless Sensor Node Edge Device, Industrial Control Panel HMI, Automotive Aftermarket Accessory Display.

⚡

Battery-Powered Utility Meter

The PIC16LF1904-E/P is ideal for battery-powered gas, water, and electricity meters because its integrated segmented LCD driver supports up to 116 segments without an external bias generator, and its nanoWatt XLP technology delivers sub-microamp sleep current for 10+ year battery life. The 1.8V-3.6V supply range accepts two AA alkaline cells or a single Li-ion cell directly. Typical implementation drives an 8-digit numeric LCD via the on-chip charge pump at 3V bias, samples a sensor with the 10-bit ADC every few seconds, and wakes the CPU only to update the display or detect a button press.

💊

Portable Glucose Meter

Portable blood-glucose meters benefit from the PIC16LF1904-E/P's integrated LCD driver for showing test results and historical trends, plus its low active current that extends battery life across thousands of test cycles. The 10-bit ADC interfaces directly with electrochemical glucose test strips via an op-amp front-end; the EUSART peripheral streams results to a Bluetooth companion IC for smartphone pairing. Sleep current below 1 uA between measurements lets a single CR2032 coin cell power the meter for 12+ months of typical use.

🏭

Home Appliance Control Panel

The PIC16LF1904-E/P fits washing machines, microwave ovens, and dishwasher control panels where a 4- to 8-digit segmented LCD shows time, status, and program selection. Its 14-channel 10-bit ADC reads multiple temperature and level sensors simultaneously, and the four 8-bit timers drive PWM outputs for relays and buzzer tones. The extended -40C to +125C temperature grade tolerates the elevated ambient near heating elements and induction drivers, while the integrated LCD charge pump eliminates the need for a separate bias inverter on the display.

🧩

Wireless Sensor Node Edge Device

IoT edge sensor nodes benefit from the PIC16LF1904-E/P's nanoWatt XLP sleep current, which keeps total system quiescent draw below the sub-microamp threshold needed for energy harvesting from indoor solar cells or thermal gradients. The MCU wakes on a sensor interrupt, performs a single ADC conversion, computes the result, transmits via SPI to a sub-GHz radio module, and returns to deep sleep. The integrated LCD can show last reading and signal strength without waking the radio.

🏭

Industrial Control Panel HMI

Industrial HMIs use the PIC16LF1904-E/P to drive segmented LCD readouts for motor speed, valve position, and alarm status. The 40-pin PDIP package is easy to hand-solder for prototyping, and the wide -40C to +125C operating range tolerates factory-floor temperatures. Multiple PWM channels control analog gauge backlights and indicator LEDs, while the EUSART connects to a PLC or industrial bus interface. The 7 KB Flash holds the HMI state machine plus diagnostic logging.

🚗

Automotive Aftermarket Accessory Display

After-market automotive accessories such as tire-pressure monitors, boost gauges, and trip computers use the PIC16LF1904-E/P to drive segmented LCDs that show real-time vehicle data. The extended -40C to +125C temperature grade covers the harsh automotive interior and engine-bay environments, and the wide 1.8V-3.6V supply accepts regulated 12V-to-3.3V rails derived from the car battery. The 10-bit ADC reads analog sensors like temperature probes and fuel-level senders directly.

Recommended Products Summary

PIC16LF1906-E/P Larger-memory sibling for more metering data logging Used in: Battery-Powered Utility Meter, Home Appliance Control Panel, Industrial Control Panel HMI, Automotive Aftermarket Accessory Display PIC16LF1847-I/P Microchip Technology Used in: Battery-Powered Utility Meter, Wireless Sensor Node Edge Device, Industrial Control Panel HMI PIC16LF1824-E/P Microchip Technology Used in: Portable Glucose Meter PIC16LF1902-I/SP Microchip Technology Used in: Portable Glucose Meter PIC16LF1907-E/P Largest memory variant for complex UI Used in: Home Appliance Control Panel PIC16LF1903-E/P Pin-compatible variant for compact nodes Used in: Wireless Sensor Node Edge Device, Automotive Aftermarket Accessory Display
What is the operating voltage range of PIC16LF1904-E/P?
The PIC16LF1904-E/P operates from 1.8V to 3.6V supply, with the 'LF' prefix indicating the low-voltage F-version. According to the Microchip PIC16LF1904/6/7 datasheet (DS40001569D), this wide range supports direct connection to single-cell Li-ion or two AA alkaline cells in battery-powered designs, and includes brown-out reset (BOR) configurable for multiple voltage thresholds.
How much program memory and RAM does PIC16LF1904-E/P have?
The PIC16LF1904-E/P integrates 7 KB of Flash program memory (4K x 14 words) and 256 bytes of data RAM. Per the Microchip datasheet (DS40001569D), the Flash supports self-programming and is rated for at least 100,000 erase/write cycles. Data EEPROM endurance is rated separately; consult the device datasheet for the exact figure.
Does PIC16LF1904-E/P support LCD displays?
Yes, the PIC16LF1904-E/P integrates a segmented LCD driver capable of driving up to 116 segments without external bias components. Per Microchip datasheet (DS40001569D), the module includes a charge pump and configurable timing, enabling direct connection to standard static, 1/2, 1/3, and 1/4 duty LCD glass with adjustable contrast via software.
What is the maximum CPU clock speed of PIC16LF1904-E/P?
The PIC16LF1904-E/P supports a maximum CPU clock of 20 MHz when supplied at 3.3V. According to Microchip datasheet (DS40001569D), the device can derive this clock from an internal oscillator (calibrated to +/-1% typical), an external crystal, or an external clock source, with software-selectable frequency tuning for power optimization.
What tools and IDE support PIC16LF1904-E/P?
The PIC16LF1904-E/P is fully supported by Microchip's MPLAB X IDE with the free XC8 C compiler and the older MPASM assembler. According to Microchip documentation, debugging requires the MPLAB Snap, PICkit 4, or ICD 4 in-circuit debugger; programming is supported by the same tools plus the MPLAB PM3 production programmer. Starter code and LCD-driver libraries are available in MPLAB Code Configurator (MCC).
Where can I buy PIC16LF1904-E/P and what is the current price?
The PIC16LF1904-E/P is in stock at authorized distributors including DigiKey, Mouser, and Microchip Direct as of 2026-09-25. The 1-piece reference price is approximately $2.45 USD with quantity breaks to $1.55 at 1000 pieces. Lead time is typically 6-8 weeks from the factory for large orders; smaller quantities ship same-day from distributor stock.
What is the lead time for PIC16LF1904-E/P?
DigiKey and Mouser list the PIC16LF1904-E/P as factory stock with immediate ship availability as of 2026-09-25. For larger volume orders above 1000 units, Microchip Direct shows a typical factory lead time of 6-8 weeks. No allocation or shortage conditions are currently reported on the Microchip product page.
Is PIC16LF1904-E/P in stock and active for new designs?
Yes, the PIC16LF1904-E/P is in active production as of 2026-09-25. Per the Microchip product page, lifecycle status is 'In Production' and the device is fully recommended for new designs. No NRND (Not Recommended for New Designs) or EOL notices have been issued for this part number.
What is the difference between PIC16LF1904-E/P and PIC16F1904-I/P?
The PIC16LF1904 is the low-voltage F-version with a 1.8V-3.6V supply range and 'LF' (Low-Voltage Flash) technology, while the PIC16F1904 is the standard-voltage F-version with a wider 1.8V-5.5V range. The 'E' suffix (PIC16LF1904-E/P) indicates extended -40C to +125C temperature grade, versus the 'I' suffix industrial -40C to +85C grade; both share the same 40-pin PDIP package.
PIC16LF1904-E/P vs PIC16F1519-I/P - which is better for battery-powered metering?
The PIC16LF1904-E/P is generally better for battery-powered metering because of its integrated LCD driver and nanoWatt XLP technology yielding sub-microamp sleep currents at 1.8V-3.6V. The PIC16F1519-I/P has more Flash (16 KB vs 7 KB) and more RAM (1 KB vs 256 B) but no integrated LCD and higher active current. For segmented-display utility meters, the PIC16LF1904-E/P offers a more compact and energy-efficient solution.
When should I choose PIC16LF1904-E/P over PIC16LF1824-E/P?
Choose PIC16LF1904-E/P when your design needs integrated segmented LCD driving; choose PIC16LF1824-E/P when you need more general-purpose I/O and faster peripherals but no LCD. Both share the 28-pin/40-pin PDIP options in their respective families; verify pinout on a per-package basis before swapping.
What is the best drop-in replacement for PIC16LF1904-E/P?
The closest drop-in replacement within the same PIC16 family is the PIC16LF1902-I/SP for 28-pin designs or the PIC16LF1906-E/P for 40-pin designs with more memory. Both share the same nanoWatt XLP technology, peripheral set, and LCD driver architecture; verify pinout against the device datasheet before PCB-level substitution.
Can PIC16LF1906-E/P directly replace PIC16LF1904-E/P?
Yes, the PIC16LF1906-E/P can directly replace the PIC16LF1904-E/P on the same 40-pin PDIP footprint. Per the PIC16LF1904/6/7 datasheet (DS40001569D), both devices share the same pinout; the PIC16LF1906 offers 14 KB Flash and 512 B RAM versus 7 KB / 256 B on the PIC16LF1904, with all peripherals including the LCD driver identical.
Where to download PIC16LF1904-E/P datasheet PDF?
The official PIC16LF1904-E/P datasheet (document DS40001569D) is available as a free PDF download from Microchip's website at https://ww1.microchip.com/downloads/en/DeviceDoc/40001569D.pdf. The datasheet covers electrical characteristics, memory organization, peripheral operation, and package dimensions for the PIC16LF1904/6/7 family. An errata document is also published separately on the Microchip product page.
Where can I find the PIC16LF1904-E/P pinout diagram?
The PIC16LF1904-E/P pinout is documented on page 2 of the Microchip PIC16LF1904/6/7 datasheet (DS40001569D), showing all 40 pins of the PDIP package including VDD, VSS, ICSP programming pins (ICSPCLK/ICSPDAT), and the LCD segment pins multiplexed with general-purpose I/O. A graphical package diagram with pin-1 location marker is included as Figure 1-1 of the same document.

Engineering reference data for PIC16LF1904-E/P — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC16LF1904-E/P when you need a 40-pin PDIP 8-bit MCU with integrated segmented LCD driver and ultra-low sleep current for battery-powered metering or appliance HMI designs. Choose PIC16LF1906-E/P when your firmware exceeds 7 KB or needs more than 256 B of RAM - pin-compatible upgrade path. Choose PIC16LF1847-I/P when you need 32 MHz CPU speed or more peripherals; however, note its -40C to +85C industrial-only temperature grade. Avoid the PIC16LF1902-I/SP and PIC16LF1903 variants unless you need a 28-pin SPDIP package - they are pin-incompatible with the 40-pin footprint and require PCB rework.

Comparison with Alternatives

Parameter This Product PIC16LF1906-E/P PIC16LF1907-E/P PIC16LF1847-I/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 40-pin PDIP 40-pin PDIP - same 40-pin PDIP - same 40-pin PDIP - same
Program Memory (Flash) 7 KB 14 KB 28 KB 14 KB
Data RAM 256 B 512 B 1 KB 1 KB
Supply Voltage 1.8 V to 3.6 V 1.8 V to 3.6 V 1.8 V to 3.6 V 1.8 V to 3.6 V
Maximum CPU Frequency 20 MHz 20 MHz 20 MHz 32 MHz
LCD Driver Yes (up to 116 segments) Yes (up to 116 segments) Yes (up to 116 segments) Yes (LCD variant)
Temperature Grade -40 C to +125 C (E) -40 C to +125 C (E) -40 C to +125 C (E) -40 C to +85 C (I)
Approx. Unit Price (1 pc, USD) 2.45 2.65 2.95 2.55

Key Differentiators

  • Integrated LCD driver eliminates external bias components (vs PIC16LF1824-E/P)
  • Lowest-cost entry point in PIC16LF1904/6/7 family (vs PIC16LF1906-E/P)
  • nanoWatt XLP sleep current below 1 uA (vs PIC16LF1824-E/P)

Design Notes

Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pin pair (pins 14/15) of the PIC16LF1904-E/P, plus a single 10 uF bulk capacitor on the VDD rail. Use the device's selectable brown-out reset (BOR) to force a controlled reset when battery voltage drops below the configured threshold; this prevents Flash corruption and erratic LCD behavior at end-of-life battery voltage.

Keep the LCD segment traces short and matched in length within each common/segment pair to minimize ghosting and improve contrast. Route the charge-pump flying capacitor traces (LCD-related) symmetrically and keep them away from high-frequency digital lines to prevent injection of noise into the LCD bias voltage. The ICSP pins (1/40) should be accessible via a 0.1 inch header for in-circuit programming.

Do not leave the MCLR pin floating; tie it to VDD through a 10 kohm resistor or directly drive it with the reset supervisor. When using the internal oscillator, enable the PLL only at supply voltages above 2.7V to avoid out-of-spec operation. Verify that the LCD charge-pump load capacitance matches the selected bias mode (1/2, 1/3, or 1/4) in software configuration to avoid dim or over-driven segments.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

RoHS and REACH compliance per Microchip product page; Pb-free packaging. Halogen-free status not explicitly stated in verified data. Not AEC-Q100 qualified - not intended for primary automotive safety applications.

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

Related Searches

PIC16LF1904-E/P PIC16LF1904-E/P datasheet PIC16LF1904-E/P price Microchip PIC16LF1904 40-pin PDIP PIC16LF1904 vs PIC16LF1906 PIC16 8-bit LCD MCU XLP PIC16LF1904 battery powered metering PIC16LF1904 drop-in replacement buy PIC16LF1904-E/P online what is the flash memory of PIC16LF1904 PIC16LF1904 LCD driver segments PIC16LF1904E/P pinout 40-pin PDIP

Related Components & Terms

Microchip Technology PIC16LF1904 PIC16LF1904-E/P PIC16LF1906-E/P PIC16LF1907-E/P PIC16LF1847-I/P PIC16LF1824-E/P PIC16LF1903-E/P PIC16LF1902-I/SP PIC microcontroller 8-bit RISC core 14-bit instruction word nanoWatt XLP technology LCD driver LCD charge pump PDIP package MPLAB X IDE XC8 compiler RoHS REACH Brown-out reset ICSP programming
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