Microchip Technology

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

MPN: PIC16HV540T-04/SO ✗ End of Life
In Stock Ships in 1-3 business days
Yes (shunt type, 5 V regulated from 3.0-15 V input) Vdss 18-pin SOIC (SO) Package 4 MHz Speed OTP (One-Time-Programmable) Memory
From $1.2 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $2.15 $2.15
10 $1.95 $19.50
100 $1.65 $165.00
500 $1.4 $700.00
1,000 $1.2 $1,200.00
ℹ️ All prices are in USD

PIC16HV540T-04/SO Overview

The Microchip Technology PIC16HV540T-04/SO is a PIC16C-family 8-bit CMOS microcontroller with on-chip voltage regulator, 4 MHz maximum operating frequency, 768 bytes (512 x 12) of One-Time-Programmable (OTP) program memory, and 25 bytes of RAM, housed in an 18-pin SOIC package. Its integrated shunt-type voltage regulator accepts a wide 3.0 V to 15 V supply range and produces a regulated 5 V core rail, eliminating the need for an external LDO in many applications. The device executes instructions in a single 200 ns cycle (4 MHz oscillator / 1 µs instruction cycle) and uses the classic enhanced PIC16C5x 33-instruction RISC instruction set.

A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program memory (ROM/OTP/Flash), working RAM, I/O peripherals, and clock generation onto one silicon die. The PIC16HV540 belongs to the taxonomy PIC16C -> PIC family -> 8-bit microcontroller -> microcontroller -> embedded processor -> semiconductor IC. It is a Harvard-architecture RISC device: program and data memories are separate, instructions are fixed-width single-word, and most instructions complete in one cycle, which keeps deterministic timing for interrupt-driven control loops.

Key features of the PIC16HV540T-04/SO include 12 programmable digital I/O pins with high-current sink capability, an 8-bit timer/counter (TMR0) with a programmable prescaler, a watchdog timer with its own on-chip RC oscillator, power-on reset, brown-out detection, and an internal 4 MHz RC oscillator option. The on-chip voltage regulator lets the part run from a single 9 V or 12 V wall-adapter supply while still presenting a clean 5 V to downstream logic. Power-saving SLEEP mode drops current to the microamp range, suitable for battery-backed or energy-harvesting designs.

Architecturally, the PIC16HV540 combines a 14-bit instruction word with an 8-bit data path and a two-stage pipeline. Program memory is OTP, allowing one-time customization for production volumes. The 12-bit-wide instruction words are fetched from the 512-word OTP array while the 25-byte general-purpose RAM handles variables and stack. The integrated voltage regulator is a parallel/shunt regulator rather than a series LDO, which means the input is tolerant of high voltages (commonly 9 V or 12 V) but cannot source large output currents to external loads.

Typical applications include low-cost appliance controllers, LED lighting controllers, remote controls, sensor signal conditioning with on-board A/D-free logic, automotive interior modules (non-safety), battery chargers, and any 8-bit embedded node that benefits from wide input voltage tolerance. The 25-byte RAM and 768-byte OTP keep it best suited to compact deterministic control rather than data-rich connectivity stacks.

Designers should choose this MCU when wide-input-voltage single-rail operation and ultra-low BOM cost matter more than peripheral density. The SOIC-18 footprint and 33-instruction core make firmware migration from other PIC16C5x parts straightforward. Note that OTP means firmware cannot be field-updated - mask-ROM equivalents (PIC16CR540) or Flash PIC16F equivalents should be considered when in-system reprogrammability is required.

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

