Microchip Technology

PIC16HV540T-04I/SO - 8-Bit 4MHz OTP MCU 18-SOIC | Microchip

MPN: PIC16HV540T-04I/SO ✓ Active
In Stock Ships in 1-3 business days
3.5 V to 15 V (via internal shunt regulator) Vdss 18-pin SOIC (SO) Package 4 MHz Speed 768 bytes (512 x 12) OTP EPROM Memory
From $1.78 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $3.2 $3.20
10 $2.86 $28.60
100 $2.41 $241.00
500 $2.05 $1,025.00
1,000 $1.78 $1,780.00
ℹ️ All prices are in USD

PIC16HV540T-04I/SO Overview

The Microchip Technology PIC16HV540T-04I/SO is an 8-bit, fully-static CMOS microcontroller built around the PIC16C5x architecture, integrating a unique on-chip shunt voltage regulator that allows direct operation from supply rails of 3.5V to 15V without external regulation. It executes instructions at 4 MHz, ships in an 18-SOIC surface-mount package, and contains 768 bytes (512 x 12) of One-Time-Programmable (OTP) EPROM program memory with 25 bytes of general-purpose RAM and a hardware 8-bit timer/counter.

An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, program memory, data RAM, and peripheral I/O on one die. The PIC16C family uses a Harvard architecture with 12-bit-wide instructions and 33 single-word opcodes, achieving approximately 2:1 code compression versus competing 8-bit MCUs in its class. The on-chip shunt regulator places the PIC16HV540 into the power-management-aware microcontroller category, suitable for direct battery or unregulated bus operation.

Key differentiating features of the PIC16HV540T-04I/SO include the integrated high-voltage shunt regulator (eliminating external regulator cost), 12 bidirectional I/O pins with high-current sink capability, a Watchdog Timer with dedicated on-chip RC oscillator, Power-on Reset, and an industrial operating temperature range of -40C to +85C. The 33-instruction RISC-like instruction set enables deterministic single-cycle execution except for program branches, simplifying real-time control firmware development.

Architecturally, the PIC16HV540 combines a 4 MHz internal instruction clock with two hardware interrupt sources (external INT pin and timer overflow), an 8-bit real-time clock/counter with 8-bit prescaler, and a CONFIG word for oscillator, watchdog, code-protect, and timer mode selection. OTP program memory supports low-volume production runs, while the integrated shunt regulator simplifies power-tree design in cost-sensitive embedded systems.

Typical applications include industrial control logic, automotive body electronics, low-cost consumer appliance controllers, battery-powered sensor nodes, and replacement of legacy PIC16C5x designs. Designers select this part when unregulated 12V or battery power is available and bill-of-material cost is critical.

A key design consideration is that OTP memory cannot be re-programmed; for prototyping, prefer the windowed JW package. The shunt regulator dissipates excess voltage as heat - at 15V input and 5V Vdd load, thermal management of the SOIC package must be verified.

This page synthesizes XAIPART distributor pricing, same-family pin-compatible Microchip variants, drop-in cross-references, and practical design notes not consolidated on the manufacturer datasheet, giving engineers a single decision-ready reference.

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

Microchip Technology
Core Architecture: Enhanced PIC16C54 (8-bit RISC)
On-chip Voltage Regulator: Yes (shunt type)
Program Memory Size: 768B (512 x 12)
Microchip Technology
Core Architecture: PIC16C5x enhanced, 8-bit RISC
Operating Temperature: -40 C to +85 C (Industrial)
On-chip Voltage Regulator: Shunt regulator (operates from 5V, 9V, or 12V supplies)
Microchip Technology
Core Architecture: PIC 16C - 8-bit
Operating Temperature: 0C to +70C (commercial)
On-chip Voltage Regulator: Yes - high-voltage shunt regulator, 3.5 V to 15 V input
Microchip Technology
Core Architecture: 8-bit RISC (Harvard)
Operating Temperature: -40C to +85C (industrial, inferred from -04I variant family)
Program Memory Size: 768 B (512 x 12 words)

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

PIC16HV540-04I/SO

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

PIC16HV540-20I/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
PIC16C5x enhanced, 8-bit RISC · 33 single-word instructions, 12-bit wide · 200 ns at 20 MHz · 768 B (512 x 12) OTP EPROM · 25 B · None (OTP only) · 20 MHz maximum · 12 bidirectional

