Microchip Technology

PIC16HV540-04I/P - 8-Bit 4MHz OTP MCU w/ HV Reset | Microchip

MPN: PIC16HV540-04I/P ✓ Active
In Stock Ships in 1-3 business days
3.5 V to 15 V (with on-chip HV regulator) Vdss PDIP-18 (through-hole) Package 4 MHz Speed OTP (One-Time Programmable) Memory
From $1.85 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $3.1 $3.10
10 $2.78 $27.80
100 $2.45 $245.00
500 $2.12 $1,060.00
1,000 $1.85 $1,850.00
ℹ️ All prices are in USD

PIC16HV540-04I/P Overview

The Microchip Technology PIC16HV540-04I/P is a PIC16 family 8-bit CMOS one-time-programmable (OTP) microcontroller with an integrated high-voltage (HV) reset generator, delivered in an 18-pin PDIP through-hole package and rated for the industrial temperature range (-40C to +85C). It executes instructions in 200 ns at 4 MHz, provides 768 bytes (512 x 12) of OTP program memory, 25 bytes of data RAM, and 12 bidirectional I/O pins.

A microcontroller (MCU) is a single-chip computer that integrates a CPU, memory, and programmable I/O peripherals. The PIC16HV540 belongs to the RISC (Reduced Instruction Set Computer) subfamily of 8-bit microcontrollers, sitting beneath the broader category of embedded controllers and above general-purpose microprocessors in the computing hierarchy. Its 12-bit-wide instruction word and 33 single-word instruction set yield approximately 2:1 code compression versus competing 8-bit CISC architectures, simplifying firmware development.

Key features of this -04I/P variant include a 4 MHz maximum clock, an on-chip shunt voltage regulator that allows direct operation from 5 V to 12 V supplies without an external regulator, a watchdog timer (WDT), power-on reset (POR), and brown-out detect (BOD). The /P suffix indicates a plastic PDIP-18 package; the -04 speed grade limits the oscillator to 4 MHz; the I suffix marks the industrial temperature grade. The integrated HV reset eliminates the need for an external reset supervisor, reducing BOM count in cost-sensitive designs.

Typical applications include low-cost battery chargers, smoke detectors, LED controllers, simple sensor interfaces, and replacement of discrete logic in appliances and toys. The wide supply range (3.5 V to 15 V with internal regulator) suits unregulated or battery-fed systems. Designers should ensure OTP programming is performed before final PCB assembly because OTP parts cannot be re-programmed in-circuit once sealed.

Drop-in alternatives for PIC16HV540-04I/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 PIC16HV540-04I/P (same form factor and footprint) — differing in Package, Program Memory Size, Program Memory Type, Core Architecture, Mounting Type.

Microchip Technology
Package: 18-pin PDIP (through-hole)
Program Memory Size: 768 bytes (512 x 12 words)
Program Memory Type: OTP EPROM
Microchip Technology
Package: 18-pin PDIP (through-hole)
Program Memory Size: 768 bytes (512 x 12 words)
Program Memory Type: EPROM (OTP - One-Time Programmable)
Microchip Technology
Package: 18-pin SOIC (SO)
Program Memory Size: 768B (512 x 12)
Program Memory Type: OTP (One-Time Programmable EPROM)
Microchip Technology
Package: 18-pin PDIP (DIP-18, 0.300 inch)
Program Memory Size: 768 B (512 x 12 words)
Program Memory Type: OTP EPROM
Microchip Technology
Package: 18-pin CERDIP with UV window (JW)
Program Memory Size: 768 bytes (512 x 12 bits)
Program Memory Type: EPROM (UV-erasable)

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

PIC16HV540-04/P

✅ Drop-In
📦 PDIP-18
commercial 0C to +70C vs industrial -40C to +85C, same die/package

📋 Reference alternative (not in catalog)

PIC16HV540/JW

✅ Drop-In
Microchip Technology
📦 PDIP-18 (windowed)
PIC 16C - 8-bit · EPROM (UV-erasable) · 768 bytes (512 x 12 bits) · 25 bytes · 20 MHz · 200 ns (single cycle, 4 clock periods) · 33 single-word instructions, 12-bit opcode · Yes - high-voltage shunt regulator, 3.5 V to 15 V input

✓ In Stock

$6.9 / Unit

View Datasheet →

PIC16HV540-04I/SO

✅ Drop-In
Microchip Technology
📦 SOIC-18
Enhanced PIC16C54 (8-bit RISC) · OTP (One-Time Programmable EPROM) · 768B (512 x 12) · 25 B · 4 MHz · 200 ns · 33 single-word · 12