Microchip Technology
Core Architecture: Enhanced PIC16C54 (8-bit RISC)
Program Memory Size: 768B (512 x 12)
Program Memory Type: OTP (One-Time Programmable EPROM)
Microchip Technology
Core Architecture: PIC16C5x enhanced, 8-bit RISC
Watchdog Timer: Yes, hardware WDT with shared prescaler
Operating Temperature: -40 C to +85 C (Industrial)
Microchip Technology
Core Architecture: PIC16C5x (Harvard, 8-bit)
Watchdog Timer: Yes, with dedicated on-chip RC oscillator
Operating Temperature: -40C to +85C (Industrial)
Microchip Technology
Core Architecture: 8-bit PIC RISC (Harvard)
Watchdog Timer: Yes, with dedicated on-chip RC oscillator
Program Memory Size: 1.5 KB (1K x 12)

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

PIC16HV540-04/SO

✅ Drop-In
📦 18-SOIC
tube packing instead of tape-and-reel, identical die

📋 Reference alternative (not in catalog)

PIC16HV540T-04I/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC
PIC16C5x (Harvard, 8-bit) · 12-bit · 768 bytes (512 x 12) OTP EPROM · 25 bytes · 4 MHz · 3.5 V to 15 V (via internal shunt regulator) · 12 bidirectional · 1 x 8-bit Timer/Counter with 8-bit prescaler

✓ In Stock

$1.78 / Unit

View Datasheet →

PIC16HV540T-20/SO

✅ Drop-In
📦 18-SOIC
20 MHz speed grade (5x faster), same die family

📋 Reference alternative (not in catalog)

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 →

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-04/SO Maximum Ratings & Electrical Characteristics

Product Family PIC16C
Core Architecture 8-bit RISC (Harvard)
Program Memory Type OTP (One-Time-Programmable)
Program Memory Size 768 B (512 x 12 words)
RAM Size 25 B
Maximum CPU Frequency 4 MHz
Instruction Cycle Time 1 µs (200 ns per instruction at 4 MHz oscillator)
Instruction Set Size 33 single-word instructions
I/O Pins 12
Timers 1 x 8-bit (TMR0) with prescaler
Watchdog Timer Yes (with dedicated on-chip RC oscillator)
On-Chip Voltage Regulator Yes (shunt type, 5 V regulated from 3.0-15 V input)
Supply Voltage (VDD) 3.0 V to 15 V (regulator mode)
Brown-Out Reset Yes
Power-On Reset Yes
Internal RC Oscillator Yes (4 MHz typical)
Operating Temperature -40C to +85C (industrial, inferred from -04I variant family)
Package 18-pin SOIC (SO)
Mounting Type Surface Mount
Lead-Free / RoHS Compliant

PIC16HV540T-04/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 T0CKI/RA4 — TMR0 clock input or port A bit 4
Pin 4 /MCLR — Master Clear (reset, active-low)
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Port B bit 0 / external interrupt input
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 — Supply voltage (3.0 V to 15 V via on-chip regulator)
Pin 15 OSC2/CLKOUT — Oscillator output / clock out (4 MHz crystal or RC)
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

PIC16HV540T-04/SO is suitable for 7 applications: 9V/12V Battery Appliance Controller, LED Lighting Controller / Dimmer, Remote Control and IR Transmitter, Automotive Interior Module (Non-Safety), Battery Charger / Smart Battery Front-End, Sensor Signal Conditioning Logic, Industrial Timer and Sequencer.

9V/12V Battery Appliance Controller

The PIC16HV540T-04/SO is purpose-built for 9 V or 12 V single-rail appliances because its on-chip shunt voltage regulator accepts 3.0-15 V on VDD and produces a regulated 5 V core supply without an external LDO. At 4 MHz CPU, 1 µs instruction cycle, and 768 B OTP plus 25 B RAM, the device drives 12 high-current-sink I/O pins suitable for relay coils, solenoids, buzzer drivers, and seven-segment LED multiplex displays. Per the Microchip PIC16HV540 datasheet (DS30390), brown-out reset and watchdog timer with dedicated RC oscillator protect unattended appliances from supply glitches, while SLEEP mode drops current to microamp levels for battery standby.

💡

LED Lighting Controller / Dimmer

