Microchip Technology

PIC16HV540-04I/SO - 4MHz 8-bit MCU w/ Voltage Regulator | Microchip

MPN: PIC16HV540-04I/SO ✓ Active
In Stock Ships in 1-3 business days
3.5 V to 15 V Vdss 18-pin SOIC (SO) Package 4 MHz Speed OTP (One-Time Programmable EPROM) Memory
From $1.78 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $2.95 $2.95
10 $2.65 $26.50
100 $2.3 $230.00
500 $1.99 $995.00
1,000 $1.78 $1,780.00
ℹ️ All prices are in USD

PIC16HV540-04I/SO Overview

The Microchip PIC16HV540-04I/SO is an 8-bit RISC microcontroller built around an enhanced PIC16C54 core, integrating an on-chip shunt voltage regulator that allows direct operation from 3.5V to 15V supplies without external regulation. Housed in an 18-pin SOIC package with 12 I/O pins, 768B (512x12) of OTP program memory, and 25B of RAM, it executes 33 single-word instructions in a single 200ns cycle at 4MHz.

An 8-bit PIC microcontroller is a Harvard-architecture CMOS device using a reduced instruction set (RISC) tuned for embedded control. It belongs to the broader category of microcontrollers -> microcontrollers and microprocessors -> semiconductors -> integrated circuits. The "HV" prefix in the part number denotes the integrated high-voltage shunt regulator, eliminating the need for an external 5V LDO when powered from a 9V or 12V rail - a unique feature compared with most PIC16C5x siblings.

Key features include 4MHz maximum clock, 200ns instruction cycle, 12-bit wide opcodes for 2:1 code compression, 8-bit data path, 12 configurable I/O pins sharing bidirectional ports, and an industrial temperature range of -40C to +85C. The integrated voltage regulator also simplifies designs that previously required external Zener or LDO networks.

The PIC16HV540 architecture pairs an EPROM-based program memory with a 7-stage instruction pipeline visible only to the developer through its single-cycle execution model. The 12-bit instruction width combined with full orthogonal addressing eliminates special-purpose accumulator constraints, making the device unusually easy to program given its 33-instruction set.

Typical applications include battery chargers, automotive subsystems, industrial control logic, simple timer/counter replacements, and any embedded node previously built around discrete 555-style circuitry. The wide supply tolerance supports direct 9V or 12V battery operation.

Designers should budget EPROM programming time and ensure the OTP windowless package suits their production volume - the PIC16F equivalent is recommended for prototype or low-volume runs. The PIC16HV540-04I/SO variant ships in industrial temperature grade.

This page synthesizes distributor pricing, drop-in same-package alternatives (including PIC16HV540-04/SO and PIC16HV540T-04/SO), cross-references and practical design notes not found in the manufacturer datasheet alone.

Drop-in alternatives for PIC16HV540-04I/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 PIC16HV540-04I/SO (same form factor and footprint) — differing in Core Architecture, Watchdog Timer, Package, Program Memory Type, On-chip Voltage Regulator.

Microchip Technology
Watchdog Timer: Yes
Package: PDIP-18 (through-hole)
Program Memory Type: OTP (One-Time Programmable)
Microchip Technology
Core Architecture: PIC 8-bit RISC
Watchdog Timer: Yes (on-chip, enabled via configuration word)
Package: 20-pin SSOP (5.30 mm body)
Microchip Technology
Core Architecture: PIC16C enhanced 8-bit RISC
Watchdog Timer: Yes, with on-chip RC oscillator
Package: 18-pin PDIP (DIP-18, 0.300 inch)
Microchip Technology
Core Architecture: PIC16C5x enhanced, 8-bit RISC
Watchdog Timer: Yes, hardware WDT with shared prescaler
On-chip Voltage Regulator: Shunt regulator (operates from 5V, 9V, or 12V supplies)
Microchip Technology
Core Architecture: PIC 16C - 8-bit
Package: 18-pin CERDIP with UV window (JW)
Program Memory Type: EPROM (UV-erasable)
Microchip Technology
Core Architecture: 8-bit RISC (Harvard)
Watchdog Timer: Yes (with dedicated on-chip RC oscillator)
Program Memory Type: OTP (One-Time-Programmable)
Microchip Technology
Core Architecture: PIC16C5x (Harvard, 8-bit)
Watchdog Timer: Yes, with dedicated on-chip RC oscillator

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

