PIC18F1320-E/P - 8KB Flash 8-bit MCU 25MHz | Microchip
MPN: PIC18F1320-E/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $6.16 | $6.16 |
| 10 | $5.5 | $55.00 |
| 100 | $4.95 | $495.00 |
| 500 | $4.4 | $2,200.00 |
| 1,000 | $3.9 | $3,900.00 |
PIC18F1320-E/P Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program and data memory, peripherals, and I/O on one die. The PIC18 family sits within Microchip's 8-bit PIC microcontroller hierarchy (PIC10/12/16/18/24), where PIC18 devices add an enhanced 16-bit instruction word, hardware multiplier, C-compiler-friendly architecture, and linear memory addressing compared to baseline PIC16 parts. They are commonly used for cost-sensitive embedded control where mature tooling and low power are valued.
Key features of the PIC18F1320-E/P include nanoWatt Technology with six software-controlled power-managed modes that drop standby current to as low as 0.1 microamp, a 10-bit Analog-to-Digital Converter (ADC) with up to 7 input channels, and Capture/Compare/PWM (CCP) modules. The 'E' suffix indicates the Extended temperature grade of -40C to +125C, while '/P' denotes the 18-pin PDIP (Plastic Dual In-line Package) with 0.300" (7.62mm) row spacing. The device supports In-Circuit Serial Programming (ICSP) via two pins, allowing firmware updates after PCB assembly.
Internally, the PIC18F1320 uses a Harvard architecture with separate program and data buses, a 16-bit instruction word, and an 8-bit data path. Its 25 MIPS peak throughput at 25MHz, combined with the 10-bit ADC and enhanced CCP, makes it well suited to closed-loop control tasks such as motor drive, lighting, and battery management. The wide 2.0V to 5.5V operating range simplifies designs that run from a single Li-ion cell, two AA cells, or a regulated 5V rail.
Typical applications include consumer appliances, low-end motor control, sensor signal conditioning, LED drivers, smoke detectors, and small IoT edge nodes. Engineers often choose this part when they need more Flash, RAM, and peripherals than a PIC16F device, but do not need the hardware complexity of a dsPIC or PIC24 device. Its 18-pin PDIP form factor also makes it ideal for hobbyists, education, breadboard prototypes, and through-hole service/repair situations.
When designing with the PIC18F1320-E/P, pay close attention to configuration bits (fuses) for oscillator selection and watchdog behavior, since most application bugs in PIC firmware arise from incorrect oscillator or brown-out configuration rather than code logic. Decoupling VDD with a 0.1uF ceramic capacitor placed close to the package is critical, and unused I/O pins should be configured as outputs low to minimize current draw.
This page synthesizes Microchip datasheet specifications, current distributor pricing across 9 sources, drop-in alternatives in the same 18-pin PDIP footprint, and practical design notes that go beyond the data sheet summary.
Drop-in alternatives for PIC18F1320-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 PIC18F1320-E/P (same form factor and footprint) — differing in Package, Program Memory (Flash), ADC, Core Architecture, Mounting Type.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F1320-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F1220-E/P
✅ Drop-In✓ In Stock
$2.95 / Unit
View Datasheet →PIC18F1220-I/P
✅ Drop-In✓ In Stock
$2.95 / Unit
View Datasheet →PIC18F1230-I/P
✅ Drop-In✓ In Stock
$3.05 / Unit
View Datasheet →PIC18F1320-E/P Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit Harvard, enhanced 16-bit instruction word) |
| Maximum CPU Frequency | 25 MHz (40 MHz per alternate datasheet row) |
| Program Memory (Flash) | 8 KB (4K x 16 words) |
| Data Memory (RAM) | 256 bytes |
| Data EEPROM | 256 bytes |
| Operating Voltage Range | 2.0 V to 5.5 V |
| Digital I/O Pins | 16 |
| ADC | 10-bit, up to 7 channels |
| Timers | Timer0, Timer1, Timer2, Timer3 |
| CCP Modules | 1 Enhanced CCP |
| Power-Saving Modes | nanoWatt Technology, 6 software-controlled modes, standby current as low as 0.1 uA |
| Operating Temperature | -40C to +125C (Extended, 'E' suffix) |
| Package | 18-pin PDIP (0.300" / 7.62mm row spacing) |
| Programming Interface | ICSP (In-Circuit Serial Programming) |
| RoHS Status | Compliant |
PIC18F1320-E/P Pin Configuration
| Pin 1 | MCLR/VPP/RA3 — Master Clear (reset) input / programming voltage / port A bit 3 |
| Pin 2 | RA0/AN0 — Port A bit 0 / ADC input channel 0 |
| Pin 3 | RA1/AN1 — Port A bit 1 / ADC input channel 1 |
| Pin 4 | RA2/AN2/VREF- — Port A bit 2 / ADC input channel 2 / ADC negative reference |
| Pin 5 | RA3/AN3/VREF+ — Port A bit 3 / ADC input channel 3 / ADC positive reference |
| Pin 6 | RA4/AN4/T0CKI — Port A bit 4 (open-drain) / ADC input channel 4 / Timer0 clock input |
| Pin 7 | RA5/AN5/SS/LVDIN — Port A bit 5 / ADC input channel 5 / SPI slave select / LVD input |
| Pin 8 | VSS — Ground reference |
| Pin 9 | OSC1/CLKA/RA7 — Oscillator input / clock output / port A bit 7 |
| Pin 10 | OSC2/CLKB/RA6 — Oscillator output / clock output / port A bit 6 |
| Pin 11 | RC0/T1OSO/T1CKI — Port C bit 0 / Timer1 oscillator output / Timer1 clock input |
| Pin 12 | RC1/T1OSI/CCP2 — Port C bit 1 / Timer1 oscillator input / Enhanced CCP2 output |
| Pin 13 | RC2/CCP1 — Port C bit 2 / Enhanced CCP1 output (PWM) |
| Pin 14 | RC3 — Port C bit 3 (digital I/O only) |
| Pin 15 | RC4 — Port C bit 4 (digital I/O only) |
| Pin 16 | RC5 — Port C bit 5 (digital I/O only) |
| Pin 17 | VDD — Positive supply voltage (2.0V to 5.5V) |
| Pin 18 | VSS — Ground reference |
Typical Applications
PIC18F1320-E/P is suitable for 6 applications: Battery-Powered Sensor Node, Small Appliance Control (Coffee Makers, Fans, Humidifiers), LED Lighting Controller, Hobby / Education / Breadboard Prototyping, Smoke Detector / Safety Sensor Front-End, Industrial Sensor Conditioning & Display.
Battery-Powered Sensor Node
The PIC18F1320-E/P is well-suited for battery-powered sensor nodes because of its nanoWatt Technology with six software-controlled power-managed modes and standby current as low as 0.1 microamp per the Microchip 39605c datasheet. Operating from 2.0V to 5.5V, it can run directly from a single Li-ion or two AA cells without a boost converter. Its 10-bit ADC with up to 7 channels supports multiple sensor inputs (temperature, humidity, light), while 8KB of Flash provides ample room for state machines, calibration tables, and a small protocol stack. In typical duty-cycled designs (1 second active per minute), average current drops into the microamp range, enabling multi-year battery life on a coin cell.
Recommended
Small Appliance Control (Coffee Makers, Fans, Humidifiers)
The PIC18F1320-E/P is a strong fit for small home appliances because its 16 digital I/O pins can drive LEDs, sense buttons, control relays, and read temperature sensors all from one 18-pin PDIP. The enhanced CCP module delivers PWM outputs suitable for variable-speed fans, dimmable LEDs, or proportional valve control at 10-bit resolution. Its 8KB Flash holds user-interface state machines and PID loops, while ICSP allows firmware updates after assembly without removing the part. Many small-appliance designs use the same PCB across multiple SKUs, simply swapping PIC18F1320-E/P with PIC18F1220-E/P for lower-memory variants.
Recommended
LED Lighting Controller
The PIC18F1320-E/P serves as a compact LED lighting controller thanks to its CCP module producing accurate PWM waveforms for brightness control and color mixing in RGB/RGBW fixtures. With 16 I/O pins, it can drive multiple LED channels directly or sink current through MOSFETs, while the 10-bit ADC monitors light sensors for closed-loop daylight harvesting. Its 2.0V to 5.5V operating range allows direct connection to a 3.3V regulated rail or to a 5V supply in commercial fixtures. The 0.1uA Sleep current also makes it suitable for battery-powered task lighting or emergency luminaires that must hold charge for years.
Recommended
Hobby / Education / Breadboard Prototyping
The PIC18F1320-E/P in 18-pin PDIP is one of the most popular parts for hobby and classroom use because its through-hole pins fit standard breadboards and 0.1" headers, eliminating the need for fine-pitch soldering. The PIC18 architecture is taught in most universities and supported by MPLAB X IDE, XC8 compiler, and the free simulator, lowering the learning curve. With 8KB Flash, students can implement UART, I2C, and SPI peripherals, build interrupt-driven firmware, and complete semester projects such as digital thermometers or motor controllers. Drop-in compatibility with the lower-cost PIC18F1220 also lets instructors scale assignments by memory size without redesigning hardware.
Recommended
Smoke Detector / Safety Sensor Front-End
The PIC18F1320-E/P is widely used in residential smoke and CO detector front-ends where its low Sleep current (0.1 uA) is critical for the 10-year battery-life requirement mandated by UL 217. Its 10-bit ADC digitizes the photoelectric or electrochemical sensor signal, while ICSP allows final calibration to be performed in production rather than relying on factory-trimmed components. The Extended temperature grade (-40C to +125C) covers attic and garage environments, and the 18-pin PDIP is preferred over SMD for high-reliability through-hole safety products that must survive thermal cycling and field service.
Recommended
Industrial Sensor Conditioning & Display
The PIC18F1320-E/P is appropriate for industrial 4-20mA loop-powered transmitters and small HMI panels where its 2.0V to 5.5V supply range accommodates both loop-powered 3.3V circuits and 5V LCD/LED displays. Its 10-bit ADC (7 channels) handles multiple analog sensors, the CCP module drives PWM-controlled displays or valve actuators, and the Extended temperature grade (-40C to +125C) supports outdoor and factory-floor installations. UART, I2C, and SPI peripherals allow connection to digital sensors, EEPROM, or Modbus transceivers, while the 8KB Flash holds calibration coefficients and linearization tables for sensor compensation.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F1320-E/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F1320-I/P | PIC18F1220-E/P | PIC18F1220-I/P | PIC18F1230-I/P |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 18-pin PDIP | 18-pin PDIP | 18-pin PDIP | 18-pin PDIP | 18-pin PDIP |
| Flash Memory | 8 KB | 8 KB | 4 KB (-50%) | 4 KB (-50%) | 8 KB |
| RAM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| Temperature Grade | Extended (-40C to +125C) | Industrial (-40C to +85C) | Extended (-40C to +125C) | Industrial (-40C to +85C) | Industrial (-40C to +85C) |
| Operating Voltage | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V |
| CPU Frequency | 25 MHz | 25 MHz | 25 MHz | 25 MHz | 25 MHz |
| ADC | 10-bit, 7 channels | 10-bit, 7 channels | 10-bit, 7 channels | 10-bit, 7 channels | 10-bit, 7 channels |
| Pin Compatibility | Yes | Yes | Yes | Yes | Yes |
Key Differentiators
- Higher 8KB Flash vs lower-memory siblings (vs PIC18F1220-E/P)
- Extended -40C to +125C temperature grade (vs PIC18F1320-I/P)
- Smaller 18-pin PDIP for service-friendly designs (vs Larger 28/40-pin PIC18F variants)
Design Notes
Place a 0.1uF ceramic decoupling capacitor as close as possible to the VDD pin (pin 17) with a short, wide trace to VSS (pin 18 or pin 8). For designs with significant ADC usage, add a 10uF bulk capacitor on VDD. Use the internal nanoWatt Sleep modes with a wake-up timer to drop standby current to ~0.1 uA when the application is mostly idle (sensor sampling every few seconds), giving multi-year coin-cell battery life.
For 18-pin PDIP layouts, route the ICSP pins (PGC/PGD on RA6/RA7 in some configurations, or RB6/RB7 on 28-pin parts) to a 2x3 or 1x6 programming header that is accessible without removing the MCU. Keep crystal traces (OSC1/OSC2) short and symmetric, and surround the crystal body with a ground guard ring if EMI-sensitive analog signals are nearby.
Do not leave unused I/O pins floating - configure them as outputs driven low (or as inputs with internal weak pull-ups enabled) to minimize current draw and reduce susceptibility to ESD events. Verify configuration bits for oscillator selection (HS vs XT vs internal RC) and brown-out reset (BOR) voltage threshold; most PIC18 application bugs originate from incorrect fuse settings rather than code logic. Ensure MCLR (pin 1) is tied to VDD through a 10k resistor - leaving it floating causes intermittent resets.
When using the 10-bit ADC, add an RC low-pass filter (typically 1kOhm + 100nF) on each analog input to reject digital switching noise from nearby I/O lines. Avoid routing high-frequency digital signals (PWM, SPI clock) directly across analog input traces, and dedicate an analog ground island connected to VSS at a single point if mixed-signal accuracy is required.
Compliance Information
RoHS and REACH compliant per Microchip product page; lead-free matte-tin finish on PDIP leads. AEC-Q100 not applicable for general-purpose industrial/consumer grade - automotive designs should select AEC-Q100 qualified PIC18 variants. Conflict-minerals statement per Microchip corporate policy.