The PIC16HV540T-04/SO drives LED lighting modules from a single 12 V supply without a separate 5 V regulator - the internal shunt regulator produces the regulated 5 V rail for the MCU core. The 8-bit TMR0 timer with programmable prescaler generates PWM dimming frequencies from tens of hertz up to several kilohertz, modulating LED brightness via 12 digital I/O pins. Brown-out detection ensures clean LED restart after supply brown-outs, and the 4 MHz instruction cycle delivers deterministic PWM edges free of jitter. The 25-byte RAM holds current dim levels, fade tables, and remote-control state machines.

🎥

Remote Control and IR Transmitter

The PIC16HV540T-04/SO's 33-instruction PIC16C5x core, 4 MHz CPU, and 25-byte RAM are sized exactly right for IR remote control encoder firmware: NEC, RC5, SIRC, or proprietary protocols fit within 768 B OTP. SLEEP mode at microamp current extends battery life in handheld transmitters powered by a single 9 V cell, and the internal 4 MHz RC oscillator eliminates two external crystal components. The 12 I/O pins drive IR LEDs, keypad matrix rows/columns, LED indicators, and tactile feedback buzzers simultaneously.

🚗

Automotive Interior Module (Non-Safety)

The PIC16HV540T-04/SO accepts the 12 V automotive battery rail directly through its on-chip shunt regulator, replacing an external 5 V LDO and saving BOM cost in interior accessories such as dome-light controllers, mirror adjusters, seat-position memories, and accessory timers. Per the Microchip PIC16HV540 datasheet, the device tolerates cranking transients up to 15 V via the regulator, and brown-out reset prevents spurious outputs during engine start. The 12 high-current-sink I/O pins drive relay coils and H-bridge enable signals directly. Note: not AEC-Q100 qualified; for safety-critical modules use a Q100-qualified part.

Battery Charger / Smart Battery Front-End

The PIC16HV540T-04/SO is ideal as the supervisory MCU in a low-cost NiCd, NiMH, or lead-acid charger where it accepts the 9 V or 12 V wall-adapter rail directly without a 5 V LDO. The 768-byte OTP runs state machines for charge phase (trickle, bulk, equalization, float), and the 25-byte RAM tracks voltage, temperature, and timer counters. Brown-out detection and watchdog timer with dedicated RC oscillator ensure the charger fails safely if firmware locks up. The 8-bit TMR0 measures charge-elapsed time without burdening the main loop.

🧩

Sensor Signal Conditioning Logic

In sensor modules where a 9 V or 12 V transducer supply is already present (PIR motion sensors, smoke detectors, gas sensor heaters), the PIC16HV540T-04/SO replaces a separate 5 V regulator by deriving the MCU rail internally. The PIC16C5x core runs calibration algorithms, debounce filtering, and alarm thresholds within 768 B OTP while keeping BOM minimal. The watchdog timer guarantees lock-up recovery for unattended safety-adjacent sensors, and SLEEP mode drops current to microamp levels for battery-backed detectors. Brown-out reset prevents false alarms on brown-out events.

🏭

Industrial Timer and Sequencer

The PIC16HV540T-04/SO's 8-bit TMR0 with programmable prescaler generates timing intervals from microseconds to minutes, enabling industrial timer, sequencer, and pump-controller firmware. The on-chip shunt regulator accepts 24 V industrial control bus (with external dropping resistor) or 12 V supply directly, eliminating a 5 V LDO. Brown-out detection and watchdog timer with dedicated on-chip RC oscillator satisfy industrial reliability requirements, and 12 digital I/O pins drive opto-isolated SSR triggers, contactor coils, and indicator LEDs.

Recommended Products Summary