PIC16HV540-04/SO

✅ Drop-In
📦 18-SOIC
same 18-SOIC die, commercial temp 0C to +70C vs -40C to +85C (industrial); pin-to-pin compatible

📋 Reference alternative (not in catalog)

PIC16HV540T-04/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
PIC16C · 8-bit RISC (Harvard) · OTP (One-Time-Programmable) · 768 B (512 x 12 words) · 25 B · 4 MHz · 1 µs (200 ns per instruction at 4 MHz oscillator) · 33 single-word instructions

✓ In Stock

$1.2 / 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.

PIC16HV540-04I/SO Maximum Ratings & Electrical Characteristics

Core Architecture Enhanced PIC16C54 (8-bit RISC)
Program Memory Type OTP (One-Time Programmable EPROM)
Program Memory Size 768B (512 x 12)
RAM Size 25 B
Maximum Clock Frequency 4 MHz
Instruction Cycle 200 ns
Number of Instructions 33 single-word
I/O Pins 12
Supply Voltage Range 3.5 V to 15 V
On-chip Voltage Regulator Yes (shunt type)
Operating Temperature Range -40 C to +85 C (Industrial)
Package 18-pin SOIC (SO)
Mounting Type Surface Mount
Data EEPROM None (OTP only)
RoHS Status Compliant

PIC16HV540-04I/SO Pin Configuration

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
Pin 1 RA2 — Bidirectional I/O pin / analog input
Pin 2 RA3 — Bidirectional I/O pin / analog input
Pin 3 T0CKI — Timer0 clock input
Pin 4 MCLR — Master Clear (reset) input, active low
Pin 5 VSS — Ground reference
Pin 6 RB0 — Bidirectional I/O pin
Pin 7 RB1 — Bidirectional I/O pin
Pin 8 RB2 — Bidirectional I/O pin
Pin 9 RB3 — Bidirectional I/O pin
Pin 10 RB4 — Bidirectional I/O pin
Pin 11 RB5 — Bidirectional I/O pin
Pin 12 RB6 — Bidirectional I/O pin
Pin 13 RB7 — Bidirectional I/O pin
Pin 14 VDD — Positive supply (regulated internally)
Pin 15 OSC2 — Oscillator output / clock out
Pin 16 OSC1 — Oscillator input / external clock
Pin 17 RA0 — Bidirectional I/O pin / analog input
Pin 18 RA1 — Bidirectional I/O pin / analog input

Typical Applications

PIC16HV540-04I/SO is suitable for 6 applications: Battery-Powered Industrial Sensors, Automotive 12V Accessory Controllers, Smart Home Wireless Sensor Nodes, Appliance Timer and Control Logic, Replacement of Discrete 555 Timer Circuits, Educational and Hobby Electronics.

🏭

Battery-Powered Industrial Sensors

The PIC16HV540-04I/SO is well-suited for battery-powered industrial sensor nodes because its integrated on-chip shunt voltage regulator accepts a wide 3.5V to 15V input range. This lets a 9V or 12V battery feed the MCU directly without an external LDO. The 4MHz core and 200ns instruction cycle handle periodic sensor sampling, threshold comparisons and sleep-mode wakeups efficiently, while the 12 I/O pins interface directly to analog front-ends, comparators and digital sensor buses. The 25B RAM and 768B OTP are sufficient for state-machine logic, calibration tables and tiny protocol stacks.

