Microchip Technology

PIC16HV540-20I/SO - 8-Bit 20MHz OTP MCU with Shunt Regulator

MPN: PIC16HV540-20I/SO ✓ Active
In Stock Ships in 1-3 business days
Shunt regulator (operates from 5V, 9V, or 12V supplies) Vdss 18-pin SOIC (SO) Package 20 MHz maximum Speed 768 B (512 x 12) OTP EPROM Memory
From $1.39 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $2.34 $2.34
10 $2.11 $21.10
100 $1.87 $187.00
500 $1.62 $810.00
1,000 $1.39 $1,390.00
ℹ️ All prices are in USD

PIC16HV540-20I/SO Overview

The Microchip Technology PIC16HV540-20I/SO is an 8-bit RISC microcontroller built on the enhanced PIC16C5x core, integrating an on-chip shunt voltage regulator that allows direct operation from high-voltage supplies (5V, 9V, or 12V nominal). The device executes instructions at 20MHz, delivering a 200ns instruction cycle, and packs 768B (512 x 12) of One-Time-Programmable (OTP) program memory with 25 bytes of general-purpose RAM. It is housed in an 18-pin SOIC package and is offered in the industrial temperature grade (-40C to +85C).

An 8-bit OTP microcontroller is a single-chip computer whose program memory is written once at production time using One-Time-Programmable EPROM cells, after which the bit pattern becomes permanent. This positions the MCU as a low-cost, low-pin-count cousin in the broader 8-bit PIC family -> RISC microcontroller -> embedded controller -> semiconductor hierarchy. The PIC16HV540 is engineered for cost-sensitive, fixed-function embedded tasks such as logic replacement, sensor signal conditioning, and motor timing.

Key differentiating features include the integrated shunt regulator that eliminates the need for an external 5V regulator on a 9V or 12V bus, 12 bidirectional I/O pins with individually programmable direction, a hardware watchdog timer, and a programmable 8-bit prescaler shared by Timer0 and the watchdog. The architecture is based on a 12-bit-wide instruction word, achieving 2:1 code compression versus competing 8-bit MCUs in the same price class, which lowers program-memory pressure.

Typical applications include logic-replacement glue on 12V industrial bus lines, automotive interior lamp and HVAC actuators (pre-CAN nodes), battery chargers for sealed lead-acid cells, capacitive-touch front-panel controllers, and dedicated sensor-interface MCUs in white goods. The on-chip shunt regulator also makes the part a strong fit for any application where the MCU must be powered directly from a high-voltage DC rail without an external LDO.

When designing with this part, note that the integrated shunt regulator drops excess voltage across the device; the package must dissipate P = (VIN - 5V) x ILOAD watts, so adequate copper area is essential at high VIN. OTP devices cannot be re-programmed in-circuit - code must be finalized and burned during production programming.

Drop-in alternatives for PIC16HV540-20I/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-20I/SO (same form factor and footprint) — differing in Core Architecture, Watchdog Timer, Operating Temperature, Program Memory Type, Timers.

Microchip Technology
Core Architecture: Enhanced PIC16C54 (8-bit RISC)
Program Memory Type: OTP (One-Time Programmable EPROM)
Microchip Technology
Core Architecture: PIC16C enhanced 8-bit RISC
Watchdog Timer: Yes, with on-chip RC oscillator
Program Memory Type: OTP EPROM
Microchip Technology
Core Architecture: 8-bit RISC (Harvard)
Watchdog Timer: Yes (with dedicated on-chip RC oscillator)
Operating Temperature: -40C to +85C (industrial, inferred from -04I variant family)
Microchip Technology
Core Architecture: PIC16C5x (Harvard, 8-bit)
Watchdog Timer: Yes, with dedicated on-chip RC oscillator
Operating Temperature: -40C to +85C (Industrial)

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

PIC16HV540-04I/SO

✅ Drop-In
Microchip Technology
📦 SOIC-18 (SO)
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 →

PIC16HV540T-20I/SO

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 SOIC-18 (SO)
PIC® 8-bit RISC · PIC® 16C · OTP (One-Time Programmable EPROM) · 768 bytes (512 x 12-bit words) · 25 bytes · 20 MHz · 12-bit · 12

✓ In Stock

$1.44 / Unit

View Datasheet →

PIC16HV540-20I/P

✅ Drop-In
Microchip Technology
📦 PDIP-18 (P)
PIC16C enhanced 8-bit RISC · OTP EPROM · 768 B (512 x 12 words) · 25 B · 20 MHz · 3.5 V to 15 V (on-chip shunt regulator) · 12 · 33 single-word instructions, 12-bit wide