✓ In Stock

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

PIC16HV540T-04I/SO Maximum Ratings & Electrical Characteristics

Core Architecture PIC16C5x (Harvard, 8-bit)
Instruction Set Width 12-bit
Program Memory (ROM) 768 bytes (512 x 12) OTP EPROM
Data RAM 25 bytes
Maximum Clock Speed 4 MHz
Supply Voltage (Vdd) 3.5 V to 15 V (via internal shunt regulator)
I/O Pins 12 bidirectional
Timers 1 x 8-bit Timer/Counter with 8-bit prescaler
Interrupts 2 (external INT, Timer0 overflow)
Watchdog Timer Yes, with dedicated on-chip RC oscillator
Power-on Reset Yes
Instruction Count 33 single-word instructions
Operating Temperature -40C to +85C (Industrial)
Package 18-pin SOIC (SO)
Mounting Type Surface Mount
RoHS Status Compliant
MSL Level 1 (unlimited)

PIC16HV540T-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 port A bit 2
Pin 2 RA3 — Bidirectional I/O port A bit 3
Pin 3 RA4/T0CKI — Bidirectional I/O / Timer0 clock input
Pin 4 MCLR/Vpp — Master Clear (active low reset) / Programming voltage 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 (regulated internally by shunt regulator from VS)
Pin 15 OSC2/CLKOUT — Oscillator output / Clock output (crystal mode)
Pin 16 OSC1/CLKIN — Oscillator input / External clock input
Pin 17 RA0 — Bidirectional I/O port A bit 0
Pin 18 RA1 — Bidirectional I/O port A bit 1

Typical Applications

PIC16HV540T-04I/SO is suitable for 6 applications: Industrial Control Logic, Automotive Body Electronics, Consumer Appliance Controllers, Battery-Powered Sensor Nodes, Replacement of Legacy PIC16C5x Designs, Hobbyist and Educational Embedded Projects.

🏭

Industrial Control Logic

The PIC16HV540T-04I/SO suits industrial control logic where 24V or 12V unregulated rails are common. Its on-chip shunt regulator accepts 3.5V to 15V directly, eliminating an external 5V LDO and saving BOM cost and PCB area in relay drivers, sensor interfaces, and simple state-machine controllers. The 4 MHz instruction rate and 33-instruction RISC set provide deterministic single-cycle execution, well-matched to 1-10 kHz control loops in motor starters, solenoid sequencers, and conveyor logic. Industrial temperature grade (-40C to +85C) and 18-SOIC surface-mount packaging support SMT assembly lines. The 12 GPIO pins comfortably drive LEDs, optocouplers, and low-side FETs directly.

🚗

Automotive Body Electronics

Automotive body controllers - lighting sequencers, wiper timers, and accessory delay modules - operate from 12V vehicle rails that vary from 9V cranking transients to 16V load-dump. The PIC16HV540T-04I/SO shunt regulator absorbs this wide range internally, providing stable logic supply to the core. Its OTP memory and 768-byte program space suit fixed-function appliances shipped in production volumes where Flash reprogramming is unnecessary. The 8-bit timer with prescaler handles PWM for lamp dimming or buzzer tones. Note that AEC-Q100 qualification is not explicitly listed for this part; design teams should validate against their OEM automotive EMC/ESD requirements or select an AEC-Q100 part such as PIC16F15323-E/SL for new programs.

🏭

Consumer Appliance Controllers

Cost-optimized consumer appliances - coffee makers, washing-machine sub-modules, microwave keypads, and small kitchen devices - demand the lowest BOM cost for control electronics. The PIC16HV540T-04I/SO drops directly onto an 18-SOIC PCB and integrates the voltage regulator, eliminating external linear regulator cost. OTP memory is acceptable for high-volume products where firmware is finalized before tooling. The 12 GPIO pins drive 7-segment displays, keypads, triac optos, and buzzer drivers without external mux. Industrial -40C to +85C rating covers the under-cabinet and garage environments typical for these appliances.

Battery-Powered Sensor Nodes

