main
History Download
Ray Publish 0.1.0 0ee8a43

PIC16HV540-04

Microchip Tech · Microcontroller Units (MCUs/MPUs/SOCs) · SOIC-18-300mil

PIC16HV540-04 from Microchip Tech, in a SOIC-18-300mil. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.

Pinout

Pin Name Type Function
1 RA2 bidirectional Independently regulated bidirectional I/O port (VIO) with TTL input levels.
2 RA3 bidirectional Independently regulated bidirectional I/O port (VIO) with TTL input levels.
3 T0CKI input Clock input to Timer 0 with Schmitt Trigger input; must be tied to VSS or VDD if not in use to reduce current consumption.
4 MCLR/VPP input Active-low master clear (reset) input and programming voltage input (Schmitt Trigger); VDD must not be exceeded on this pin to avoid unintended entry into programming mode.
5 VSS power_in Ground reference.
6 RB0 bidirectional High-voltage bidirectional I/O port sourced from VDD, with TTL input levels and wake-up on pin change.
7 RB1 bidirectional High-voltage bidirectional I/O port sourced from VDD, with TTL input levels and wake-up on pin change.
8 RB2 bidirectional High-voltage bidirectional I/O port sourced from VDD, with TTL input levels and wake-up on pin change.
9 RB3 bidirectional High-voltage bidirectional I/O port sourced from VDD, with TTL input levels and wake-up on pin change.
10 RB4 bidirectional High-voltage bidirectional I/O port with TTL input levels.
11 RB5 bidirectional High-voltage bidirectional I/O port with TTL input levels.
12 RB6 bidirectional High-voltage bidirectional I/O port with TTL input levels.
13 RB7 bidirectional High-voltage bidirectional I/O port with TTL input levels and wake-up on slow rising pin change.
14 VDD power_in Positive supply.
15 OSC2/CLKOUT output Oscillator crystal output connecting to a crystal or resonator in crystal oscillator mode; in RC mode it outputs TMR0 bit 0, and CLKIN/8 to CLKIN/1024 can be generated on this pin.
16 OSC1/CLKIN input Oscillator crystal input or external clock source input (Schmitt Trigger input).
17 RA0 bidirectional Independently regulated bidirectional I/O port (VIO) with TTL input levels.
18 RA1 bidirectional Independently regulated bidirectional I/O port (VIO) with TTL input levels.

Key specifications

Parameter Value
Manufacturer Microchip Tech
Package SOIC-18-300mil
Category Single Chip Microcomputer/Microcontroller
Pins 18

Electrical characteristics

Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).

