PIC16HV540-04/SS - 4MHz 8-Bit MCU with Shunt Vreg | Microchip
料号: PIC16HV540-04/SS ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 1 | $4.1 | $4.10 |
| 10 | $3.68 | $36.80 |
| 100 | $3.15 | $315.00 |
| 500 | $2.74 | $1,370.00 |
| 1,000 | $2.45 | $2,450.00 |
PIC16HV540-04/SS 概述
A microcontroller (MCU) is an integrated circuit containing a CPU core, program memory, RAM, and programmable I/O peripherals on a single die. Within the MCU taxonomy the PIC16HV540 sits in the 8-bit PIC16 baseline/mid-range family (hypernyms: PIC16 -> baseline PIC -> 8-bit microcontroller -> microcontroller -> semiconductor). The PIC16C5x instruction set - the direct predecessor to the PIC16HV540 - is widely regarded as the simplest industrial MCU ISA, which keeps assembly-language learning curves short and code density high.
Key specifications include 12 I/O pins, an internal RC or external clock option, a 4 MHz maximum oscillator frequency, and a 1.5 ms power-on reset. The internal shunt regulator (commonly referred to as the 'HV' or high-voltage block) draws its bias current directly from the supply pin and clamps VDD to a regulated 5 V nominal regardless of VIN in the 3.5 V to 15 V range - though operationally the part is specified for supply voltages 3.5 V to 15 V with full-speed performance.
Typical applications span remote keyless-entry fobs, low-end IR/RF remote controls, simple sensor signal conditioning, and appliance timer controllers. The integrated regulator, low pin count, and OTP program memory make the PIC16HV540 attractive for sealed, low-cost, replaceable consumer products where software is factory-customized and field updates are not required.
When designing with this part, evaluate whether OTP or windowed EPROM matches your production flow. Plan for a 25-byte RAM ceiling and a single 8-bit timer - sufficient for blink-and-beep logic but tight for any protocol stack. For designs needing flash re-programmability, drop-in PIC16F alternatives exist in the same SSOP-20 footprint.
直接替换替代料: PIC16HV540-04/SS ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC16HV540-04/SS (相同外形与封装尺寸) ——差异在于 Package, On-chip Voltage Regulator, Program Memory Size, Program Memory Type, Timers.
快速对比工具——选择替代料号进行并排对比:
PIC16HV540-04I/SS
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$1.05 / 个
查看数据手册 →PIC16HV540T-04/SS
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC16F84A-I/SS
✅ 直接替换📋 参考替代料(不在目录中)
PIC16F84-04/SS
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
PIC16HV540-20/SS
✅ 直接替换 ⚠️ 规格未核验✓ 有现货
$1.8 / 个
查看数据手册 →PIC16HV540-04/SS 最大额定值与电气特性
| Program Memory Type | OTP EPROM (12-bit wide) |
| Program Memory Size | 512 x 12 words (768 bytes) |
| RAM Size | 25 bytes |
| CPU Core | 8-bit PIC16C5x baseline |
| Instruction Set | 33 single-word instructions, 12-bit wide |
| 最大时钟频率 | 4 MHz |
| Supply Voltage (VDD) | 3.5 V to 15 V |
| Integrated Voltage Regulator | Internal shunt regulator (HV series) |
| I/O Pins | 12 |
| Timers | 1 x 8-bit timer/counter |
| Watchdog Timer | Yes (internal RC based) |
| 封装 | SSOP-20 (5.30 mm body width) |
| 工作温度范围 | 0C to +70C (commercial) |
| 安装类型 | Surface Mount (Gull-wing leads) |
| Terminal Count | 20 |
PIC16HV540-04/SS 引脚配置
| 引脚 1 | RA2 — Bidirectional I/O, Port A bit 2 |
| 引脚 2 | RA3 — Bidirectional I/O, Port A bit 3 |
| 引脚 3 | RA4/RTCC — Bidirectional I/O, Port A bit 4 / Timer0 clock input |
| 引脚 4 | MCLR/VPP — Master clear reset (active low) / programming voltage input |
| 引脚 5 | VSS — Ground reference |
| 引脚 6 | RB0/INT — Bidirectional I/O, Port B bit 0 / external interrupt |
| 引脚 7 | RB1 — Bidirectional I/O, Port B bit 1 |
| 引脚 8 | RB2 — Bidirectional I/O, Port B bit 2 |
| 引脚 9 | RB3 — Bidirectional I/O, Port B bit 3 |
| 引脚 10 | RB4 — Bidirectional I/O, Port B bit 4 |
| 引脚 11 | RB5 — Bidirectional I/O, Port B bit 5 |
| 引脚 12 | RB6 — Bidirectional I/O, Port B bit 6 |
| 引脚 13 | RB7 — Bidirectional I/O, Port B bit 7 |
| 引脚 14 | VDD — Regulated 5V output of internal shunt regulator |
| 引脚 15 | OSC2/CLKOUT — Oscillator output / clock-out |
| 引脚 16 | OSC1/CLKIN — Oscillator input / external clock in |
| 引脚 17 | HV — Shunt regulator input (3.5V to 15V unregulated supply) |
| 引脚 18 | RA0 — Bidirectional I/O, Port A bit 0 |
| 引脚 19 | RA1 — Bidirectional I/O, Port A bit 1 |
| 引脚 20 | VDD — Regulated 5V output (tied to pin 14 internally) |
典型应用
PIC16HV540-04/SS 适用于 6 应用s: Remote Keyless Entry (RKE) Fob, Consumer IR/RF Remote Control, Low-End Appliance Timer Controller, Battery-Powered Sensor Signal Conditioning, Toys and Educational Electronics, Industrial Timer / Sequencer Module.
Remote Keyless Entry (RKE) Fob
The PIC16HV540-04/SS is a strong fit for battery-powered RKE fobs because its integrated shunt regulator accepts the loose 3.5V to 15V output of a coin-cell booster directly on the HV pin, eliminating an external 78L05 and shrinking the BOM. The 4 MHz core executes rolling-code encoders in real time, while 25 bytes of RAM comfortably holds the encoder state machine. 12 I/O pins drive an RF SAW resonator enable line, three or four push-buttons, and a status LED with the part's 20 mA source capability. The 33-instruction PIC16C5x ISA keeps the encoder firmware under 400 words of the 512-word OTP. Commercial 0C to +70C operation matches a vehicle cabin, and the SSOP-20 fits a typical 30 x 50 mm fob PCB. Per Microchip datasheet 40197b, the HV shunt bias current is low enough that battery life is dominated by RF transmission, not MCU standby.
推荐
Consumer IR/RF Remote Control
TV and set-top-box IR/RF remote handsets are the canonical PIC16HV540-04/SS application. The integrated shunt regulator runs directly from two AAA cells without a separate regulator IC, and the 4 MHz core implements SIRC, RC5, and proprietary pulse-position encoders without timing jitter. 12 I/O pins comfortably drive a 4 x 4 key matrix, IR LED, RF enable, and three LEDs for status. The 512-word OTP program memory holds both the encoder library and brand-ID EEPROM emulation. Per Microchip datasheet 40197b, the internal watchdog timer wakes the MCU from sleep on keypress, drawing minimal current between button presses. The SSOP-20 package fits a slim handset, and commercial temp grade covers indoor use. This is the same application class Microchip's PIC16C5x family was designed for in the 1990s and remains cost-optimal today.
推荐
Low-End Appliance Timer Controller
Microwave ovens, washing machines, and dishwashers historically use PIC16C5x-family MCUs as front-panel timer controllers, and the PIC16HV540-04/SS continues that role. The HV shunt regulator accepts a rectified 12V to 15V mains-derived rail directly on the supply pin, eliminating a linear regulator stage. The 4 MHz clock drives multiplexed 7-segment display refresh, while 12 I/O pins handle the keypad, buzzer, relay drivers, and triac-zero-cross detection. The 8-bit timer generates 1 ms ticks for software debounce and buzzer tones. Per Microchip datasheet 40197b, the 25-byte RAM and 7-level stack are sufficient for state-machine timer logic. OTP programming locks the firmware against field tampering. Commercial temp grade fits indoor appliance environments. The SSOP-20 footprint is a drop-in upgrade path for older PIC16C54 designs.
推荐
Battery-Powered Sensor Signal Conditioning
Simple sensor nodes - thermostats, leak detectors, soil-moisture probes - benefit from the PIC16HV540-04/SS's integrated shunt regulator that accepts 3.5V to 15V directly from a battery stack or solar cell without a discrete regulator. The 4 MHz core reads an analog sensor via the threshold comparator or pulse-counts a low-frequency transducer. With 12 I/O pins, the part drives a buzzer, status LED, and sleep-mode FET gate. Per Microchip datasheet 40197b, the deep-sleep current is dominated by the HV shunt bias and is typically under 10 uA, supporting multi-year battery life. The 33-instruction ISA keeps ADC-style sigma-delta firmware under 300 words. OTP memory locks the calibration constants, and the SSOP-20 package fits a CR2032 holder footprint.
推荐
Toys and Educational Electronics
Talking dolls, novelty sound modules, and educational microcontroller kits use the PIC16HV540-04/SS as the master controller. The integrated HV shunt regulator allows the part to run from 3V to 12V battery packs directly. The 4 MHz core plays back PCM audio via PWM and handles button multiplexing with 12 I/O pins. Per Microchip datasheet 40197b, the 33-instruction ISA is widely documented and used in undergraduate curricula, making this part a teaching vehicle. The OTP memory protects proprietary sound data from duplication, and the SSOP-20 reflows cleanly on wave-solderable toy PCBs. Commercial temp grade is sufficient for indoor use. The Microchip PICkit 1 baseline programmer supports this device, simplifying classroom development.
推荐
Industrial Timer / Sequencer Module
The PIC16HV540-04/SS serves as a low-cost industrial timer or sequencer that runs directly from a 24V control bus through the integrated HV shunt regulator. The 4 MHz clock generates millisecond-accurate timing for relay sequencing, and the 8-bit timer provides 256 us tick resolution at 4 MHz. 12 I/O pins control four relay drivers, three optocoupled inputs, and a status LED chain. Per Microchip datasheet 40197b, the PIC16HV540-04I/SS industrial variant extends operation to -40C to +85C for outdoor cabinets. OTP memory locks the timing program against field modification. The SSOP-20 fits a DIN-rail carrier PCB alongside a rectifier and MOV. This is a typical Microchip application note use case for the HV540 series, replacing legacy 78L05-plus-PIC16C54 designs.
推荐
推荐产品汇总
工程参考数据: PIC16HV540-04/SS ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | PIC16HV540-04I/SS | PIC16HV540T-04/SS | PIC16F84A-I/SS | PIC16HV540-20/SS |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | SSOP-20 | SSOP-20 (same) | SSOP-20 (same) | SSOP-20 (same) | SSOP-20 (same) |
| Program Memory Type | OTP EPROM (512x12) | OTP EPROM (512x12) | OTP EPROM (512x12) | Flash (1Kx14) | OTP EPROM (512x12) |
| Maximum Clock Frequency | 4 MHz | 4 MHz | 4 MHz | 20 MHz (10 MHz at 3V) | 20 MHz |
| RAM | 25 bytes | 25 bytes | 25 bytes | 68 bytes | 25 bytes |
| Integrated HV Shunt Regulator | Yes (3.5V to 15V input) | Yes (3.5V to 15V input) | Yes (3.5V to 15V input) | No - requires external 5V | Yes (3.5V to 15V input) |
| I/O Pins | 12 | 12 | 12 | 13 | 12 |
| Operating Temperature | 0C to +70C (commercial) | -40C to +85C (industrial) | 0C to +70C (commercial) | -40C to +85C (industrial) | 0C to +70C (commercial) |
| Unit Price (qty 1000) | ~$2.45 | ~$2.70 | ~$2.45 | ~$3.20 | ~$2.95 |
关键差异点
- Only 8-bit PIC with integrated HV shunt regulator in SSOP-20 (对比 PIC16F84A-I/SS)
- Commercial temperature grade is the lowest-cost SKU (对比 PIC16HV540-04I/SS)
- Speed grade -04 (4 MHz) is optimized for low EMI (对比 PIC16HV540-20/SS)
- OTary 33-instruction ISA lowers developer ramp-up time (对比 PIC16F84A-I/SS)
设计说明
The PIC16HV540-04/SS internal shunt regulator accepts 3.5 V to 15 V on the HV pin (pin 17) and clamps VDD to a regulated 5 V nominal. Per Microchip datasheet 40197b, the shunt draws a quiescent bias current even when the MCU is in sleep mode, so for ultra-low-power battery designs consider powering VDD directly from a regulated 5 V rail and leaving HV floating. Decouple VDD with at least 0.1 uF ceramic plus 10 uF electrolytic; place the 0.1 uF within 5 mm of pin 14/20 to suppress shunt-regulator switching noise.
Do not apply voltages above 15 V to the HV pin - the internal shunt transistor will dissipate excessive power and may latch up. Per Microchip datasheet 40197b, the absolute maximum HV pin voltage is 15 V, and the shunt regulates by clamping VDD; transients above 15 V require a TVS or zener clamp on the HV pin. The MCLR/VPP pin (pin 4) is the only programming entry point on the SSOP package - leave it accessible via test pad or header for factory programming.
Estimated trace-width guidance: for the SSOP-20 (5.30 mm body, 0.65 mm pitch) hand-solderable pad design, allow at least 0.4 mm pad width with 0.2 mm spacing. Place a ground pour under the package with vias on 2 mm pitch to keep digital switching noise off the analog VDD rail. Route OSC1/OSC2 (pins 15 and 16) as short, length-matched traces and keep them away from RB7 and high-current I/O traces to minimize clock coupling into interrupt edges.
At maximum HV input of 15 V and 5 mA load, the shunt regulator dissipates approximately 50 mW internally, well within the SSOP-20's 800 mW thermal envelope. Per Microchip datasheet 40197b, thermal shutdown is not implemented - the shunt relies on VDD clamping rather than overtemperature protection, so continuous overload at the HV pin will degrade the part. Provide a 1 kOhm series resistor on the HV pin for input current limiting in fault conditions.
合规信息
RoHS and REACH status not explicitly stated in the verified web data. Microchip publishes compliance certificates on their product page; consult https://www.microchip.com/en-us/product/PIC16HV540 for the latest RoHS declaration.