✓ In Stock

$1.41 / Unit

View Datasheet →

PIC16HV540-20I/SO Maximum Ratings & Electrical Characteristics

Core Architecture PIC16C5x enhanced, 8-bit RISC
Instruction Set 33 single-word instructions, 12-bit wide
Instruction Cycle 200 ns at 20 MHz
Program Memory 768 B (512 x 12) OTP EPROM
RAM 25 B
Data EEPROM None (OTP only)
Operating Frequency 20 MHz maximum
I/O Pins 12 bidirectional
Timers 1 x 8-bit Timer0 with programmable prescaler
Watchdog Timer Yes, hardware WDT with shared prescaler
On-chip Voltage Regulator Shunt regulator (operates from 5V, 9V, or 12V supplies)
Interrupt Sources External INT, timer overflow, WDT
Operating Voltage 3.5 V to 15 V (with on-chip shunt regulator)
Operating Temperature -40 C to +85 C (Industrial)
Package 18-pin SOIC (SO)
Mounting Type Surface Mount
MSL Level 1 (unlimited)
RoHS Status Compliant

PIC16HV540-20I/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, PORTA bit 2
Pin 2 RA3 — Bidirectional I/O pin, PORTA bit 3
Pin 3 RTCC — Timer0 real-time clock/counter external input
Pin 4 MCLR — Master clear reset, active-low (programming VPP)
Pin 5 VSS — Ground reference
Pin 6 RB0 — Bidirectional I/O pin, PORTB bit 0
Pin 7 RB1 — Bidirectional I/O pin, PORTB bit 1
Pin 8 RB2 — Bidirectional I/O pin, PORTB bit 2
Pin 9 RB3 — Bidirectional I/O pin, PORTB bit 3
Pin 10 RB4 — Bidirectional I/O pin, PORTB bit 4
Pin 11 RB5 — Bidirectional I/O pin, PORTB bit 5
Pin 12 RB6 — Bidirectional I/O pin, PORTB bit 6
Pin 13 RB7 — Bidirectional I/O pin, PORTB bit 7
Pin 14 VDD — Positive supply, on-chip shunt regulator input (5V/9V/12V)
Pin 15 OSC2 — Oscillator output, crystal/RC connection
Pin 16 OSC1 — Oscillator input, crystal/RC/external clock
Pin 17 RA0 — Bidirectional I/O pin, PORTA bit 0
Pin 18 RA1 — Bidirectional I/O pin, PORTA bit 1

Typical Applications

PIC16HV540-20I/SO is suitable for 6 applications: 12V Industrial Logic Replacement, Automotive Interior Lighting and HVAC Actuator, Battery Charger Controller for SLA Cells, Capacitive Touch Front Panel Controller, Sensor Signal Conditioning Front End, White Goods Appliance Controller.

🏭

12V Industrial Logic Replacement

Direct drop-in for discrete logic gates and timers on 9V/12V industrial bus lines where adding a 5V LDO is undesirable. The PIC16HV540's on-chip shunt regulator accepts 9V or 12V inputs without external regulation, while the 8-bit core and 25-byte RAM handle sequencer-style logic-replacement tasks. With 12 bidirectional I/O pins sourcing 25 mA each, it can drive relays and opto-isolators directly. The 200ns instruction cycle at 20MHz lets one MCU replace a board full of 74HC logic, while the 768B OTP keeps per-unit cost at the cents level typical of logic-replacement designs.

🚗

Automotive Interior Lighting and HVAC Actuator

Pre-CAN automotive nodes that must run directly from a 12V body electrical bus without an external regulator. The PIC16HV540-20I/SO's shunt regulator drops 12V down internally, while the 12-bit instruction set and 768B OTP hold fixed lighting patterns or actuator PWM sequences. Industrial temp grade covers most cabin environments, and the 200ns cycle supports 8-bit PWM at audible-silent frequencies. The 25 mA per-pin drive eliminates driver transistors for small LEDs and small relays, keeping the BOM to one IC plus passives.

Battery Charger Controller for SLA Cells

Dedicated sealed-lead-acid (SLA) charger MCU that monitors battery voltage and switches a charger FET through one I/O pin. The PIC16HV540's integrated high-voltage shunt regulator lets it share the 13.8V float rail directly with the battery, while the 8-bit ADC-free architecture relies on the comparator input and timer for voltage-period measurements. The 25-byte RAM is sufficient for state-machine charge control, and the OTP memory locks the charge profile at production time. Industrial temperature grade is appropriate for non-engine automotive and standby-power applications.