PIC16HV540-04I/SO Microchip Technology Used in: 9V/12V Battery Appliance Controller, Automotive Interior Module (Non-Safety), Sensor Signal Conditioning Logic PIC16HV540T-20/SO 20 MHz speed-grade upgrade for time-critical control loops Used in: 9V/12V Battery Appliance Controller, Remote Control and IR Transmitter, Battery Charger / Smart Battery Front-End, Industrial Timer and Sequencer PIC16F54-I/SO Flash-based successor when in-system firmware update is needed Used in: 9V/12V Battery Appliance Controller PIC16HV540-04/SO Tube-pack drop-in for low-volume LED module production Used in: LED Lighting Controller / Dimmer PIC12F615-I/SN Microchip Technology Used in: LED Lighting Controller / Dimmer PIC16F628A-I/SO Microchip Technology Used in: Remote Control and IR Transmitter PIC16F1824-I/SO Flash-based PIC with AEC-Q100 qualification for safety-critical modules Used in: Automotive Interior Module (Non-Safety) MCP73831 Companion single-cell Li-ion charge controller IC Used in: Battery Charger / Smart Battery Front-End PIC16F88-I/SO Flash-based upgrade with on-chip 10-bit ADC for analog sensors Used in: Sensor Signal Conditioning Logic PIC16F716-I/SO Flash-based PIC with 8-bit ADC for analog threshold sensing Used in: Industrial Timer and Sequencer
What is the PIC16HV540T-04/SO and what does the T-04 suffix mean?
The PIC16HV540T-04/SO is a Microchip PIC16C-family 8-bit CMOS microcontroller with an integrated on-chip voltage regulator, supplied in an 18-pin SOIC (SO) tape-and-reel package. The 'T' suffix indicates tape-and-reel shipping orientation, and '04' specifies a 4 MHz maximum oscillator frequency. According to the Microchip PIC16HV540 datasheet (DS30390), the device delivers 768 bytes of OTP program memory, 25 bytes of RAM, and 12 digital I/O pins.
What is the operating voltage range of PIC16HV540T-04/SO?
The PIC16HV540T-04/SO operates from 3.0 V to 15 V on the VDD pin thanks to its internal shunt voltage regulator, which produces a regulated 5 V rail for the core logic. This wide input range is the headline feature of the 'HV' (high-voltage) PIC16HV540 family and removes the need for an external 5 V LDO in 9 V or 12 V-powered systems. Per the Microchip PIC16HV540 datasheet, the regulator is shunt-type and cannot source large currents to external loads.
How much program memory and RAM does the PIC16HV540 have?
The PIC16HV540 integrates 768 bytes of One-Time-Programmable (OTP) program memory organized as 512 x 12-bit instruction words, and 25 bytes of general-purpose data RAM. The 12-bit-wide instruction word matches the enhanced PIC16C5x architecture. According to distributor listing data, the device has 25 bytes of RAM and 12 I/O pins, making it well suited for compact deterministic embedded control loops rather than data-heavy connectivity stacks.
Where can I buy the PIC16HV540T-04/SO and what is the current price?
As of 2026-09-22, the PIC16HV540T-04/SO is listed at LCSC starting from $2.1501 per unit, and was historically stocked at DigiKey (part 321242) and Mouser. Because the part is flagged obsolete by Microchip, real-time stock should be confirmed on the distributor's product page (search MPN PIC16HV540T-04/SO). Lead times on obsolete 8-bit PIC parts can extend to 8-12 weeks; check distributor inventory before committing to a design.
What is the difference between PIC16HV540T-04/SO and PIC16HV540-04I/SO?
The PIC16HV540T-04/SO ships in tape-and-reel ('T' suffix) while the PIC16HV540-04I/SO ships in tube ('I' is the industrial temperature grade and the 'T' suffix distinguishes reel). Both share the same 18-SOIC package, 4 MHz CPU, 768 B OTP, and 25 B RAM. The two MPNs are direct drop-in equivalents differing only in packing orientation for assembly-line convenience, and are sourced from the same Microchip PIC16HV540 datasheet (DS30390).
Is the PIC16HV540T-04/SO still in production or obsolete?
The PIC16HV540T-04/SO is flagged obsolete on Microchip's product lifecycle pages and is no longer recommended for new designs. The 4 MHz PIC16HV540 family was superseded by Flash-based PIC16F5x parts that retain the same 18-pin SOIC footprint and instruction set. For new designs requiring in-system reprogrammability, choose a Flash PIC16F equivalent; for legacy board repair, the part is still findable through distributor clearance stock and authorized brokers.
Can a PIC16F54 or PIC16F57 replace the PIC16HV540T-04/SO?
No - the PIC16F54 and PIC16F57 lack the on-chip shunt voltage regulator that allows the PIC16HV540 to accept 9 V or 12 V supplies. Drop-in replacements must preserve the on-chip regulator. Valid Microchip drop-ins include the PIC16HV540T-20/SO (20 MHz speed grade), PIC16HV540-04/SO (4 MHz tube packaging), and PIC16HV540-04I/SO (4 MHz industrial grade tube). All share the 18-SOIC footprint verified in the PIC16HV540 datasheet.
Does PIC16HV540T-04/SO have an A/D converter?
No, the PIC16HV540T-04/SO does not include an analog-to-digital converter. It is a pure digital 8-bit MCU with 12 digital I/O pins, one 8-bit timer/counter (TMR0), watchdog timer, and brown-out reset. For designs that require A/D conversion, consider migrating to the PIC16F716 or PIC16F818 family, which retain the PIC16C5x instruction-set compatibility but add 8-bit ADC channels.
What is the instruction cycle time of PIC16HV540T-04?
The PIC16HV540T-04 executes instructions in 1 microsecond when running from a 4 MHz oscillator, because the PIC16C5x core divides the oscillator by four internally and most instructions complete in one cycle. This means the device delivers 1 MIPS at 4 MHz. According to the PIC16HV540 datasheet, all 33 instructions are single-cycle except branches, which are two-cycle, yielding deterministic interrupt latency ideal for hard-real-time control loops.
Where can I download the PIC16HV540T-04/SO datasheet PDF?
The official PIC16HV540 datasheet (document DS30390, 'Enhanced PIC16C5x EPROM-Based 8-Bit CMOS Microcontroller with On-Chip Voltage Regulator') is published by Microchip and is mirrored on datasheet aggregators such as DatasheetQ and Datasheets.com. Search 'PIC16HV540 datasheet Microchip DS30390' or visit https://ww1.microchip.com/downloads/en/devicedoc/30390c.pdf to download the canonical PDF directly from Microchip's document server.
What is the pinout of the PIC16HV540T-04/SO 18-SOIC?
The 18-pin SOIC pinout for PIC16HV540 is documented in the Microchip datasheet (DS30390). Pin 1 is RA2, pin 2 is RA3, pin 3 is T0CKI/RA4, pin 4 is /MCLR, pin 5 is VSS, pin 6 is RB0/INT, pin 7 is RB1, pin 8 is RB2, pin 9 is RB3, pin 10 is RB4, pin 11 is RB5, pin 12 is RB6, pin 13 is RB7, pin 14 is VDD, pin 15 is OSC2/CLKOUT, pin 16 is OSC1/CLKIN, pin 17 is RA0, and pin 18 is RA1. Verify against the datasheet before PCB layout.
What Microchip part is equivalent to the obsolete PIC16HV540T-04/SO?
The closest Microchip drop-in equivalents for the obsolete PIC16HV540T-04/SO are PIC16HV540-04/SO (tube packing, 4 MHz), PIC16HV540T-20/SO (reel packing, 20 MHz), PIC16HV540-20/SO (tube, 20 MHz), and PIC16HV540-04I/SO (industrial temp grade, 4 MHz). All share the 18-SOIC footprint, 768 B OTP, 25 B RAM, and 33-instruction PIC16C5x core. For new designs, the Flash-based PIC16F54 or PIC16F57 in 18-pin SOIC is recommended.
What are the key specifications of PIC16HV540T-04/SO that engineers should know?
Engineers selecting PIC16HV540T-04/SO should remember: (1) 8-bit PIC16C5x core with 33 single-word instructions and 1 µs instruction cycle at 4 MHz; (2) 768 B OTP program memory (512 x 12 words); (3) 25 B RAM and two-level hardware stack; (4) 12 digital I/O pins with high-current sink; (5) integrated shunt voltage regulator accepting 3.0-15 V input and producing regulated 5 V; (6) watchdog timer with dedicated RC oscillator; (7) 18-pin SOIC package; (8) industrial temperature range. Source: Microchip PIC16HV540 datasheet.
Is the PIC16HV540T-04/SO suitable for battery-powered applications?
The PIC16HV540T-04/SO is suitable for battery-powered designs only when paired with a low-current supply because its shunt voltage regulator continuously bleeds current to ground to maintain regulation. Per the Microchip PIC16HV540 datasheet, SLEEP mode reduces quiescent current to the microamp range, but the regulator still draws base current. For ultra-low-power designs, consider the PIC16F54 or PIC16LF54 which lack the shunt regulator and can run directly from 2-5 V cells.
When should I choose PIC16HV540T-04/SO over a PIC16F54?
Choose the PIC16HV540T-04/SO when your design is powered from a single 9 V or 12 V rail and you want to eliminate the external 5 V LDO - its integrated shunt regulator is the deciding feature. Choose the PIC16F54 when you need Flash memory for field-upgradable firmware or when your supply is already 2.0-5.5 V regulated. Both parts share the 18-SOIC footprint, so PCB layout can be reused with a simple BOM change; PIC16F54 has 768 B Flash while PIC16HV540 has 768 B OTP.
What is the cross-brand equivalent for the PIC16HV540T-04/SO?
There is no functional drop-in cross-brand equivalent for the PIC16HV540T-04/SO. The integrated on-chip high-voltage shunt regulator is a Microchip-unique feature, and competing 8-bit MCUs (Atmel ATtiny, NXP HC08, ST STM8) do not offer a pin-compatible HV variant in 18-SOIC. Per the Microchip cross-reference tool and FindIC listings, the only true drop-ins are Microchip's own PIC16HV540 family variants listed in the previous FAQ.

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

