PIC16F18345-E/GZ - 8-bit XLP MCU, 14KB Flash, 32MHz | Microchip
MPN: PIC16F18345-E/GZ ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.42 | $1.42 |
| 10 | $1.27 | $12.70 |
| 100 | $1.09 | $109.00 |
| 500 | $0.94 | $470.00 |
| 1,000 | $0.83 | $830.00 |
PIC16F18345-E/GZ Overview
An 8-bit PIC microcontroller (MCU) is a compact, low-power embedded processor that integrates a CPU, non-volatile program memory, RAM, peripherals, and I/O on a single die. PIC MCUs use a modified Harvard architecture with separate program and data buses that enable single-cycle instruction execution at predictable throughput. The PIC16F18345 sits within Microchip's PIC16F1xxx enhanced mid-range family and combines ultra-low-power XLP technology with rich analog and digital peripherals to support general-purpose and battery-powered embedded designs.
Key features include 14KB self-programmable Flash with program memory access (PMA), configurable logic cells, multiple PWM modules, a 10-bit ADC with computation (ADC2), 5-bit and 8-bit DACs, comparators, and zero-cross detect (ZCD) modules. PPS allows digital peripheral routing to any I/O pin, reducing PCB layout constraints. The 32MHz internal oscillator provides a system clock from a precision-tuned HFINTOSC that supports UART, SPI, and I2C communication peripherals. Hardware diagnostics and Functional Safety features assist in IEC 61508 and ISO 26262 safety-influenced applications.
The device operates from 1.8V to 5.5V (functional across the entire F-range), with sleep currents in the nanoampere range and active-mode figures suitable for sensor nodes, wearable electronics, and IoT endpoints. PPS, DMA, and CIPs allow designers to offload time-critical events from the CPU, extending battery life and improving EMI robustness. The PIC16F18345's broad peripheral set makes it appropriate for mixed-signal front ends and motor/lighting control subsystems.
Typical applications include low-power IoT sensor nodes, battery-powered medical wearables, automotive body and sensor ECUs (using FuSa-compliant firmware flows), industrial sensor interfaces, and consumer remote controls. The PIC16F18345-E/GZ's small 4x4 mm UQFN footprint suits space-constrained PCBAs such as hearing aids, fitness bands, and BLE companion modules, where low quiescent current and integrated peripherals reduce BOM cost.
When designing, ensure the UQFN thermal pad is soldered to a sufficiently sized ground copper pour to dissipate the small but non-zero switching and peripheral losses. Place a 0.1uF decoupling capacitor within 3 mm of VDD and use a 10uF bulk capacitor near the regulator input for XLP sleep-mode wake-up stability.
This page synthesizes distributor pricing, drop-in alternatives from the PIC16F183xx and PIC16F182x families, and practical XLP design notes that are not consolidated on the manufacturer product page, providing information gain for BOM and firmware engineers.
Drop-in alternatives for PIC16F18345-E/GZ — 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 PIC16F18345-E/GZ (same form factor and footprint) — differing in ADC, Core Architecture, Package, Communication Peripherals, DAC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F18345-I/GZ
✅ Drop-In✓ In Stock
$0.97 / Unit
View Datasheet →PIC16F18325-E/GZ
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F18344-E/GZ
✅ Drop-In✓ In Stock
$0.95 / Unit
View Datasheet →PIC16F18324-E/GZ
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F18345-E/GZ Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit PIC16 enhanced mid-range (modified Harvard) |
| Program Memory (Flash) | 14 KB (8K x 14 words) |
| Data SRAM | 1 KB |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 32 MHz |
| Operating Voltage (VDD) | 1.8 V to 5.5 V |
| Operating Temperature | -40 C to +125 C (E suffix, extended) |
| Package | 20-UQFN 4x4 mm (GZ suffix) |
| I/O Pins (max) | 17 (varies by package, GZ UQFN) |
| ADC | 10-bit ADC with Computation (ADC2) |
| DAC | 5-bit and 8-bit DAC modules |
| Comparators | Yes (with ZCD zero-cross detect) |
| PWM Modules | Multiple CCP/ECCP with PWM |
| Communication Peripherals | UART, SPI, I2C (with PPS) |
| Peripheral Pin Select (PPS) | Yes |
| Core Independent Peripherals (CIP) | Yes (CLC, DSM, NCO, configurable logic) |
| Functional Safety (FuSa) | Yes (supports IEC 61508 / ISO 26262 workflows) |
| eXtreme Low Power (XLP) | Yes (nanoamp sleep currents) |
| RoHS Status | Compliant |
PIC16F18345-E/GZ Pin Configuration
| Pin 1 | VDD — Power supply input (1.8V to 5.5V) |
| Pin 2 | RA5 — I/O port A bit 5 (PPS-capable) |
| Pin 3 | RA4 — I/O port A bit 4 (PPS-capable) |
| Pin 4 | RA3/MCLR — I/O port A bit 3 / Master Clear reset (input only) |
| Pin 5 | RA2 — I/O port A bit 2 (analog/digital) |
| Pin 6 | RA1 — I/O port A bit 1 (PPS-capable) |
| Pin 7 | RA0 — I/O port A bit 0 (analog/digital) |
| Pin 8 | VSS — Ground |
| Pin 9 | RB7 — I/O port B bit 7 (PPS-capable) |
| Pin 10 | RB6 — I/O port B bit 6 (PPS-capable, ICSP clock) |
| Pin 11 | RB5 — I/O port B bit 5 (PPS-capable, ICSP data) |
| Pin 12 | RB4 — I/O port B bit 4 (PPS-capable) |
| Pin 13 | RC3 — I/O port C bit 3 (PPS-capable) |
| Pin 14 | RC2 — I/O port C bit 2 (PPS-capable) |
| Pin 15 | RC1 — I/O port C bit 1 (PPS-capable) |
| Pin 16 | RC0 — I/O port C bit 0 (PPS-capable) |
| Pin 17 | RC6 — I/O port C bit 6 (PPS-capable) |
| Pin 18 | RC7 — I/O port C bit 7 (PPS-capable) |
| Pin 19 | VSS — Ground (thermal pad) |
| Pin 20 | RA7 — I/O port A bit 7 (PPS-capable) |
Typical Applications
PIC16F18345-E/GZ is suitable for 6 applications: Battery-Powered IoT Sensor Node, Wearable Health Monitoring Device, Automotive Body and Sensor ECU, Industrial Sensor Interface, Consumer Remote Control and HMI, LED Lighting and Signage Controller.
Battery-Powered IoT Sensor Node
The PIC16F18345-E/GZ is well suited for battery-powered IoT sensor nodes thanks to its XLP nanoamp sleep currents and 1.8V to 5.5V VDD range. With 14KB Flash and 1KB SRAM, the MCU can host a small RTOS-less sensor stack plus periodic wake-and-measure firmware while still leaving room for OTA staging. The 10-bit ADC2 with computation handles sensor linearization in hardware, offloading CPU activity during sleep and reducing active-mode time. In a typical thermistor or load-cell sensor node, the PIC16F18345-E/GZ wakes for sub-millisecond ADC reads then re-enters sleep, achieving multi-year coin-cell battery life.
Recommended
Wearable Health Monitoring Device
Wearable health monitors benefit from the PIC16F18345-E/GZ's 32MHz speed, 10-bit ADC, 5-bit and 8-bit DACs, and tiny 4x4 mm UQFN footprint. The DAC drives low-power audio cue tones for the wearable buzzer, while the ADC samples heart-rate or SpO2 front-end signals at high rates with hardware averaging. PPS allows sensor I2C, SPI, and UART to be remapped as the PCB layout evolves, reducing board respins. Extended -40C to +125C operation covers fitness, body-wear, and medical-grade skin temperature extremes while XLP sleep preserves multi-day battery life.
Recommended
Automotive Body and Sensor ECU
Automotive body and sensor ECUs use the PIC16F18345-E/GZ's Functional Safety documentation, extended -40C to +125C temperature, and CIP peripherals to build deterministic mixed-signal subsystems with minimal software overhead. The FuSa features support IEC 61508 and ISO 26262 design flows for sensor conditioning, lighting, and body controllers. PPS allows digital communication and timer peripherals to be remapped as additional sensor channels are added, while Core Independent Peripherals provide event-driven, zero-CPU sensing for seat occupancy or rain-sensing ECUs.
Recommended
Industrial Sensor Interface
Industrial sensor interfaces leverage the PIC16F18345-E/GZ's UART/SPI/I2C with PPS, configurable logic cells (CLC), and 10-bit ADC2 with hardware computation to build 4-20mA loop, Modbus, and SPI-protocol transducer outputs. CLCs replace discrete glue logic for timing-safe pulse shaping, reducing BOM cost and PCB area. The 32MHz CPU clock and DMA-style peripheral offload support deterministic polling loops needed in process-control sensor conditioning. Extended temperature operation survives outdoor and factory-floor thermal stress.
Recommended
Consumer Remote Control and HMI
Consumer remote controls and human-machine interface (HMI) keypads use the PIC16F18345-E/GZ's low power, fast wake-up from sleep, and CLC for IR protocol generation. The 14KB Flash holds a full NEC/RC5 IR protocol stack plus customer-specific button-mapping tables, and the 256B EEPROM stores user preferences non-volatilely. The 4x4 mm UQFN footprint supports thin, slim remote-control enclosures while keeping sleep current below 100nA for multi-year battery life. PPS allows IR, capacitive touch, and PWM to be remapped as the BOM evolves.
Recommended
LED Lighting and Signage Controller
LED lighting and signage controllers use the PIC16F18345-E/GZ's multiple CCP/ECCP PWM channels, configurable logic, and NCO to generate high-resolution dimming and color-mixing waveforms with zero CPU overhead. The 10-bit ADC samples photodiode or 0-10V analog dimming inputs, while CLC implements safety and fault logic on the fly. The 1.8V to 5.5V range lets the MCU share power with LED driver ICs from 3.3V or 5V rails, while the 20-UQFN package fits small form-factor MR16, downlight, and signage PCBs.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F18345-E/GZ — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F18345-I/GZ | PIC16F18325-E/GZ | PIC16F18344-E/GZ |
|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 20-UQFN 4x4 mm (GZ) | 20-UQFN 4x4 mm (GZ) - same | 20-UQFN 4x4 mm (GZ) - same | 20-UQFN 4x4 mm (GZ) - same |
| Program Flash | 14 KB (8K x 14) | 14 KB - same | 8 KB (-43%) | 7 KB (-50%) |
| Data SRAM | 1 KB | 1 KB - same | 1 KB - same | 1 KB - same |
| EEPROM | 256 bytes | 256 bytes - same | 256 bytes - same | 256 bytes - same |
| Maximum CPU Speed | 32 MHz | 32 MHz - same | 32 MHz - same | 32 MHz - same |
| Operating Voltage | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V | 1.8 V to 5.5 V |
| Operating Temperature | -40 C to +125 C (E) | -40 C to +85 C (I) | -40 C to +125 C (E) | -40 C to +125 C (E) |
| Functional Safety (FuSa) | Yes | Yes | Yes | Yes |
Key Differentiators
- Largest program memory in the same UQFN-20 (GZ) family footprint (vs PIC16F18325-E/GZ)
- Functional Safety (FuSa) documentation flows (vs PIC16F18324-E/GZ)
- Extended -40C to +125C industrial temperature range (vs PIC16F18345-I/GZ)
Design Notes
The PIC16F18345-E/GZ's XLP sleep current can fall below 100nA with the LFINTOSC and watchdog disabled, but the actual sleep floor depends on unused-pin leakage. Configure unused pins as outputs driving low (or inputs with PORT pull-ups disabled) to eliminate one of the most common causes of unexpected sleep current. Place a 0.1uF ceramic decoupling capacitor within 3 mm of VDD (pin 1) and a 10uF bulk capacitor at the regulator's output to suppress the in-rush current during sleep-to-active wake events.
Estimated: at the maximum 32MHz CPU speed with all peripherals active, the PIC16F18345-E/GZ in a 20-UQFN 4x4 mm package with a modest 1 square-inch copper thermal pad on a 2-layer PCB typically shows a junction-to-ambient thermal resistance (theta_JA) of approximately 60 to 80 C/W. At an ambient of 85C and a worst-case active-mode dissipation of roughly 25 mW, junction temperature would rise by only about 1.5 to 2 C above ambient, which is well below the +125C limit; no external heatsink is needed for typical XLP duty cycles below 5%.
Use a single uninterrupted ground copper pour stitched with vias to the central exposed thermal pad of the UQFN-20 footprint to improve thermal dissipation and provide a low-impedance return path for high-speed CIP logic and PWM signals. Route analog traces such as ADC inputs and comparator reference paths away from PWM and digital switching traces, and place the 0.1uF decoupling capacitor adjacent to VDD with a short, wide trace. For ICSP programming and debugging via RB6/RB7, ensure those pins are not pulled high by external hardware that would prevent entry into debug mode.
PPS pin routing is set at run-time via PPS registers, which means the configuration is cleared by any device reset. Always reinitialize PPS in your firmware initialization routine, or the digital peripheral signals will silently revert to their default pins. Watch for the 14KB flash boundary when porting PIC16F18325 (8KB) firmware - the upper 6KB of program memory is unavailable, and linker scripts that exceed 8KB will fail at the build step. Use the E vs I temperature suffix correctly: PIC16F18345-E/GZ is the extended -40C to +125C grade while PIC16F18345-I/GZ tops out at +85C.
Compliance Information
RoHS compliant per Microchip product page. AEC-Q100 status depends on specific -VAO automotive suffix; standard -E and -I industrial/extended grades are not AEC-Q100 qualified. Always verify exact suffix against Microchip automotive product list.