✓ In Stock

$1.78 / Unit

View Datasheet →

PIC16HV540-04/P301

✅ Drop-In
📦 PDIP-18
commercial temp grade, factory-programmed -04 speed, same die

📋 Reference alternative (not in catalog)

PIC16C54C-04/P

✅ Drop-In
Microchip Technology
📦 PDIP-18
8-bit RISC (PIC16C5x family) · EPROM (OTP - One-Time Programmable) · 768 bytes (512 x 12 words) · 25 bytes · 4 MHz (-04 speed grade) · 4.5 V to 5.5 V · 12 bidirectional · 33 single-word instructions

✓ In Stock

$1.71 / Unit

View Datasheet →

PIC16C54A-04/P

✅ Drop-In
Microchip Technology
📦 PDIP-18
8-bit PIC RISC · Harvard RISC, 33 single-word instructions · OTP EPROM · 768 bytes (512 x 12 words) · 25 bytes · None · 4 MHz · 1 µs at 4 MHz

✓ In Stock

$3.75 / Unit

View Datasheet →

PIC16HV540-04I/P Maximum Ratings & Electrical Characteristics

Core PIC16 (8-bit RISC)
Maximum Clock Frequency 4 MHz
Instruction Execution Time 200 ns
Program Memory Type OTP (One-Time Programmable)
Program Memory Size 768 bytes (512 x 12)
Data RAM 25 bytes
I/O Pins 12
Number of Instructions 33 single-word
Instruction Width 12 bits
Package PDIP-18 (through-hole)
Operating Voltage 3.5 V to 15 V (with on-chip HV regulator)
Operating Temperature -40C to +85C (industrial)
Speed Grade -04 (4 MHz)
On-chip Voltage Regulator Yes (high-voltage shunt regulator)
Watchdog Timer Yes
Brown-out Detect (BOD) Yes
Power-on Reset (POR) Yes

PIC16HV540-04I/P Pin Configuration

DIP-18 Package Pinout Diagram DIP-18 18-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 18 2 17 3 16 4 15 5 14 6 13 7 12 8 11 9 10 DIP-18
Pin 1 RA2 — Bidirectional I/O port A bit 2
Pin 2 RA3 — Bidirectional I/O port A bit 3
Pin 3 RA4/T0CKI — Bidirectional I/O port A bit 4 / Timer0 clock input
Pin 4 MCLR — Master clear reset input
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Bidirectional I/O port B bit 0 / External interrupt
Pin 7 RB1 — Bidirectional I/O port B bit 1
Pin 8 RB2 — Bidirectional I/O port B bit 2
Pin 9 RB3 — Bidirectional I/O port B bit 3
Pin 10 RB4 — Bidirectional I/O port B bit 4
Pin 11 RB5 — Bidirectional I/O port B bit 5
Pin 12 RB6 — Bidirectional I/O port B bit 6
Pin 13 RB7 — Bidirectional I/O port B bit 7
Pin 14 VDD — Positive supply (5 V regulated from internal HV regulator)
Pin 15 OSC2/CLKOUT — Oscillator output / clock out
Pin 16 OSC1/CLKIN — Oscillator input / external clock in
Pin 17 RA0 — Bidirectional I/O port A bit 0
Pin 18 RA1 — Bidirectional I/O port A bit 1

Typical Applications

PIC16HV540-04I/P is suitable for 7 applications: Battery-Powered Sensor Nodes, Smoke and Fire Detectors, LED Lighting Controllers, Small Appliance Control Boards, Replacement of Discrete Logic, Toys and Educational Electronics, Industrial Timer and Counter Modules.

🔋

Battery-Powered Sensor Nodes

The PIC16HV540-04I/P's integrated HV shunt regulator accepts 3.5 V to 15 V battery supplies directly without external regulation, simplifying battery-powered sensor designs. With 25 bytes RAM, 12 I/O pins, and a 200 ns instruction cycle at 4 MHz, it can sample sensors, run wake-up logic, and transmit data via I/O bit-banging. The wide supply range suits 9 V battery or multi-cell alkaline stacks, reducing BOM cost and board area.

🔥

Smoke and Fire Detectors

The PIC16HV540-04I/P is well-suited for ionization-type smoke detectors where the integrated HV regulator simplifies the 9 V battery interface. The brown-out detect and watchdog timer ensure reliable operation across the battery discharge curve, while 12 I/O pins support the ionization chamber input, piezo buzzer driver, and LED indicators. Industrial temperature range supports garage and basement installations.