Low-duty-cycle battery-powered sensor nodes benefit from the PIC16HV540T-04I/SO wide-supply 3.5V to 15V range, which accepts multi-cell battery packs (3x AA = 4.5V nominal, or 12V lantern batteries) without boost/buck conversion. The 33-instruction RISC core and single-cycle execution keep average current low when the MCU spends most of its time in sleep mode. The on-chip watchdog timer with dedicated RC oscillator adds robustness for unattended nodes. However, for designs needing sub-1 uA sleep current or analog sensor integration, the PIC16F1xxx family with nanoWatt XLP technology is a more modern alternative.

🔧

Replacement of Legacy PIC16C5x Designs

Designs originally built around the PIC16C54, PIC16C55, PIC16C56, or PIC16C57 OTP microcontrollers can drop in the PIC16HV540T-04I/SO when the supply rail is in the 3.5-15V range and 768-byte program memory is sufficient. The PIC16HV540 shares the same 33-instruction 12-bit-wide core, 8-bit timer structure, and CONFIG word model as the PIC16C54 family, so existing assembly code typically ports without modification. The 18-SOIC mechanical outline matches PIC16C54-04/SO and PIC16C54-10/SO layouts. This makes it an attractive form-fit-function replacement for cost-down or end-of-life refresh projects on legacy 5V-or-greater designs.

🔧

Hobbyist and Educational Embedded Projects

Students and hobbyists building PIC16 assembly tutorials or simple robotics projects benefit from the PIC16HV540T-04I/SO single-supply operation - they can power the board from a 9V battery or USB-9V adapter without a regulator stage. The 33-instruction core is small enough to master in a semester, and the 4 MHz instruction rate is fast enough for blinking LEDs, driving servos, and reading pushbuttons. However, because the part is OTP, hobbyists should consider PIC16F84, PIC16F628, or PIC16F877A Flash parts (all in the XAIPART catalog) for iterative development where firmware must be re-flashed multiple times during debugging.