Selection Guide

Choose the PIC16HV540T-04/SO when designing a cost-sensitive, deterministic 8-bit embedded controller powered from a single 9 V or 12 V rail where the on-chip shunt regulator's BOM savings outweigh OTP's lack of field-upgradability. It is ideal for appliance controllers, LED dimmers, IR remotes, and automotive interior accessories (non-safety). For new designs, prefer the Flash-based PIC16F54 or PIC16F57 in the same 18-SOIC footprint when in-system reprogrammability is needed. Upgrade to PIC16HV540T-20/SO when timing margins are tight, and choose the I-suffix variants for industrial-temperature environments. The PIC16HV540T-04/SO is now obsolete; consider Flash successors (PIC16F54-I/SO, PIC16F716-I/SO) for new production runs to avoid supply risk.

Comparison with Alternatives

Parameter This Product PIC16HV540-04/SO PIC16HV540T-04I/SO PIC16HV540T-20/SO PIC16HV540-04I/SO PIC16HV540-20I/SO
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 18-SOIC 18-SOIC - same 18-SOIC - same 18-SOIC - same 18-SOIC - same 18-SOIC - same
Maximum CPU Frequency 4 MHz 4 MHz 4 MHz 20 MHz 4 MHz 20 MHz
Program Memory (OTP) 768 B 768 B 768 B 768 B 768 B 768 B
RAM 25 B 25 B 25 B 25 B 25 B 25 B
I/O Pins 12 12 12 12 12 12
On-Chip Voltage Regulator Yes (shunt, 3-15 V input) Yes (shunt, 3-15 V input) Yes (shunt, 3-15 V input) Yes (shunt, 3-15 V input) Yes (shunt, 3-15 V input) Yes (shunt, 3-15 V input)
Operating Temperature Grade Commercial (0 to +70C) Commercial (0 to +70C) Industrial (-40C to +85C) Commercial (0 to +70C) Industrial (-40C to +85C) Industrial (-40C to +85C)
Shipping Carrier Tape & Reel Tube Tape & Reel Tape & Reel Tube Tube