💡

LED Lighting Controllers

For decorative and architectural LED controllers, the PIC16HV540-04I/P's 12 I/O pins can drive multiple LED channels via direct connection or simple transistor drivers. The OTP memory and integrated HV regulator suit cost-driven consumer products where firmware is finalized at production. Its 4 MHz speed easily handles PWM dimming, color cycling, and simple pattern algorithms.

🏠

Small Appliance Control Boards

In coffee makers, toasters, and simple kitchen appliances, the PIC16HV540-04I/P replaces discrete logic with a programmable controller. Its 18-pin PDIP package is friendly to hand-soldered or low-volume production runs. The integrated HV regulator simplifies connection to rectified mains-derived DC supplies, while the watchdog timer prevents hang states in unattended operation.

🔧

Replacement of Discrete Logic

Designers migrating from 74HC-series glue logic to a programmable controller can drop in the PIC16HV540-04I/P and consolidate multiple gates, timers, and state machines into firmware. The 33 single-word instructions are easy to learn, and the OTP memory is programmed once and locked, protecting intellectual property. Industrial temperature range suits outdoor enclosures and automotive under-hood modules.

🎮

Toys and Educational Electronics

The PIC16HV540-04I/P is widely adopted in cost-sensitive educational and toy products where OTP memory and integrated HV regulator reduce per-unit cost. With 12 I/O pins, designers can drive motors, LEDs, speakers, and simple user inputs. The 4 MHz clock and RISC architecture provide deterministic response time, important for interactive play patterns.

🏭

Industrial Timer and Counter Modules

In industrial timer modules and pulse counters, the PIC16HV540-04I/P's watchdog timer, brown-out detect, and wide supply range support reliable 24/7 operation in factory environments. The 12-bit instruction set enables 16-bit internal counters via software, and the 4 MHz clock provides 1 microsecond resolution for timing critical events. Industrial temperature rating handles unheated enclosures.

Recommended Products Summary