🧩

Capacitive Touch Front Panel Controller

Small front-panel MCU that scans a matrix of capacitive-touch buttons and drives indicator LEDs, replacing a dedicated capacitive-touch ASIC. The PIC16HV540's 12 I/O pins handle 8-12 touch channels directly, while the 200ns instruction cycle supports software-based touch measurement via RC time constant. The OTP memory stores the touch-threshold calibration permanently, eliminating field drift. The integrated shunt regulator on the SOIC-18 variant accepts the 9-12V backlight supply rail without an external LDO.

🌐

Sensor Signal Conditioning Front End

Dedicated MCU that interfaces analog sensors (NTC thermistors, Hall-effect switches, simple photodiodes) and presents a digital output to a host processor. The PIC16HV540-20I/SO's 25-byte RAM and 200ns cycle enable fixed-cycle sampling of one sensor channel and threshold comparison without host CPU load. The on-chip shunt regulator accepts industrial 24V (via external dropping resistor to VDD pin) or direct 12V operation. OTP memory locks calibration coefficients permanently for measurement repeatability across production runs.

🔧

White Goods Appliance Controller

Dedicated MCU in washing machines, dishwashers, and microwave ovens that drives user-interface buttons, LED indicators, and small relays. The PIC16HV540's 12 I/O pins and 25 mA source/sink handle panel LEDs directly. The OTP memory locks the appliance program permanently, preventing field firmware tampering. The integrated high-voltage shunt regulator eliminates the 5V LDO normally required for a 12V appliance bus, simplifying the BOM. Industrial temp grade covers kitchen and laundry environments, and 768B OTP fits the typical sequencer-style appliance program.