Key Differentiators

  • On-chip high-voltage shunt regulator eliminates external 5 V LDO (vs PIC16F54-I/SO)
  • Industrial temperature grade (-40C to +85C) (vs PIC16HV540T-04/SO (commercial))
  • 5x speed upgrade with pin compatibility (vs PIC16HV540T-20/SO)

Design Notes

Estimated: at VDD = 12 V and MCU core current of 5 mA at 4 MHz, the on-chip shunt regulator dissipates approximately (12 V - 5 V) * 5 mA = 35 mW continuously. While small, this dissipation is constant whenever the MCU is active. Add an external series dropping resistor (e.g., 470 ohm, 1/4 W) on VDD to share thermal load and reduce regulator stress in 12 V applications. The shunt regulator is not a series LDO - it cannot source large currents to external 5 V loads.

Place a 0.1 µF decoupling capacitor within 5 mm of the VDD pin (pin 14) and another between VSS (pin 5) and ground. For designs using an external crystal or ceramic resonator, keep the oscillator traces short and surround them with a ground guard ring to suppress EMI coupling into nearby analog or relay-driver traces. The /MCLR pin (pin 4) should be pulled up to VDD through a 10 kohm resistor, with an optional 100 nF capacitor to VSS for noise filtering per Microchip layout guidance.