Parameter Symbol Min Typ Max Unit Conditions Page
Operating temperature (commercial) TA 0 70 °C Commercial, PIC16HV540-04 62
Supply voltage VDD 3.5 15 V LP, XT and RC modes 62
Supply voltage VDD 4.5 15 V HS mode 62
VDD rise rate to ensure Power-on Reset SVDD 0.05 V/ms See Section 7.4 for Power-on Reset details 62
Supply current, HS option IDD 5 20 mA FOSC = 20 MHz, VDD = 15V, VREG = 5V 62
Supply current, XT and RC options IDD 1.8 3.3 mA FOSC = 4 MHz, VDD = 15V, VREG = 5V 62
Supply current, LP option IDD 300 500 µA FOSC = 32 kHz, VDD = 15V, VREG = 5V, WDT disabled 62
Power-down current, sleep timer enabled IPD 4.5 20 µA VDD = 15V, VREG = 5V, sleep timer enable, BOD disabled 62
Power-down current, sleep timer enabled IPD 0.25 14 µA VDD = 15V, VREG = 3V, sleep timer enable, BOD disabled 62
Power-down current, sleep timer disabled IPD 1.8 10 µA VDD = 15V, VREG = 5V, sleep timer disabled, BOD disabled 62
Power-down current, sleep timer disabled IPD 1.4 5 µA VDD = 15V, VREG = 3V, sleep timer disabled, BOD disabled 62
Brown-out detector threshold (VREG 5V) BVDD 2.7 3.1 4.2 V VDD = 15V, VREG = 5V 62
Brown-out detector threshold (VREG 3V) BVDD 1.8 2.2 2.8 V VDD = 15V, VREG = 3V 62
Regulation voltage (VREG 3V) VIO 2 3 4.5 V VDD = 15V, VREG = 3V, Unloaded outputs, SLEEP 62
Regulation voltage (VREG 5V) VIO 4 5 6 V VDD = 15V, VREG = 5V, Unloaded outputs, SLEEP 62
Input high voltage, OSC1 Schmitt trigger VIH 4.5 V RC option only (VDD = 15V) 63
Input high voltage, OSC1 VIH 4.5 V HS, XT, and LP options (VDD = 15V) 63
Input leakage current, I/O PORTA IIL -1 0.5 1 µA VSS ≤ VPIN ≤ VIO, Pin at Hi-impedance 63
Input leakage current, I/O PORTB IIL -1 0.5 1 µA VSS ≤ VPIN ≤ VDD 63
Input leakage current, MCLR IIL -5 0.5 5 µA VPIN = VSS +0.25V 63
Input leakage current, T0CKI IIL -3 0.5 3 µA VPIN = VDD 63
Input leakage current, OSC1 IIL -3 0.5 3 µA VSS ≤ VPIN ≤ VDD 63
Input leakage current, OSC1 (HS, XT, LP) IIL 3 µA VSS ≤ VPIN ≤ VDD, HS, XT, and LP options 63
Output low voltage, I/O PORTA VOL 0.6 V VDD = 15V, VREG = 5V, IOL = 8.7 mA 63
Output low voltage, OSC2/CLKOUT VOL 0.6 V VDD = 15V, VREG = 5V, IOL = 1.2 mA (RC option only) 63
Output low voltage, I/O PORTB VOL 0.6 V VDD = 15V, VREG = 5V, IOL = 3.0 mA 63
Voltage on ambient temperature under bias -20 85 °C Ambient temperature under bias 61
Storage temperature -65 150 °C 61
Voltage on VDD with respect to VSS VDD 0 16 V 61
Voltage on MCLR with respect to VSS 0 14 V 61
Voltage on all other pins with respect to VSS -0.6 V Upper limit printed as (VDD + 0.6V) 61
Max current out of VSS pin 150 mA 61
Max current into VDD pin 100 mA 61
Max current into an input pin (T0CKI only) -500 500 µA T0CKI only 61
Input clamp current IIK -20 20 mA VI < 0 or VI > VDD 61
Output clamp current IOK -20 20 mA VO < 0 or VO > VDD 61
Max output current sunk by any I/O pin 25 mA 61
Max output current sourced by any I/O pin 10 mA 61
Max output current sourced by a single I/O port A or B 40 mA 61
Max output current sourced by a single I/O port A or B (second entry) 50 mA 61
External CLKIN frequency FOSC 4 MHz RC osc mode 65
External CLKIN frequency FOSC 2 MHz HS osc mode 65
External CLKIN frequency FOSC 200 kHz LP osc mode 65
Oscillator frequency FOSC 4 MHz RC osc mode 65
Oscillator frequency FOSC 0.1 2 MHz HS osc mode 65
Oscillator frequency FOSC 0.1 4 MHz XT osc mode 65
Oscillator frequency FOSC 5 200 kHz LP osc mode 65
MCLR pulse width (low) TmcL 2 µs VDD = 15V, VREG = 5V 68
Watchdog timer time-out period Twdt 9 18 40 ms VDD = 15V, VREG = 5V 68
Device reset timer period TDRT 9 18 30 ms VDD = 15V, VREG = 5V 68
Device reset timer period TDRT 0.55 1.1 2.5 ms VDD = 15V, VREG = 5V, RC mode 68
I/O hi-impedance from MCLR low TioZ 100 ns 68
Pin change pulse width Tpc 2 µs 68
T0CKI high pulse width, with prescaler Tt0H 10 ns With prescaler 68
T0CKI low pulse width, with prescaler Tt0L 10 ns With prescaler 68

CAD (KiCad official)

  • Symbol: PIC16HV540-04
  • Footprint: Package_SO:SOIC-18W_7.5x11.6mm_P1.27mm
  • 3D model: SOIC-18-300mil (KiCad packages3D, STEP)
  • 3D model files: pic16hv540-04-etched.step / pic16hv540-04-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); pic16hv540-04.step / pic16hv540-04.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: Microchip Tech datasheet (85 pp, sha256 3fe57f83b53212ba, retrieved 2026-10-30, tier: manufacturer)
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-haiku-5-5 (text), consensus claude-sonnet-5-5 (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
  • CAD: KiCad official libraries (CC-BY-SA 4.0).

Datasheet PDF