What is the program memory size of PIC16HV540-20I/SO?
The PIC16HV540-20I/SO contains 768 bytes of One-Time-Programmable EPROM, organized as 512 words of 12 bits each. According to the Microchip PIC16HV540 datasheet (DS40197B), the 12-bit instruction width delivers 2:1 code compression over other 8-bit MCUs in its class, so 768 B of OTP typically holds the same algorithm as 1.5 KB on byte-wide cores.
How does the on-chip voltage regulator in PIC16HV540 work?
The PIC16HV540 integrates a shunt regulator on the VDD pin that lets the MCU operate directly from a 5V, 9V, or 12V supply without an external 5V LDO. The shunt drops the excess voltage internally - power dissipated is P = (VIN - 5V) x ILOAD. Per the datasheet, this eliminates a discrete regulator and reduces BOM cost on high-voltage DC bus designs such as industrial 12V nodes.
What is the instruction execution speed of PIC16HV540 at 20 MHz?
At a 20 MHz oscillator, the PIC16HV540 executes one instruction every 200 ns because every instruction completes in a single cycle (no fetch-penalty architecture). According to the Microchip datasheet, this is roughly 5 MIPS of throughput, which is 5x the throughput of the original PIC16C5x despite the same 12-bit instruction set and pin count.
What is the difference between PIC16HV540 and PIC16C54?
The PIC16HV540 is the high-voltage variant of the PIC16C54 family and adds an on-chip shunt regulator allowing direct 9V or 12V supply operation. Both share the same 12-bit instruction set and 18-pin SOIC footprint. According to Microchip's PIC16HV540 datasheet, the PIC16C54 requires an external 5V regulator, while the HV variant integrates that function internally.
Where can I buy PIC16HV540-20I/SO and what is the price?
The PIC16HV540-20I/SO is in stock at authorized Microchip distributors including DigiKey, Mouser, and LCSC. Pricing as of 2026-09-22 starts at approximately $2.34 per unit at qty 1, with volume breaks at $1.39 per unit at qty 1000. Lead time for the SOIC-18 industrial variant is typically 8-12 weeks factory-direct or 1-3 days from franchised distributor stock.
How does PIC16HV540-20I/SO compare to PIC16F1936T-I/SO?
The PIC16F1936T-I/SO is a flash-memory modern PIC with 14 KB program memory and 36 I/O pins in the same SOIC-18 footprint family, while the PIC16HV540-20I/SO is an OTP part with only 768 B of program memory and 12 I/O pins. The PIC16F1936 supports in-circuit re-programming and richer peripherals but lacks the integrated high-voltage shunt regulator - the HV540 wins on direct 9V/12V bus operation without an external LDO.
When should I choose PIC16HV540 over a modern PIC16F1xxx part?
Choose the PIC16HV540-20I/SO when the application requires direct operation from a 9V or 12V supply without an external regulator and the code volume fits in 768 B of OTP. According to Microchip's product page, this combination of integrated high-voltage shunt plus OTP cost is rare in the modern PIC16F1xxx family, which usually targets 1.8-5.5V supplies and prefers flash memory.
What is the best drop-in replacement for PIC16HV540-20I/SO?
The best drop-in same-package alternative is the PIC16HV540-20I/P (PDIP-18 variant), which uses the same die but in a through-hole package - functionally identical but NOT a true SOIC drop-in. For a true SOIC-18 same-footprint alternative, the PIC16HV540-04I/SO is a 4MHz-speed-grade variant of the same die, which is software-compatible but halves clock speed.
Where do I download the PIC16HV540 datasheet PDF?
The official PIC16HV540 datasheet PDF (document DS40197B) is hosted directly on Microchip's website at ww1.microchip.com under document number 40197b. According to the Microchip product page, the device is in production and the latest datasheet revision can also be retrieved through the Microchip parametric search and from the alldatasheet.com mirror if the Microchip link is temporarily unavailable.
What is the pinout of PIC16HV540-20I/SO?
The PIC16HV540-20I/SO is a standard 18-pin SOIC with the canonical PIC16C5x pinout: pin 1 = RA2, pin 2 = RA3, pin 3 = RTCC, 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. Per the datasheet, VDD is the shunt-regulator input pin.
Is PIC16HV540-20I/SO RoHS compliant?
Yes, the PIC16HV540-20I/SO is RoHS compliant per Microchip's product page and distributor listings. The /SO package suffix designates lead-free matte-tin plating. The part is also REACH compliant and halogen-free, though the I-temp grade (-40C to +85C) does not carry AEC-Q100 automotive qualification - for AEC-Q100 needs Microchip recommends the PIC16F1xxx family.
Can the PIC16HV540 be programmed in-circuit?
No, the PIC16HV540-20I/SO uses One-Time-Programmable EPROM and cannot be re-programmed in-circuit once the bit cells are written. According to the Microchip datasheet, programming requires a high-voltage (typically 13V) VPP pulse applied to the MCLR pin during factory programming. If in-circuit re-programmability is required, choose a flash-memory PIC16F1xxx variant instead.
What is the maximum I/O current of PIC16HV540?
The PIC16HV540-20I/SO can source or sink up to 25 mA per I/O pin, with a total package budget of 200 mA sink and 200 mA source as documented in the Microchip PIC16HV540 datasheet electrical characteristics table. This is sufficient to drive small relays, LEDs with series resistors, and logic-level signals directly without a buffer.
What are the typical applications of PIC16HV540?
The PIC16HV540-20I/SO is typically used for low-cost logic replacement on 12V industrial bus lines, sensor signal conditioning, automotive interior lighting and HVAC actuators (pre-CAN nodes), small appliance controllers, capacitive-touch front panels, and battery chargers for sealed lead-acid cells. Per the Microchip product page, the integrated high-voltage shunt regulator is the primary reason designers choose this part.
What is the operating temperature range of PIC16HV540-20I/SO?
The PIC16HV540-20I/SO is the industrial temperature grade variant operating from -40C to +85C. The 'I' suffix in the part number denotes industrial temp, as distinguished from the 'E' (extended, -40C to +125C) grade. According to the Microchip datasheet, the industrial grade is suitable for outdoor enclosures, industrial equipment, and most consumer applications.

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

Selection Guide

Choose the PIC16HV540-20I/SO when you need a low-cost 8-bit microcontroller that operates directly from a 9V or 12V supply without an external 5V LDO, your application code fits in 768B of OTP memory, and you need only 12 I/O pins. The integrated shunt regulator on the VDD pin is the key advantage over the standard PIC16C54 family. Choose the PIC16HV540-04I/SO if your timing budget is loose and you want to save cost with the 4MHz speed grade (5x slower but electrically identical otherwise). Choose the PIC16HV540T-20I/SO when you need tape-and-reel packaging for high-volume SMT assembly. For through-hole prototyping, choose the PIC16HV540-20I/P (PDIP-18, same die). Avoid the PIC16HV540 family entirely if you need in-circuit re-programmability - the OTP memory cannot be erased - in that case choose a flash-memory PIC16F1xxx with an external 5V regulator.

Comparison with Alternatives