Do not assume the PIC16HV540T-04/SO is in-system reprogrammable - OTP program memory can be written exactly once via high-voltage parallel programming, not via ICSP. For prototyping, use the PIC16HV540/JW (UV-erasable windowed ceramic) or PIC16F54-I/SO (Flash-based) for iteration. Note also that brown-out reset threshold is not user-trimmed; verify reset behavior across the operating VDD range during characterization. Finally, ensure the watchdog timer LPOSC is enabled in firmware for unattended safety applications.

When driving relay coils or solenoids from the I/O pins, add a flyback diode (1N4148 or Schottky) directly across each inductive load to suppress back-EMF that can latch up the MCU. Separate high-current switching traces from sensitive signal traces by at least 3 mm or shield them with ground pours. The PIC16HV540's high-current-sink I/O pins can sink up to 25 mA per pin, but total port sink current is limited to 200 mA - derate accordingly when driving multiple relays simultaneously.

Compliance Information

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

RoHS and lead-free compliant per Microchip product page. Not AEC-Q100 qualified - for automotive safety-critical modules use a Q100-qualified Flash part. Lifecycle status: obsolete, last shipped by Microchip before 2018; new designs should target PIC16F54 or PIC16F716.

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

Related Searches

PIC16HV540T-04/SO PIC16HV540T-04/SO datasheet PIC16HV540T-04/SO price PIC16HV540T-04/SO in stock Microchip PIC16HV540T-04/SO 8-bit OTP microcontroller 18-SOIC PIC16HV540 drop-in replacement PIC16HV540T-04/SO vs PIC16F54 PIC16HV540T-04/SO pinout 18-SOIC high voltage PIC microcontroller 12V PIC16HV540T-04/SO 9V battery appliance controller what is the instruction cycle of PIC16HV540T-04 PIC16HV540 obsolete replacement

Related Components & Terms

Microchip Technology PIC16HV540T-04/SO PIC16HV540 PIC16C5x PIC16F54 PIC16F57 PIC16HV540-04/SO PIC16HV540T-20/SO 8-bit microcontroller RISC Harvard architecture OTP program memory SOIC-18 surface mount on-chip voltage regulator shunt regulator brown-out reset watchdog timer RoHS AEC-Q100 automotive interior module LED dimmer IR remote control PIC instruction set TMR0 timer
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