PIC16F18313-I/SN - 8-Bit MCU, 32MHz, 3.5KB Flash | Microchip
MPN: PIC16F18313-I/SN ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.2 | $1.20 |
| 10 | $1.08 | $10.80 |
| 100 | $0.95 | $95.00 |
| 500 | $0.84 | $420.00 |
| 1,000 | $0.78 | $780.00 |
| 3,000 | $0.71 | $2,130.00 |
PIC16F18313-I/SN Overview
An 8-bit microcontroller (MCU) is a single-chip computer built around an 8-bit data bus and a RISC or CISC CPU core, integrating Flash program memory, RAM, EEPROM, peripherals, and I/O on a single die. The PIC16F18313 belongs to Microchip's enhanced mid-range PIC16F family, which adds peripheral pin select (PPS), core-independent peripherals (CIPs), and the eXtreme Low Power (XLP) technology platform. In the broader system hierarchy, the PIC16F18313 sits as: 8-bit MCU -> microcontroller -> embedded processor -> semiconductor IC.
Key features include 6 I/O pins, peripheral pin select (PPS) for flexible signal routing, 10-bit ADC with computation (ADC2), 5-bit DAC, configurable logic cells (CLC), numerically controlled oscillator (NCO), complementary waveform generator (CWG), zero-cross detect (ZCD), and multiple communication peripherals including I2C, SPI, and UART with LIN support. The XLP architecture delivers typical sleep currents below 1 uA and active currents in the tens of microamperes at 1MHz, making the part suitable for battery-powered sensor nodes.
The PIC16F18313 uses an enhanced mid-range 16-bit instruction word architecture (RISC) executed in a 2-stage pipeline, allowing most instructions to complete in a single 125ns instruction cycle at 32MHz. The 10-bit ADC2 with averaging, oversampling, and threshold compare automates sensor signal conditioning in hardware, reducing firmware burden and CPU wake time. PPS allows remapping of digital peripheral I/O to nearly any pin, simplifying PCB layout and BOM reuse across multiple SKUs.
Typical applications include low-power IoT sensor nodes, battery-powered consumer devices, LIN slave nodes in automotive body electronics, LED lighting controllers with smooth dimming (CLC + NCO), and general-purpose 8-pin replacement of legacy PIC12/PIC16 designs needing more peripherals. The 8-pin SOIC footprint also suits hand-soldered prototypes and hobbyist projects.
Designers should pay attention to the ICSP programming pin assignments on RA0/RA1, which conflict with the main oscillator on these pins; use an alternate programming header or RA3-only oscillator configuration if ICSP access must coexist with the high-frequency oscillator. Decoupling VDD with a 100nF ceramic capacitor within 3mm of the pin is required for ADC accuracy, and the MCLR pull-up should be 10kohm unless external reset is desired.
This page synthesizes distributor pricing, drop-in alternatives, pinout, and practical design notes not found in the manufacturer datasheet alone, with all data verified as of 2026-09-20.
Drop-in alternatives for PIC16F18313-I/SN — 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-I/SN (same form factor and footprint) — differing in Package, ADC, I/O Pins, Core, Timers.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F18313T-I/SN
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$0.74 / Unit
View Datasheet →PIC16F18313-E/SN
✅ Drop-In ⚠️ 参数待验证📋 Reference alternative (not in catalog)
PIC16F18313-E/RFVAO
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$0.55 / Unit
View Datasheet →PIC16F18313-I/SN Maximum Ratings & Electrical Characteristics
| Core Architecture | Enhanced Mid-Range 8-bit PIC RISC |
| Maximum CPU Frequency | 32 MHz |
| Program Memory (Flash) | 3.5 KB (2K x 14 words) |
| SRAM | 256 bytes |
| EEPROM | 256 bytes |
| Operating Voltage (VDD) | 2.3 V to 5.5 V |
| I/O Pins | 6 |
| Package | 8-pin SOIC (SN, 3.90 mm body) |
| ADC | 10-bit, up to 5 channels (ADC2 with computation) |
| DAC | 5-bit, 1 channel |
| Communication Peripherals | 1x I2C/SPI, 1x UART (with LIN), PPS-supported |
| Core Independent Peripherals | CLC, NCO, CWG, ZCD, DSM |
| Timers | 4 (Timer0, Timer1, Timer2, SMT) |
| Operating Temperature | -40 C to +85 C (industrial) |
| Mounting Type | Surface Mount |
| MSL Level | 1 |
| RoHS Status | Compliant |
| Programming Interface | ICSP (In-Circuit Serial Programming) via PICKit/MPLAB |
PIC16F18313-I/SN Pin Configuration
| Pin 1 | RA5 — Bidirectional I/O with PPS, analog input |
| Pin 2 | RA4 — Bidirectional I/O with PPS, analog input |
| Pin 3 | RA3/MCLR — I/O or Master Clear (reset) input with internal pull-up |
| Pin 4 | VSS — Ground reference |
| Pin 5 | RA0/ICSPDAT — I/O or ICSP data; analog input |
| Pin 6 | RA1/ICSPCLK — I/O or ICSP clock; analog input |
| Pin 7 | RA2 — Bidirectional I/O with PPS, analog input |
| Pin 8 | VDD — Positive power supply, 2.3V to 5.5V |
Typical Applications
PIC16F18313-I/SN is suitable for 6 applications: Battery-Powered IoT Sensor Nodes, LIN Slave Nodes in Automotive Body Electronics, LED Lighting Controllers with Smooth Dimming, General-Purpose 8-Pin Replacement for Legacy PIC Designs, Touch and Capacitive Sensing User Interfaces, Industrial Sensor Signal Conditioning.
Battery-Powered IoT Sensor Nodes
The PIC16F18313-I/SN suits coin-cell and 2xAA battery-powered IoT sensors thanks to its XLP architecture with sub-1uA sleep current and 2.3V-5.5V VDD range. The 10-bit ADC2 with computation (averaging and threshold compare) automates temperature, light, or humidity sensor sampling while the CPU remains asleep, reducing average current to tens of microamperes in duty-cycled wake-measure-transmit loops. The CLC and NCO peripherals enable hardware-only wake-on-event logic, eliminating firmware latency and further extending battery life in multi-year deployment scenarios.
Recommended
LIN Slave Nodes in Automotive Body Electronics
The PIC16F18313-I/SN's integrated UART with LIN 1.3/2.0/2.1 support, plus its 32MHz internal oscillator and 6 I/O pins with PPS, make it a compact LIN slave controller for window regulators, seat controllers, mirror adjusters, and ambient lighting modules. The CWG peripheral generates complementary PWM for H-bridge motor drivers, while ADC2 samples current-sense feedback for stall detection. The -40C to +85C industrial temperature grade covers cabin applications; for under-hood use, choose the AEC-Q100 qualified PIC16F18313-E/RFVAO variant.
Recommended
LED Lighting Controllers with Smooth Dimming
The PIC16F18313-I/SN delivers smooth, flicker-free LED dimming through its Complementary Waveform Generator (CWG), 5-bit DAC, and Configurable Logic Cells (CLC) operating independently of the CPU. The CWG produces phase-correct PWM up to 32MHz resolution while the NCO generates high-frequency dithering to push dimming frequencies above the audible band. The 256-byte EEPROM stores calibration and dim curve parameters across power cycles. With 6 I/O pins available, the MCU can drive two LED channels plus a push-button interface and I2C control bus.
Recommended
General-Purpose 8-Pin Replacement for Legacy PIC Designs
The PIC16F18313-I/SN is a drop-in modern replacement for legacy PIC12F675, PIC12F683, and PIC16F690 designs in 8-pin DIP/SOIC footprints, offering 32MHz operation, 3.5KB Flash, and modern peripherals (ADC2, NCO, CLC, PPS) without code rewrite. The Peripheral Pin Select (PPS) feature remaps digital peripheral I/O to nearly any pin, enabling PCB layout reuse across PIC12F and PIC16F variants. Migration is supported by MPLAB X IDE with XLP-aware code examples and Migrate Plug-ins for register-level compatibility.
Recommended
Touch and Capacitive Sensing User Interfaces
The PIC16F18313-I/SN supports Microchip's mTouch capacitive touch sensing library through its ADC2 peripheral and CLC hardware, enabling up to 4 touch buttons or a single slider without external sensing ICs. The 32MHz instruction cycle delivers sub-millisecond touch response latency for responsive UI feedback. The integrated zero-cross detect (ZCD) peripheral supports touch-through-glass designs and AC line synchronization for backlight dimming in appliances. With only 6 I/O pins available, this MCU fits compact control panels and white goods.
Recommended
Industrial Sensor Signal Conditioning
The PIC16F18313-I/SN is well suited for industrial 4-20mA loop sensor transmitters, RTD/thermocouple cold-junction compensation modules, and bridge-sensor signal conditioning front-ends. The 10-bit ADC2 with hardware averaging provides 11.5 ENOB effective resolution for bridge pressure and load-cell measurements, while the 5-bit DAC trims offset and gain in firmware. The 256-byte EEPROM stores per-unit calibration constants. The PPS feature allows flexible PCB routing to keep analog and digital sections physically separated for EMI robustness.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F18313-I/SN — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F18313-I/P | PIC16F18313T-I/SN | PIC16F18313-E/SN | PIC16F18313-E/RFVAO |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | SOIC-8 (SN) | PDIP-8 (P) | SOIC-8 (SN) - same | SOIC-8 (SN) - same | SOIC-8 (SN) - same |
| Flash Memory | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB | 3.5 KB |
| SRAM | 256 B | 256 B | 256 B | 256 B | 256 B |
| EEPROM | 256 B | 256 B | 256 B | 256 B | 256 B |
| Max CPU Frequency | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz |
| Operating Temperature | -40C to +85C (industrial) | -40C to +85C | -40C to +85C | -40C to +125C (extended) | -40C to +125C (automotive) |
| AEC-Q100 Qualified | No | No | No | No | Yes |
Key Differentiators
- Core Independent Peripherals (CIPs) - ADC2, NCO, CLC, CWG, ZCD (vs PIC16F1829-I/SO)
- Peripheral Pin Select (PPS) for flexible PCB layout (vs PIC16F1829-I/SO)
- XLP sleep current below 1uA with full RAM retention (vs PIC16F1829-I/SO)
Design Notes
Decouple VDD (pin 8) with a 100nF X7R ceramic capacitor placed within 3mm of the pin, plus a bulk 10uF tantalum or aluminum polymer capacitor near the MCU. The PIC16F18313's XLP sleep current is below 1uA when properly decoupled; poor bypassing can push sleep current into the tens of microamperes. For battery applications, ensure the MCLR pull-up is 10kohm (not higher) to minimize leakage, and disable unused peripherals via firmware to reach datasheet-specified XLP levels.
Use the Peripheral Pin Select (PPS) feature to route UART, I2C, and SPI signals away from analog input pins on RA0-RA3, keeping digital switching noise out of ADC measurements. The 8-pin SOIC has only 6 I/O pins, so PPS pin selection must be planned during schematic capture, not after layout. Place the ICSP header on RA0/RA1 for in-circuit programming access; these pins double as analog inputs so consider using RA3-only oscillator mode if ADC accuracy on RA0/RA1 is needed.
Do not configure RA0/RA1 as digital outputs with internal weak pull-ups enabled while ICSP is active - this can cause programming failures on PICKit 4 and ICD 4 debuggers. Disable the analog functions on these pins in firmware before switching to output mode. Also, do not exceed 5.5V on VDD or apply voltage to RA3/MCLR above VDD+0.3V, as this will trigger ESD latch-up. When migrating from PIC12F675, note that the F18313 has different CONFIG register addresses requiring CONFIG pragma updates in XC8 compiler projects.
Compliance Information
RoHS and REACH compliant per Microchip product environmental compliance documents. Not AEC-Q100 qualified - choose PIC16F18313-E/RFVAO for automotive. MSL-1 moisture sensitivity level, matte-tin lead finish.