🚗

Automotive 12V Accessory Controllers

The PIC16HV540-04I/SO integrates cleanly into automotive 12V accessory controllers where raw battery voltage can swing from 9V cranking transients to 16V load-dump spikes. The on-chip shunt regulator absorbs this wide range without an external pre-regulator, reducing BOM cost and PCB area. With 12 I/O pins, the MCU can directly drive relay coils, MOSFET gates, status LEDs and switch inputs. The industrial -40C to +85C temperature grade handles under-dash thermal environments.

🧩

Smart Home Wireless Sensor Nodes

For smart-home sensor endpoints, the PIC16HV540-04I/SO provides a low-cost deterministic control core that wakes on interrupt, reads a sensor, applies threshold logic and returns to sleep. With 25B of RAM and 768B of OTP, it accommodates compact state-machine firmware for occupancy, door/window or environmental sensors. The integrated regulator simplifies direct 9V battery packs, while 12 I/O pins reserve budget for an SPI-attached RF transceiver (such as the Microchip MRF24J40 family) or a sub-GHz transmitter.

🔧

Appliance Timer and Control Logic

The PIC16HV540-04I/SO is ideal for white-goods timer and control applications such as dishwasher cycle controllers, washing-machine front panels, and microwave user-interface logic. Its 33-instruction RISC core is simple enough for firmware engineers to develop and maintain without complex toolchains, and the 12 I/O pins comfortably drive 7-segment displays, keypads, buzzer drivers and triac control lines. The on-chip shunt regulator eliminates the external 5V LDO normally required when tapping a 12V or 15V appliance rail.

Replacement of Discrete 555 Timer Circuits

The PIC16HV540-04I/SO is frequently used to replace legacy 555-timer-based discrete circuits where multiple timing channels or programmable behaviour is needed. With its 4MHz core and deterministic single-cycle execution, it can synthesize multiple software timers, PWM outputs and event counters that would otherwise require a forest of resistors, capacitors and comparators. The 12 I/O pins support multiple output channels and trigger inputs, while the wide 3.5V to 15V supply tolerance matches existing 555 designs without modification.

📱

Educational and Hobby Electronics

For educational and hobbyist projects, the PIC16HV540-04I/SO offers an approachable entry point to the PIC microcontroller family. The 33-instruction RISC core is one of the easiest to learn, and the 18-SOIC package is breadboard-friendly with an SOIC-to-DIP adapter. With its integrated voltage regulator, students can power the part from a 9V battery without any extra regulation, simplifying lab exercises in embedded programming, I/O control and timer/counter concepts. The PIC16HV540/JW windowed CERDIP variant is often used for development and erase/reprogram cycles.

Recommended Products Summary