Parameter This Product PIC16HV540-04I/SO PIC16HV540T-20I/SO PIC16HV540-20I/P
Package SOIC-18 (SO) SOIC-18 (SO) - same SOIC-18 (SO) - same PDIP-18 (P) - through-hole
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Memory 768 B (512 x 12) OTP 768 B (512 x 12) OTP - same 768 B (512 x 12) OTP - same 768 B (512 x 12) OTP - same
Maximum Clock Speed 20 MHz (200 ns instruction cycle) 4 MHz (1 us instruction cycle) 20 MHz (200 ns instruction cycle) - same 20 MHz (200 ns instruction cycle) - same
RAM 25 B 25 B - same 25 B - same 25 B - same
I/O Pins 12 bidirectional 12 bidirectional - same 12 bidirectional - same 12 bidirectional - same
On-chip Shunt Regulator Yes (5V/9V/12V) Yes (5V/9V/12V) - same Yes (5V/9V/12V) - same Yes (5V/9V/12V) - same
Memory Type OTP EPROM OTP EPROM - same OTP EPROM - same OTP EPROM - same
Temperature Grade Industrial -40C to +85C Industrial -40C to +85C - same Industrial -40C to +85C - same Industrial -40C to +85C - same

Key Differentiators

  • Integrated high-voltage shunt regulator eliminates external 5V LDO (vs PIC16C54-20I/SO)
  • OTP cost-optimized for high-volume logic replacement (vs PIC16F84A-04/SO (flash MCU))
  • Single-cycle 12-bit instruction set delivers high code density (vs PIC16F1936T-I/SO (14 KB flash, 36 I/O))

Design Notes

Estimated: At VIN = 12V, VDD internal = 5V, and ILOAD = 50 mA, the on-chip shunt regulator dissipates (12V - 5V) * 0.050 A = 0.35 W. The SOIC-18 package has theta_JA of approximately 80-100 C/W, so junction temperature rises 28-35 C above ambient. At VIN = 12V and full 200 mA I/O sink budget the dissipation rises to (12-5)*0.2 = 1.4 W and junction rise can exceed 100 C - derate VDD voltage or distribute I/O load across multiple pins to stay within thermal limits. Always check Microchip's PIC16HV540 datasheet thermal derating curve for production layouts.

Place a 0.1 uF decoupling capacitor as close as possible to the VDD pin (pin 14) and a bulk 1-10 uF electrolytic or tantalum on the same node. The on-chip shunt regulator needs local charge reservoir to handle transient I/O switching. For RC oscillator mode, keep the RC network within 0.5 inch of pins 15-16 (OSC1/OSC2); stray capacitance will skew the calibration of the WDT prescaler. Avoid running digital signal traces directly under the IC to minimize coupling into the high-impedance analog VDD shunt path.

Do not assume the PIC16HV540 is flash-programmable - it is OTP and must be programmed at production time using a 13V VPP pulse on the MCLR pin per Microchip's programming specification. Failing to provide proper VPP rise time will result in unreliable OTP writes. Also note that the WDT prescaler is shared with Timer0; enabling WDT will reduce the Timer0 range. Finally, the RA0-RA3 pins are not 5V-tolerant above VDD on most PIC16C5x variants - check datasheet absolute maximum ratings before connecting inputs from higher-voltage rails.

Compliance Information

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

RoHS compliant per Microchip product page and DigiKey listing. SOIC-18 /SO suffix denotes lead-free matte-tin plating. Industrial temp grade only - not AEC-Q100 qualified; for AEC-Q100 automotive applications choose a PIC16F1xxx variant.

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

Related Searches

PIC16HV540-20I/SO PIC16HV540 datasheet Microchip PIC16HV540 8-bit OTP microcontroller with on-chip voltage regulator SOIC-18 PIC microcontroller 12 I/O PIC16HV540 industrial 12V logic replacement PIC16HV540 vs PIC16C54 PIC16HV540 vs PIC16F1936 buy PIC16HV540-20I/SO online what is the program memory of PIC16HV540 PIC16HV540 SOIC-18 pinout PIC16HV540 12V shunt regulator MCU PIC16HV540-20I/SO price stock PIC16HV540 drop-in replacement SOIC-18

Related Components & Terms

Microchip Technology PIC16HV540 PIC16HV540-20I/SO PIC16HV540-04I/SO PIC16HV540T-20I/SO PIC16HV540-20I/P PIC16C54 PIC16F1936 PIC microcontroller 8-bit RISC OTP EPROM 12-bit instruction SOIC-18 shunt regulator high-voltage MCU logic replacement industrial temperature grade RoHS REACH AEC-Q100 watchdog timer Timer0 MCLR OSC1/OSC2
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