PIC16HV540/JW Microchip Technology Used in: Battery-Powered Sensor Nodes, Replacement of Discrete Logic PIC16F54-I/P flash-based upgrade alternative Used in: Battery-Powered Sensor Nodes PIC16HV540-04/P commercial-grade variant for indoor units Used in: Smoke and Fire Detectors, Toys and Educational Electronics PIC16C54C-04/P Microchip Technology Used in: Smoke and Fire Detectors PIC16HV540-04I/SO Microchip Technology Used in: LED Lighting Controllers, Industrial Timer and Counter Modules PIC16F84A-I/P flash-based alternative with EEPROM Used in: LED Lighting Controllers PIC16HV540-04/P301 factory-programmed variant for high-volume appliance runs Used in: Small Appliance Control Boards PIC12F508-I/P Microchip Technology Used in: Small Appliance Control Boards PIC16F57-I/P Microchip Technology Used in: Replacement of Discrete Logic PIC10F200-I/P Microchip Technology Used in: Toys and Educational Electronics PIC16F877A-I/P higher-end upgrade with more memory and peripherals Used in: Industrial Timer and Counter Modules
What is the maximum clock frequency of PIC16HV540-04I/P?
The PIC16HV540-04I/P has a maximum clock frequency of 4 MHz, determined by the -04 speed grade suffix. According to the Microchip datasheet, the 4 MHz oscillator yields a 200 ns instruction cycle, supporting 33 single-word instructions. For higher performance, the -20 speed grade variant supports 20 MHz operation with 200 ns instruction cycles as well.
How much program memory does PIC16HV540-04I/P have?
The PIC16HV540-04I/P contains 768 bytes (512 x 12) of OTP program memory. The 12-bit-wide instruction word is unique to the PIC16C/16HV family and provides roughly 2:1 code compression versus 8-bit instruction CISC architectures. OTP memory can be written once and is suited to volume production.
Does PIC16HV540-04I/P include a built-in voltage regulator?
Yes. The PIC16HV540 integrates an on-chip high-voltage shunt regulator that allows direct operation from supplies between 5 V and 12 V (and up to 15 V maximum) without an external regulator. According to the Microchip datasheet, this eliminates the need for an external 7805-style regulator in battery or unregulated-bus designs, simplifying the BOM.
What is the difference between PIC16HV540 and PIC16C54?
The PIC16HV540 is an enhanced PIC16C54 with the addition of an on-chip high-voltage shunt regulator, allowing operation directly from 3.5 V to 15 V supplies. The PIC16C54 requires an external regulated 5 V supply. Both share the same 33-instruction 12-bit RISC architecture and 18-pin pinout, making the HV540 a drop-in upgrade.
Where can I download the PIC16HV540-04I/P datasheet PDF?
The PIC16HV540 datasheet is freely available from Microchip at the official product page. The document is the Microchip PIC16HV540 datasheet and contains full electrical specifications, instruction set details, and programming information for all suffixes including -04I/P.
What is the pinout of PIC16HV540-04I/P?
The PIC16HV540-04I/P uses a standard 18-pin PDIP pinout with RA0-RA3, RB0-RB7 (12 I/O total), VDD, VSS, OSC1, OSC2, MCLR, and T0CKI. According to the Microchip datasheet, the pin numbering follows the standard DIP-18 convention with pin 1 at the top-left when the notch is oriented upward.
What is the operating temperature range of PIC16HV540-04I/P?
The PIC16HV540-04I/P operates from -40C to +85C, the industrial temperature grade. The I suffix in the part number designates industrial range. For commercial-grade applications (0C to +70C) the non-I variant PIC16HV540-04/P may be substituted; both share the same electrical characteristics.
Is PIC16HV540-04I/P suitable for new designs?
The PIC16HV540 remains in production per the Microchip product page, but for new designs Microchip recommends newer PIC16F1xxx flash-based families that offer in-circuit reprogramming. The PIC16HV540-04I/P is best reserved for cost-sensitive production runs where the OTP memory and integrated HV regulator are advantages.
Can PIC16HV540-04I/P be used in battery-powered applications?
Yes. The integrated high-voltage shunt regulator and low power consumption make the PIC16HV540-04I/P well-suited for battery-powered designs. According to the datasheet, the wide supply range (3.5 V to 15 V) supports direct connection to 9 V batteries or unregulated supplies without external regulation, reducing system cost.
What is the price of PIC16HV540-04I/P?
The PIC16HV540-04I/P is priced around $3.10 per unit at qty 1 and drops to approximately $1.85 per unit at qty 1000, as of 2026-09-22. Volume pricing through authorized distributors like Mouser and DigiKey is typically lower; check current stock for accurate quotes.
Where to buy PIC16HV540-04I/P online?
The PIC16HV540-04I/P can be purchased from authorized distributors including Mouser, DigiKey, and Microchip Direct. Lead time for in-stock units is typically same-day shipping. For larger volumes, contact Microchip or franchised distributors for quotes; some third-party brokers also stock this legacy MCU.
Is PIC16HV540-04I/P in stock at distributors?
According to distributor listings, the PIC16HV540-04I/P is generally in stock at major authorized distributors as of 2026-09-22. Some specialty variants (such as /JW windowed or /SO SOIC packages) may have longer lead times. Always verify real-time stock on distributor websites before ordering.
What is the best drop-in replacement for PIC16HV540-04I/P?
The best drop-in replacement for PIC16HV540-04I/P is the non-I commercial variant PIC16HV540-04/P (same 18-pin PDIP, same electricals, 0C to +70C). For an upgrade, consider PIC16F54-I/P which offers flash memory but is not pin-compatible due to different programming pin assignments.
What is the difference between PIC16HV540-04I/P and PIC16HV540-04I/SO?
The PIC16HV540-04I/P comes in a PDIP-18 through-hole package, while the PIC16HV540-04I/SO uses an SOIC-18 surface-mount package. According to the datasheet, both variants share identical electrical specifications and die; only the package and mounting style differ. SOIC variants typically carry an additional 'T' for tape-and-reel packaging.
What are the key specifications of PIC16HV540-04I/P that engineers should know?
The PIC16HV540-04I/P combines an 8-bit PIC16 RISC core running at 4 MHz (200 ns instruction cycle) with 768 bytes of OTP program memory, 25 bytes of RAM, and 12 I/O pins. It integrates an HV shunt regulator for 5-15 V operation, watchdog timer, brown-out detect, and power-on reset. The 18-pin PDIP package and industrial -40C to +85C temperature range suit cost-sensitive embedded designs.

Engineering reference data for PIC16HV540-04I/P — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16HV540-04I/P when you need an 8-bit OTP microcontroller with an integrated high-voltage shunt regulator in a through-hole PDIP-18 package for industrial temperature applications. This part excels in battery-powered or unregulated-supply designs where an external 7805 would be undesirable. Select the commercial-grade PIC16HV540-04/P if your application runs only at 0C to +70C and you want the lowest unit cost. Choose the SOIC variant PIC16HV540-04I/SO for surface-mount production where height matters. For development and prototyping, the windowed ceramic PIC16HV540/JW allows UV erasure of EPROM memory before committing to OTP units. Avoid the PIC16C54C-04/P and PIC16C54A-04/P unless your design already includes an external 5 V regulator, since they lack the integrated HV regulator.