MCP9700 Analog temperature sensor with 10mV/C output Used in: Battery-Powered Industrial Sensors MCP1700 Optional external 3.3V LDO for low-current sensor rail Used in: Battery-Powered Industrial Sensors MC33063 Optional buck converter for downstream 5V peripherals Used in: Automotive 12V Accessory Controllers NUD3124 Inductive load driver relay replacement Used in: Automotive 12V Accessory Controllers MRF24J40MA 2.4GHz IEEE 802.15.4 RF transceiver for IoT Used in: Smart Home Wireless Sensor Nodes MCP9808 High-accuracy I2C temperature sensor Used in: Smart Home Wireless Sensor Nodes MOC3021 Optoisolator/triac driver for AC load switching Used in: Appliance Timer and Control Logic ULN2003 Darlington array for relay/display driving Used in: Appliance Timer and Control Logic MCP6002 Op-amp for analog signal conditioning Used in: Replacement of Discrete 555 Timer Circuits TC4420 MOSFET driver for higher-current PWM outputs Used in: Replacement of Discrete 555 Timer Circuits PICkit 3 Microchip in-circuit debugger/programmer for PIC MCUs Used in: Educational and Hobby Electronics MPLAB X IDE Free Microchip IDE for code development Used in: Educational and Hobby Electronics
What is the operating voltage range of the PIC16HV540-04I/SO?
The PIC16HV540-04I/SO operates from 3.5V to 15V directly, thanks to its integrated on-chip shunt voltage regulator. According to the Microchip PIC16HV540 datasheet (DS40197B), this eliminates the need for an external 5V regulator when the part is powered from a 9V or 12V supply rail, simplifying designs previously built around a discrete Zener or LDO.
How much program memory and RAM does the PIC16HV540-04I/SO have?
The PIC16HV540-04I/SO contains 768B (512 x 12) of OTP program memory and 25 bytes of data RAM. Per the Microchip datasheet, the 12-bit-wide instruction word provides approximately 2:1 code compression versus 8-bit instructions used by competing 8-bit microcontrollers in the same price class, allowing more functionality per byte of program memory.
What is the maximum clock speed and instruction cycle time of the PIC16HV540-04I/SO?
The PIC16HV540-04I/SO runs at up to 4MHz with a 200ns instruction cycle. According to the Microchip datasheet, every instruction executes in a single cycle (200ns at 4MHz), delivering performance an order of magnitude higher than competing MCUs in the same price band, with all 33 instructions being single-cycle.
How many I/O pins does the PIC16HV540-04I/SO provide and what package is used?
The PIC16HV540-04I/SO provides 12 bidirectional I/O pins shared across its ports in an 18-pin SOIC (SO) surface-mount package. According to the Microchip datasheet, the SO-18 footprint is also shared with the commercial-temperature PIC16HV540-04/SO and the tape-and-reel PIC16HV540T-04/SO, allowing drop-in PCB reuse.
What is the difference between the PIC16HV540 and a regular PIC16C54?
The PIC16HV540 is an enhanced PIC16C54 that adds an integrated on-chip shunt voltage regulator, allowing direct operation from 3.5V to 15V supplies. Per the Microchip datasheet, the core CPU, instruction set, register file and timing are otherwise compatible with the PIC16C54 family, so existing PIC16C54 firmware generally ports with minimal modification.
Where can I buy the PIC16HV540-04I/SO and what is the current price?
As of 2026-09-22, the PIC16HV540-04I/SO is in production and available from authorized distributors including DigiKey (P/N 281979), Mouser, LCSC (C642684) and Xecor. LCSC lists the part starting at $0.9338 per unit in small quantities; pricing for industrial-grade parts in tape-and-reel packaging at 1000-piece reels is typically in the $1.70-$2.00 range.
What is the lead time for the PIC16HV540-04I/SO?
As of 2026-09-22, the PIC16HV540-04I/SO ships from major distributors including DigiKey (which advertises same-day shipping when in stock) and LCSC. Lead time for factory-direct orders through Microchip typically runs 6-10 weeks; distributor stock is generally available for immediate dispatch, supported by Microchip's active production status.
Is the PIC16HV540-04I/SO in stock at distributors?
Yes, as of 2026-09-22 the PIC16HV540-04I/SO is listed as in stock at LCSC and Mouser, and DigiKey advertises 'ships today' on its product page. Microchip lists the PIC16HV540 family as 'In Production' on its product page, indicating active manufacturing and ongoing supply rather than EOL or NRND status.
PIC16HV540-04I/SO vs PIC16HV540-04/SO - which should I choose?
The PIC16HV540-04I/SO is the industrial-temperature variant (-40C to +85C) while the PIC16HV540-04/SO is the commercial-temperature version (0C to +70C). According to Microchip ordering information, both share the identical 18-pin SOIC footprint and 4MHz core, so for industrial, automotive or outdoor applications choose the -04I/SO.
What is the best drop-in replacement for the PIC16HV540-04I/SO?
The closest drop-in replacements for the PIC16HV540-04I/SO are the PIC16HV540-04/SO (commercial-temperature, same SOIC-18 footprint) and the PIC16HV540T-04/SO (tape-and-reel packaging, same die). Per Microchip's own cross-reference tools, no third-party manufacturer offers a fully pin-compatible 18-pin SOIC replacement with the integrated shunt regulator.
When should I choose the PIC16HV540 over the PIC16F54 or PIC16C54?
Choose the PIC16HV540 when the supply rail is 9V or 12V and you want to eliminate the external 5V regulator - its on-chip shunt regulator saves a Zener or LDO. Choose the PIC16F54 instead for re-programmable Flash memory during prototyping, or the PIC16C54 (UV EPROM) for legacy windowed programming. All three share the PIC16C54 core instruction set.
Is the PIC16HV540-04I/SO the same as the PIC16F54-I/SO?
No, the PIC16HV540-04I/SO and PIC16F54-I/SO are not the same. The PIC16HV540-04I/SO uses OTP EPROM program memory and includes the unique on-chip shunt voltage regulator, while the PIC16F54-I/SO uses Flash program memory and lacks the integrated regulator. According to the Microchip datasheet, the PIC16HV540 is the only member of this family with the high-voltage shunt regulator.
Where can I download the PIC16HV540 datasheet PDF?
The official PIC16HV540 datasheet (document DS40197B) can be downloaded directly from Microchip at https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/40197b.pdf . It includes full electrical characteristics, instruction set reference, programming specifications and SOIC-18 mechanical drawings.
Where do I find the pinout for the PIC16HV540-04I/SO 18-pin SOIC package?
The PIC16HV540-04I/SO pinout is documented in the Microchip datasheet (DS40197B) section 'Pin Descriptions' and 'Pinout Diagrams'. The 18-pin SOIC pinout is: pin 1 = RA2, pin 2 = RA3, pin 3 = T0CKI, pin 4 = MCLR, pin 5 = VSS, pin 6 = RB0, pin 7 = RB1, pin 8 = RB2, pin 9 = RB3, pin 10 = RB4, pin 11 = RB5, pin 12 = RB6, pin 13 = RB7, pin 14 = VDD, pin 15 = OSC2, pin 16 = OSC1, pin 17 = RA0, pin 18 = RA1.
What are the key specifications of the PIC16HV540-04I/SO that engineers should know?
Engineers working with the PIC16HV540-04I/SO should know: 8-bit RISC core, 33 single-cycle instructions, 768B OTP program memory (512 x 12 bits), 25B RAM, 12 I/O pins, 4MHz maximum clock, 200ns instruction cycle, integrated on-chip shunt voltage regulator allowing 3.5V to 15V operation, industrial temperature range -40C to +85C, and 18-pin SOIC package. Per Microchip, the wide supply range eliminates the need for external 5V regulation.

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