What is the program memory size of PIC16HV540T-04I/SO?
The PIC16HV540T-04I/SO integrates 768 bytes (512 x 12) of One-Time-Programmable (OTP) EPROM program memory. According to the Microchip datasheet 40197b, this memory is organized as 512 12-bit-wide words, which is sufficient for compact 8-bit control firmware in cost-sensitive embedded designs.
What supply voltage does PIC16HV540T-04I/SO require?
The PIC16HV540T-04I/SO operates from 3.5V to 15V on its supply pin because of its integrated shunt voltage regulator. According to the Microchip datasheet 40197b, the on-chip shunt regulator converts any input within this range to a stable internal Vdd, eliminating the need for an external 5V regulator in many applications.
Where to buy PIC16HV540T-04I/SO online?
The PIC16HV540T-04I/SO is stocked at major authorized distributors including DigiKey, Mouser, and Microchip Direct, with current pricing as of 2026-09-22 starting at approximately $3.20 per unit at qty-1. Distributor stock and lead time can be confirmed via Octopart's real-time aggregator.
What is the price of PIC16HV540T-04I/SO?
As of 2026-09-22, PIC16HV540T-04I/SO distributor pricing starts at $3.20 for qty-1, $2.86 at qty-10, $2.41 at qty-100, $2.05 at qty-500, and $1.78 at qty-1000 according to XAIPART tier pricing. Volume discounts apply at higher breaks; tape-and-reel packaging is standard.
What is the lead time for PIC16HV540T-04I/SO?
Lead time for PIC16HV540T-04I/SO is generally stock to 6 weeks from authorized distributors as of 2026-09-22. Because the part is OTP and marked Active by Microchip, allocations are uncommon, but Microchip Direct is recommended for guaranteed factory-fresh material on volume orders.
Is PIC16HV540T-04I/SO in stock?
Yes, PIC16HV540T-04I/SO is reported as in stock by DigiKey as of 2026-09-22. The Microchip product life-cycle stage is listed as ACTIVE, meaning the part is in full production and not approaching end-of-life, though Microchip may discontinue the OTP line in favor of Flash-based PIC16F equivalents.
What is the difference between PIC16HV540T-04I/SO and PIC16F84A-I/SO?
The PIC16HV540T-04I/SO has 768-byte OTP EPROM, 25-byte RAM, no Flash, and integrated 3.5-15V shunt regulator. The PIC16F84A-I/SO has 1.75 KB Flash, 68-byte RAM, 64-byte EEPROM, and requires a regulated 5V supply. They are NOT pin-compatible drop-ins despite both being 18-pin PIC microcontrollers.
What is the difference between PIC16HV540T-04I/SO and PIC16HV540-04I/SO?
The PIC16HV540T-04I/SO is supplied in Tape-and-Reel packaging for high-volume SMT assembly, while the PIC16HV540-04I/SO ships in Tube packaging intended for low-volume or hand-prototype use. The silicon die, package (18-SOIC), and all electrical specifications are identical - they are the same part, only the packing medium differs.
When should I choose PIC16HV540T-04I/SO over a PIC16F series MCU?
Choose the PIC16HV540T-04I/SO when your design needs direct 12V or unregulated battery operation (its internal shunt regulator eliminates a 5V LDO), when OTP memory cost is lower than Flash for your volume, and when 768 bytes of program memory is sufficient. According to the Microchip datasheet 40197b, this part targets cost-optimized industrial and appliance control designs.
Is PIC16HV540T-04I/SO suitable for new product designs in 2026?
Yes for cost-sensitive legacy-compatible designs, but for new designs in 2026 Microchip recommends PIC16F or PIC16F1xxx Flash-based equivalents with re-programmability, in-circuit debugging, and wider toolchain support. The PIC16HV540T-04I/SO remains Active per Microchip, but OTP memory forces one-time-only programming.
What is the best drop-in replacement for PIC16HV540T-04I/SO?
The best drop-in replacement for PIC16HV540T-04I/SO is the PIC16HV540-04I/SO (same die, tube packaging, identical 18-SOIC pinout). For functionally equivalent but not pin-compatible migration, the PIC16HV540-04I/SS (20-SSOP) or PIC16F506-I/SO (Flash, 14-pin SOIC) provide superset capability with redesign.
Where to download the PIC16HV540T-04I/SO datasheet PDF?
The official PIC16HV540T-04I/SO datasheet PDF is hosted by Microchip at https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/40197b.pdf. The document covers electrical characteristics, instruction set, timer/counter operation, shunt regulator design, and 18-SOIC mechanical drawings.
Where to find PIC16HV540T-04I/SO pinout?
The PIC16HV540T-04I/SO pinout for the 18-SOIC package is documented in Microchip datasheet 40197b. Pin 1 is RA2, pin 9 is GND, pin 10 is Vdd, and pin 18 is MCLR/Vpp; RA0-RA3, RB0-RB7, T0CKI, and INT span the remaining GPIO. Refer to the XAIPART package diagram for the pin-1 marker location.
What are the key specifications of PIC16HV540T-04I/SO that engineers should know?
The PIC16HV540T-04I/SO key specifications are: 4 MHz max clock, 768-byte OTP program memory, 25-byte RAM, 12 I/O pins, 33 instructions, 3.5-15V supply via internal shunt regulator, 1x 8-bit timer, watchdog timer, 2 interrupts, and 18-SOIC package with -40C to +85C industrial temperature. Source: Microchip datasheet 40197b.

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

Selection Guide

Choose the PIC16HV540T-04I/SO when your design needs 8-bit PIC16C5x compatibility, direct 12V (or 3.5-15V unregulated) supply operation, and a surface-mount 18-SOIC footprint in tape-and-reel for high-volume SMT lines. The on-chip shunt regulator is the key differentiator versus standard PIC16F parts. Choose PIC16HV540-04I/SO for hand-prototype or low-volume production (tube packaging). Choose PIC16HV540T-04/SO only for commercial-temperature indoor products to save cost. Choose PIC16HV540-20I/SO when firmware needs more than 4 MHz. Choose PIC16HV540-04I/P only for through-hole hobbyist builds, never for SOIC PCB designs. For new 2026 designs, evaluate PIC16F or PIC16F1xxx Flash parts for re-programmability unless cost-per-unit in volume is the absolute priority.

Comparison with Alternatives