Comparison with Alternatives

Parameter This Product PIC16HV540-04/P PIC16HV540/JW PIC16HV540-04I/SO PIC16C54C-04/P PIC16C54A-04/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package PDIP-18 PDIP-18 - same PDIP-18 (windowed) SOIC-18 PDIP-18 - same PDIP-18 - same
Clock Frequency 4 MHz 4 MHz 20 MHz max 4 MHz 4 MHz 4 MHz
Program Memory 768 bytes OTP 768 bytes OTP 768 bytes EPROM (windowed) 768 bytes OTP 768 bytes OTP 768 bytes OTP
Data RAM 25 bytes 25 bytes 25 bytes 25 bytes 25 bytes 25 bytes
I/O Pins 12 12 12 12 12 12
Integrated HV Regulator Yes (3.5-15 V input) Yes Yes Yes No (external 5V required) No (external 5V required)
Operating Temperature -40C to +85C 0C to +70C 0C to +70C (windowed) -40C to +85C 0C to +70C 0C to +70C

Key Differentiators

  • Integrated high-voltage shunt regulator accepts 5-15 V supply directly (vs PIC16C54C-04/P)
  • Industrial -40C to +85C temperature range (vs PIC16HV540-04/P)
  • Through-hole PDIP-18 package for hand-soldering and prototyping (vs PIC16HV540-04I/SO)

Design Notes

The PIC16HV540-04I/P integrates a high-voltage shunt regulator that accepts 3.5 V to 15 V on the VDD pin and internally regulates to 5 V. Decouple VDD with a 100 nF ceramic capacitor close to the pin and add a 10 uF bulk capacitor if the supply is shared with noisy loads. Do not connect an external 5 V rail directly; the HV regulator is internal and uses a shunt topology. Estimated: at 15 V input and 5 mA load, the shunt regulator dissipates roughly (15-5) * 0.005 = 50 mW, which is safe for the PDIP-18 package without a heatsink.

Place the oscillator crystal or resonator within 1 cm of OSC1 (pin 16) and OSC2 (pin 15), with the load capacitors grounded to a clean VSS trace. Keep high-current switching traces (relays, LEDs) away from the oscillator pins to prevent injected noise. The MCLR pin (pin 4) should have a 10 kohm pull-up to VDD; if not used, leave it tied directly to VDD per datasheet recommendation.

OTP memory can be programmed only once; ensure firmware is fully validated on a windowed PIC16HV540/JW before committing to OTP production units. The -04 speed grade limits operation to 4 MHz maximum; do not substitute a -20 grade crystal without verifying instruction cycle timing. Brown-out detect voltage level is fixed in this family; if a different threshold is needed, external supervisor ICs (such as MCP100) must be used.

Estimated: at maximum supply voltage 15 V and 5 mA active current, the PIC16HV540-04I/P dissipates roughly (15-5) * 0.005 = 50 mW through the internal shunt regulator. The PDIP-18 package has theta_JA around 70 C/W, resulting in a junction temperature rise of about 3.5 C above ambient - well within the 125 C absolute maximum. No external heatsink is required for normal operation.

Compliance Information

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

RoHS and lead-free per Microchip product page; PIC16HV540 family is not AEC-Q100 qualified (not designed for automotive safety-critical applications). For automotive-grade replacements consider PIC16F18446 or similar newer flash MCUs.

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

Related Searches

PIC16HV540-04I/P PIC16HV540-04I/P datasheet Microchip PIC16HV540 datasheet PDF 8-bit OTP microcontroller 18-pin PDIP PIC16HV540 DIP-18 buy PIC microcontroller with HV regulator PIC16HV540 vs PIC16C54 PIC16HV540-04I/P drop-in replacement PIC16HV540-04I/P price stock what is the program memory of PIC16HV540 PIC16HV540 pinout PDIP-18 smoke detector PIC microcontroller

Related Components & Terms

Microchip Technology PIC16HV540-04I/P PIC16HV540 PIC16C54 PIC16HV540/JW PIC16C54C PIC16C54A microcontroller MCU 8-bit RISC OTP EPROM PDIP-18 SOIC-18 high-voltage shunt regulator watchdog timer brown-out detect power-on reset RoHS AEC-Q100 industrial temperature range battery-powered smoke detector LED controller
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