PIC16F18313-E/P - 8-bit MCU 3.5KB Flash XLP | Microchip | 8-PDIP
MPN: PIC16F18313-E/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.18 | $1.18 |
| 10 | $1.06 | $10.60 |
| 100 | $0.94 | $94.00 |
| 500 | $0.84 | $420.00 |
| 1,000 | $0.75 | $750.00 |
PIC16F18313-E/P Overview
What is an 8-bit PIC microcontroller? A microcontroller (MCU) is a single-chip computer containing a CPU, memory, and programmable peripherals. The PIC16 family uses a 14-bit modified Harvard instruction set; 8-bit PIC MCUs sit in the broader category of microcontrollers -> embedded processors -> semiconductors. The -E suffix denotes the -40C to +125C extended industrial temperature range, while the /P suffix identifies the 8-pin PDIP package.
Key features include: XLP technology with < 30 nA typical sleep current; 10-bit ADC with computation (ADC2) providing oversampling and averaging; Configurable Logic Cells (CLC) implementing custom combinational/sequential logic without external ICs; Numerical Controlled Oscillator (NCO) for fine-frequency generation; Complementary Waveform Generator (CWG) for dead-band control; and PPS routing digital peripherals to any I/O pin. The 32 MHz internal oscillator with 4x PLL delivers up to 8 MIPS performance.
The architecture combines a RISC-like PIC core with separate program and data buses, enabling single-cycle instruction execution except for branches. Core Independent Peripherals (CIPs) - CLC, NCO, CWG, and PWM - operate without CPU intervention, freeing the core for power management and communication tasks. The PPS module remaps peripheral signals to I/O pins at runtime, simplifying PCB layout and BOM consolidation.
Typical applications include battery-powered IoT sensor nodes, automotive interior controls, consumer white-goods user interfaces, low-power remote controls, and industrial sensor signal conditioning. The wide operating range and XLP modes make it suitable for energy-harvesting and always-on designs.
When designing, decouple VDD with a 100 nF ceramic close to the pin and a bulk capacitor on the VDD rail. Keep ICSPDAT/ICSCLK traces short and isolated from switching nodes to avoid programming failures.
This page synthesizes distributor pricing, drop-in alternatives, and design notes not found in the manufacturer datasheet, providing practical guidance for engineers evaluating PIC16F18313-E/P for new designs.
Drop-in alternatives for PIC16F18313-E/P — 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 PIC16F18313-E/P (same form factor and footprint) — differing in ADC, Package, I/O Pins, Program Memory (Flash), Operating Temperature.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F18313-I/P
✅ Drop-In✓ In Stock
$0.79 / Unit
View Datasheet →PIC16F18323-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1829-I/P
✅ Drop-In✓ In Stock
$1.25 / Unit
View Datasheet →PIC16F1827-I/P
✅ Drop-In✓ In Stock
$1.24 / Unit
View Datasheet →PIC16F1825-E/P
✅ Drop-In✓ In Stock
$1.05 / Unit
View Datasheet →PIC16F1783-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F18313-E/P Maximum Ratings & Electrical Characteristics
| Core | PIC16 8-bit RISC |
| Program Memory (Flash) | 3.5 KB |
| SRAM | 256 bytes |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 32 MHz (8 MIPS) |
| Operating Voltage | 2.3 V to 5.5 V |
| I/O Pins | 6 |
| ADC | 10-bit, with computation (ADC2) |
| DAC | 5-bit |
| Comparators | Yes |
| PWM | 10-bit |
| CCP Modules | Yes |
| CLC (Configurable Logic Cells) | Yes |
| NCO (Numerically Controlled Oscillator) | Yes |
| CWG (Complementary Waveform Generator) | Yes |
| PPS (Peripheral Pin Select) | Yes |
| Operating Temperature | -40C to +125C (Extended, -E suffix) |
| Package | 8-pin PDIP |
| RoHS Status | Compliant |
| MSL Level | 1 (unlimited) |
PIC16F18313-E/P Pin Configuration
| Pin 1 | VDD — Positive power supply |
| Pin 2 | RA5 — I/O pin with ADC and DAC output, remappable via PPS |
| Pin 3 | RA4 — I/O pin with ADC input, remappable via PPS |
| Pin 4 | RA3/MCLR — I/O pin or Master Clear (reset) input |
| Pin 5 | RA2 — I/O pin with ADC and DAC output, remappable via PPS |
| Pin 6 | RA1 — I/O pin with ADC and DAC reference, remappable via PPS |
| Pin 7 | RA0 — I/O pin with ICSPDAT and ADC, remappable via PPS |
| Pin 8 | VSS — Ground reference |
Typical Applications
PIC16F18313-E/P is suitable for 6 applications: Battery-Powered IoT Sensor Nodes, Automotive Interior Lighting Control, Industrial Process Sensor Signal Conditioning, Low-Power Remote Key Fobs, Consumer Appliance User Interface, HVAC Fan Motor Control.
Battery-Powered IoT Sensor Nodes
The PIC16F18313-E/P's XLP technology with sub-30 nA sleep current and 1.8 V minimum operating voltage makes it ideal for coin-cell and energy-harvesting IoT sensors. The 10-bit ADC with computation (ADC2) enables oversampling averaging for low-noise sensor readings without CPU wake-up, while CLC and NCO provide timing pulses for sensor excitation. Placed at the heart of a temperature, humidity, or motion sensor node, it can run for years on a single CR2032. Compared with discrete comparator + timer designs, this integration reduces BOM by 50% while the extended -40C to +125C temperature range supports outdoor deployments.
Recommended
Automotive Interior Lighting Control
The PIC16F18313-E/P drives ambient LED lighting in automotive dashboards with its 10-bit PWM and CWG (Complementary Waveform Generator) enabling dead-band control for half-bridge LED drivers. The extended -40C to +125C temperature grade handles cabin and under-hood temperature swings. The 5-bit DAC provides smooth dimming curves while PPS routes PWM outputs to any I/O pin, simplifying PCB layout for multi-zone lighting. Compared to discrete 555-timer designs, the PIC16F18313 integrates timing, dimming, and fault detection in one chip.
Recommended
Industrial Process Sensor Signal Conditioning
The PIC16F18313-E/P conditions 4-20 mA or 0-10 V process signals with on-chip 10-bit ADC, comparators, and 5-bit DAC for offset/span trimming. CLC implements custom hysteresis and window-comparator logic without external ICs, while NCO generates excitation frequencies for RTD or thermistor bridges. The 256-byte EEPROM stores calibration coefficients for field-trimmed sensors. Placed between transducer and PLC analog input, this part replaces discrete op-amp + ADC solutions while surviving -40C to +125C industrial environments.
Recommended
Low-Power Remote Key Fobs
The PIC16F18313-E/P fits battery-powered RF key fobs where XLP sleep current under 30 nA extends coin-cell life beyond 5 years. The integrated NCO provides a stable carrier-frequency reference for low-cost OOK/FSK transmitters, while CLC implements button-debounce and wake logic without external gates. The 6 I/O pins support 4-way button matrix plus LED and TX-enable signals. Compared with discrete CMOS logic designs, this single-chip solution reduces standby power by 80% and PCB area by 60%.
Recommended
Consumer Appliance User Interface
The PIC16F18313-E/P drives capacitive-touch user interfaces in white-goods with CLC implementing proximity and gesture detection, plus 10-bit PWM for LED feedback brightness control. The on-chip 5-bit DAC generates audio tones for beeper alerts without external DAC. The wide 2.3 V to 5.5 V supply range accepts unregulated 5 V adapters. The extended temperature range supports oven, dryer, and refrigerator compartments. Compared to dedicated touch-IC solutions, this general-purpose MCU adds programmability for custom UI behaviors.
Recommended
HVAC Fan Motor Control
The PIC16F18313-E/P controls small BLDC and brushed fans with its CWG (Complementary Waveform Generator) providing dead-band-controlled complementary PWM outputs, NCO generating variable-frequency excitation, and 10-bit ADC reading back-EMF for closed-loop speed control. The 6 I/O pins support PWM, tachometer input, fault, and enable signals. The -40C to +125C extended temperature range handles attic and rooftop HVAC environments. Compared to discrete gate-driver + timer designs, this integrated approach reduces component count by 70%.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F18313-E/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F18313-I/P | PIC16F18323-I/P | PIC16F1829-I/P | PIC16F1827-I/P | PIC16F1825-E/P | PIC16F1783-I/P |
|---|---|---|---|---|---|---|---|
| Package | 8-pin PDIP | 8-pin PDIP | 8-pin PDIP (14-pin family) | 8-pin PDIP | 8-pin PDIP | 8-pin PDIP | 8-pin PDIP |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 3.5 KB | 3.5 KB | 7 KB | 14 KB | 7 KB | 14 KB | 4 KB |
| SRAM | 256 bytes | 256 bytes | 512 bytes | 1024 bytes | 384 bytes | 1024 bytes | 256 bytes |
| Operating Temperature | -40C to +125C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +125C | -40C to +85C |
| CLC (Configurable Logic Cells) | Yes | Yes | Yes | No | No | No | No |
| NCO (Numerically Controlled Oscillator) | Yes | Yes | Yes | No | No | No | No |
| CWG (Complementary Waveform Generator) | Yes | Yes | Yes | No | No | No | No |
| 5-bit DAC | Yes | Yes | Yes | No | No | No | No |
| Approx. Unit Price (qty 1) | $1.18 | $1.05 | $1.35 | $1.40 | $1.30 | $1.55 | $1.45 |
Key Differentiators
- Extended temperature range -40C to +125C (vs PIC16F18313-I/P)
- Core Independent Peripherals (CLC, NCO, CWG, ADC2) (vs PIC16F1829-I/P)
- On-chip 5-bit DAC and 10-bit PWM (vs PIC16F1827-I/P)
- Lowest pin-count 8-bit MCU with XLP and PPS (vs PIC16F1783-I/P)
Design Notes
Estimated: at 5 V VDD and 8 MHz system clock, active current is approximately 1.4 mA and sleep current is below 30 nA in Retention mode. Decouple VDD with a 100 nF ceramic capacitor placed within 4 mm of pin 1, plus a 10 uF bulk capacitor on the supply rail. For battery-powered designs, route the MCLR pull-up through a high-impedance (100 kohm) resistor to limit current draw when not actively programming.
Keep ICSPDAT (RA0) and ICSCLK (RA1) traces short and isolated from switching power nodes to prevent in-circuit programming failures. Place the ICSP connector at the board edge with ground guard rings. According to Microchip development guidelines, route RA0/RA1 traces in parallel with a ground pour underneath to reduce noise coupling during programming.
Do not omit the MCLR pull-up resistor if MCLR is enabled in the configuration bits; floating MCLR causes spurious resets. According to the Microchip datasheet, configuration bits must be explicitly set to disable MCLR for RA3-only operation, otherwise the pin cannot be used as general-purpose I/O. PPS assignments must be unlocked by writing PPSLOCK = 0x55, 0xAA sequence before remapping.
When using the 10-bit ADC, add a 10 nF ceramic bypass capacitor at the ADC reference pin (FVREF) to reduce reference noise. Avoid routing analog signals near PWM outputs to prevent switching noise coupling. According to Microchip errata, the ADC2 computation feature requires stable VDD and reference voltage; sample at least 4 us after channel switch for accurate readings.
Compliance Information
RoHS and REACH compliant per Microchip product page. The -E temperature grade is industrial extended, but the part is not AEC-Q100 automotive qualified - choose PIC16F18313-E/P only for industrial/consumer, not automotive safety-critical applications.