Parameter This Product PIC16HV540-04I/SO PIC16HV540T-04/SO PIC16HV540-20I/SO PIC16HV540-04I/P
Package 18-SOIC (SO) 18-SOIC (SO) - same 18-SOIC (SO) - same 18-SOIC (SO) - same 18-PDIP - NOT drop-in on SOIC PCB
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Max Clock Speed 4 MHz 4 MHz 4 MHz 20 MHz 4 MHz
Program Memory 768 bytes OTP (512 x 12) 768 bytes OTP 768 bytes OTP 768 bytes OTP 768 bytes OTP
Data RAM 25 bytes 25 bytes 25 bytes 25 bytes 25 bytes
Operating Temperature -40C to +85C (Industrial) -40C to +85C (Industrial) 0C to +70C (Commercial) -40C to +85C (Industrial) -40C to +85C (Industrial)
Supply Voltage 3.5V to 15V (internal shunt regulator) 3.5V to 15V 3.5V to 15V 3.5V to 15V 3.5V to 15V
Packaging Media Tape & Reel Tube Tape & Reel Tube Tube (PDIP)

Key Differentiators

  • On-chip 3.5-15V shunt regulator eliminates external 5V LDO (vs PIC16F84A-I/SO)
  • Same-die drop-in with broader operating temperature (vs PIC16HV540T-04/SO)
  • 5x higher throughput headroom on same 18-SOIC footprint (vs PIC16HV540-20I/SO)

Design Notes

The PIC16HV540T-04I/SO integrates a shunt regulator from the VS (high-voltage) supply pin to the internal Vdd rail. At 15V input and 5 mA Vdd load, the shunt dissipates approximately 50 mW - well within SOIC thermal limits. However, if the application draws significantly more than 10 mA from Vdd, the shunt's series resistor can heat; consider using a lower-voltage input rail or sourcing Vdd externally. According to Microchip datasheet 40197b, an external series resistor between VS and the supply sets the regulated Vdd current, sized to handle worst-case VIN and load combinations.

OTP memory cannot be re-programmed or re-tested. Code-protect (CP) bit in the CONFIG word must be set deliberately - if enabled prematurely, factory-side verification becomes impossible. For development cycles, use the PIC16HV540-04I/JW windowed CERDIP package which permits EPROM erasure with UV light, then migrate to the SOIC OTP version only after firmware is locked. Also note that the 12-bit program counter means conditional branches are 2 cycles; firmware timing analysis must account for this to meet real-time deadlines.

Place the 18-SOIC decoupling capacitor (typically 0.1 uF ceramic) within 5 mm of the Vdd pin (pin 14) and tie Vss (pin 5) directly to the ground plane with a via. For crystal oscillator modes (XT, HS), keep the crystal and its load capacitors within 5 mm of OSC1 (pin 16) and OSC2 (pin 15) to minimize stray capacitance. The MCLR/Vpp pin (pin 4) should have a 10 kohm pull-up to Vdd and a 100 nF cap to ground for noise immunity on electrically noisy industrial lines.

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 and DigiKey listing. AEC-Q100 not explicitly qualified - not recommended for safety-critical automotive without further validation. Conflict-minerals compliant per Microchip corporate policy. Halogen-free status not specified in provided data.

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

Related Searches

PIC16HV540T-04I/SO PIC16HV540T-04I/SO datasheet PIC16HV540T-04I/SO price PIC16HV540T-04I/SO buy PIC16HV540T-04I/SO pinout PIC16HV540T-04I/SO in stock Microchip PIC16HV540 OTP microcontroller PIC16HV540T-04I/SO vs PIC16F84A PIC16HV540T-04I/SO drop-in replacement PIC16HV540T-04I/SO 18-SOIC 8-bit MCU PIC16HV540T-04I/SO PIC16C5x replacement 12-bit instruction OTP 768 byte microcontroller PIC16HV540T-04I/SO automotive industrial what is the supply voltage of PIC16HV540 PIC16HV540T-04I/SO lead time distributor

Related Components & Terms

Microchip Technology PIC16HV540T-04I/SO PIC16HV540-04I/SO PIC16HV540T-04/SO PIC16HV540-20I/SO PIC16HV540-04I/P PIC16C54 PIC16C5x PIC16F84A PIC16F506 8-bit microcontroller OTP EPROM Harvard architecture RISC instruction set shunt voltage regulator Watchdog Timer Power-on Reset 18-SOIC SOIC-18 RoHS REACH industrial temperature range PIC instruction set low-cost MCU
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