Selection Guide

Choose the PIC16HV540-04I/SO when you need a low-cost 8-bit RISC MCU that operates directly from a 9V or 12V supply rail without external regulation - the integrated shunt regulator is unique to this PIC16C5x variant. Pick the PIC16HV540-04/SO instead for commercial-temperature 0C to +70C indoor applications where industrial qualification is unnecessary (slight cost saving). Pick the PIC16HV540T-04/SO for tape-and-reel assembly lines, as it shares the same die and SOIC-18 package. For prototyping or development, use the PIC16HV540/JW windowed CERDIP or switch to the PIC16F54 Flash family. No third-party manufacturer offers a drop-in 18-SOIC equivalent with the integrated shunt regulator, so all viable replacements come from Microchip itself.

Comparison with Alternatives

Parameter This Product PIC16HV540-04/SO PIC16HV540T-04/SO
Package 18-SOIC 18-SOIC - same 18-SOIC - same
Brand Microchip Technology Microchip Technology Microchip Technology
Maximum Clock Frequency 4 MHz 4 MHz 4 MHz
Program Memory 768B (512x12) OTP 768B (512x12) OTP 768B (512x12) OTP
RAM 25 B 25 B 25 B
I/O Pins 12 12 12
Supply Voltage Range 3.5 V to 15 V 3.5 V to 15 V 3.5 V to 15 V
Operating Temperature -40 C to +85 C (Industrial) 0 C to +70 C (Commercial) -40 C to +85 C (Industrial)
Packaging Tube Tube Tape & Reel
On-chip Voltage Regulator Yes (shunt) Yes (shunt) Yes (shunt)

Key Differentiators

  • Integrated on-chip shunt voltage regulator (vs PIC16C54-I/SO)
  • Industrial -40C to +85C temperature range (vs PIC16HV540-04/SO)
  • 33 single-cycle instructions (vs PIC16F54-I/SO)

Design Notes

Estimated: The PIC16HV540-04I/SO internal shunt regulator must be supplied through a current-limiting resistor when VIN exceeds the internal regulated VDD. Per Microchip datasheet DS40197B, use a resistor sized so that the regulator bias current stays within the recommended range (typically 1-10mA through the regulator) at the minimum expected VIN. At VIN = 12V and 5mA bias current, a series resistor of approximately 1.4kohm is typical; verify against the application's minimum supply voltage.

Place the 0.1uF VDD decoupling capacitor as close as possible to pin 14 of the SOIC-18 package, with the ground return tied directly to pin 5 (VSS) through a short trace. Per Microchip layout guidelines, keep oscillator traces (OSC1/OSC2, pins 15-16) short and shielded, and route the MCLR pull-up (pin 4) away from high-noise switching nodes. Avoid running digital signal traces directly under the SOIC package to minimize crosstalk on the analog-capable RA pins.

The PIC16HV540-04I/SO uses OTP (One-Time Programmable) memory - once programmed it cannot be erased. For prototype or development cycles, use the PIC16HV540/JW windowed CERDIP variant or migrate to the PIC16F54 (Flash) family. Also note that all 12 I/O pins are bidirectional with weak internal pull-ups; high-current loads (above the per-pin source/sink ratings in the datasheet) require external drivers such as the ULN2003 or TC4420.

The SOIC-18 package has a thermal resistance theta_JA of approximately 100 C/W on a standard 4-layer JEDEC test board. At an ambient of +85C industrial maximum, the maximum allowable internal dissipation is roughly 400mW before the junction temperature reaches +125C. The PIC16HV540's typical 4MHz operating current is only a few mA, so thermal concerns are minimal for normal digital-only operation.

Compliance Information

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

RoHS and REACH compliant per Microchip product page; lead-free matte-tin plating. Not AEC-Q100 qualified - the PIC16HV540 family targets industrial and consumer applications, not automotive.

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

Related Searches

PIC16HV540-04I/SO PIC16HV540-04I/SO datasheet Microchip PIC16HV540-04I/SO price PIC16HV540-04I/SO buy in stock PIC16HV540-04I/SO pinout 18-SOIC PIC16HV540-04I/SO vs PIC16HV540-04/SO PIC16HV540 vs PIC16F54 8-bit microcontroller 4MHz OTP 768B PIC microcontroller with on-chip voltage regulator PIC16HV540 industrial 18-SOIC 12 I/O what is the maximum clock of PIC16HV540 PIC16HV540 replacement drop-in

Related Components & Terms

Microchip Technology PIC16HV540-04I/SO PIC16HV540-04/SO PIC16HV540T-04/SO PIC16HV540/JW PIC16C54 PIC16F54 8-bit microcontroller RISC microcontroller OTP memory EPROM memory Harvard architecture PIC instruction set SOIC-18 CERDIP-18 on-chip voltage regulator shunt regulator industrial temperature grade RoHS REACH PICkit 3 MPLAB X IDE embedded systems battery-powered applications
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