PIC18F1320-I/ML - 8-Bit MCU, 8KB Flash, 40MHz, 28-QFN | Microchip
MPN: PIC18F1320-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.83 | $2.83 |
| 10 | $2.59 | $25.90 |
| 100 | $2.21 | $221.00 |
| 500 | $1.84 | $920.00 |
| 1,000 | $1.51 | $1,510.00 |
PIC18F1320-I/ML Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program memory (Flash/ROM), data memory (RAM), and programmable I/O peripherals. The PIC18 family is Microchip's enhanced 8-bit architecture line, positioned above the baseline PIC16 family and offering a 16-bit instruction word with 8-bit data path, hardware multiplier, and an extended interrupt model. PIC microcontrollers are widely used in cost-sensitive embedded control applications where deterministic real-time behavior and a mature toolchain (MPLAB X + XC8 compiler + ICD debugger) matter more than raw compute throughput.
Key features of the PIC18F1320 include nanoWatt Technology power management with six software-controlled modes, standby current as low as 0.1 uA, ten oscillator modes selectable via FOSC3:FOSC0 configuration bits, an enhanced USART, MSSP (SPI/I2C), and Capture/Compare/PWM modules. The 28-QFN package supports compact PCB layouts for space-constrained products while exposing 16 digital I/O pins.
Architecturally, the PIC18F1320 uses a Harvard RISC core with a 16-bit program bus and 8-bit data bus, providing an 8 MIPS peak instruction throughput at 40 MHz. The 10-bit ADC with 7 analog channels (selected from device pins) supports automatic acquisition and conversion sequencing, simplifying sensor reading firmware. The 256-byte EEPROM supports non-volatile data storage for user configuration or calibration constants.
Typical applications include industrial sensor interfaces, low-power remote controls, battery-powered instrumentation, HVAC peripheral controls, consumer appliance control boards, and portable medical monitoring. The wide 2.0V-5.5V operating range also enables direct 3.3V or 2xAA-battery operation.
When designing with this MCU, ensure decoupling capacitors are placed within 5 mm of the VDD pins and verify the oscillator configuration bits match the chosen resonator. For low-power designs, use the nanoWatt sleep modes aggressively between sensor reads.
This page synthesizes distributor pricing, drop-in alternatives, pinout mapping, and practical design notes for the PIC18F1320-I/ML that are not assembled on any single manufacturer or distributor page.
Drop-in alternatives for PIC18F1320-I/ML — 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-I/ML (same form factor and footprint) — differing in Package, Core Architecture, ADC, Program Memory (Flash), Standby Current.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F1220-I/ML
✅ Drop-In✓ In Stock
$2.85 / Unit
View Datasheet →PIC18F1330-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F1230-I/ML
✅ Drop-In✓ In Stock
$2.41 / Unit
View Datasheet →PIC18F1320-E/ML
✅ Drop-In✓ In Stock
$1.45 / Unit
View Datasheet →PIC18F1220T-I/ML
✅ Drop-In✓ In Stock
$2.74 / Unit
View Datasheet →PIC18F1220-H/ML
✅ Drop-In✓ In Stock
$2.65 / Unit
View Datasheet →PIC18F1320-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit RISC, Harvard) |
| Program Memory (Flash) | 8 KB (4K x 16) |
| Data RAM | 256 bytes |
| Data EEPROM | 256 bytes |
| Maximum Clock Speed | 40 MHz |
| Operating Voltage (VDD) | 2.0 V to 5.5 V |
| Digital I/O Pins | 16 |
| ADC | 10-bit, up to 7 channels |
| Timer Modules | Timer0/1/2/3 |
| Communication | Enhanced USART, MSSP (SPI/I2C) |
| PWM Outputs | Yes (via CCP module) |
| Power-Saving Modes | nanoWatt Technology, 6 software-controlled modes |
| Standby Current | 0.1 uA (typical) |
| Oscillator Modes | 10 selectable modes (FOSC3:FOSC0) |
| Operating Temperature | -40 C to +85 C (Industrial) |
| Package | 28-pin QFN (6 x 6 mm) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
| Lead-Free | Yes |
PIC18F1320-I/ML Pin Configuration
| Pin 1 | RA2/AN2 — Digital I/O / Analog input channel 2 |
| Pin 2 | RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC positive reference |
| Pin 3 | RA4/AN4 — Digital I/O / Analog input 4 |
| Pin 4 | RA5/AN5 — Digital I/O / Analog input 5 |
| Pin 5 | VSS — Ground |
| Pin 6 | OSC1/CLKI — Oscillator input / external clock |
| Pin 7 | OSC2/CLKO — Oscillator output |
| Pin 8 | RA6 — Digital I/O |
| Pin 9 | RA7 — Digital I/O |
| Pin 10 | RC0 — Digital I/O |
| Pin 11 | RC1 — Digital I/O |
| Pin 12 | RC2 — Digital I/O |
| Pin 13 | RC3 — Digital I/O |
| Pin 14 | RC4 — Digital I/O |
| Pin 15 | RC5 — Digital I/O |
| Pin 16 | RC6 — Digital I/O / TX |
| Pin 17 | RC7 — Digital I/O / RX |
| Pin 18 | RB0/INT0 — Digital I/O / External interrupt 0 |
| Pin 19 | RB1/INT1 — Digital I/O / External interrupt 1 |
| Pin 20 | RB2 — Digital I/O |
| Pin 21 | RB3 — Digital I/O |
| Pin 22 | RB4 — Digital I/O (interrupt-on-change) |
| Pin 23 | RB5 — Digital I/O (interrupt-on-change) |
| Pin 24 | RB6/PGC — Digital I/O / ICSP clock |
| Pin 25 | RB7/PGD — Digital I/O / ICSP data |
| Pin 26 | MCLR/VPP — Master clear reset / programming voltage |
| Pin 27 | RA0/AN0 — Digital I/O / Analog input 0 |
| Pin 28 | RA1/AN1 — Digital I/O / Analog input 1 |
Typical Applications
PIC18F1320-I/ML is suitable for 6 applications: Industrial Sensor Interface, Low-Power Remote Control, Battery-Powered Instrumentation, HVAC Peripheral Control, Consumer Appliance Control, Portable Medical Monitoring.
Industrial Sensor Interface
The PIC18F1320-I/ML suits industrial sensor interface modules where mixed-signal measurement, low standby current, and wide operating voltage matter. The 10-bit ADC with up to 7 channels reads thermocouple-conditioned, RTD-scaled, or 4-20 mA sensor signals directly, while the 2.0-5.5V range supports both 3.3V digital rails and legacy 5V analog front-ends. The 0.1 uA nanoWatt standby current enables battery-backed or energy-harvested industrial wireless sensor nodes where idle consumption dominates lifetime. The 8 KB Flash is sufficient for PID-style control loops with calibration lookup tables stored in the 256-byte EEPROM.
Recommended
Low-Power Remote Control
For battery-powered IR/RF remote controls, the PIC18F1320-I/ML delivers the nanoWatt sleep current of 0.1 uA that extends coin-cell or 2xAAA battery life beyond one year of standby. The MSSP peripheral supports SPI for RF transceivers or I2C for sensor/display links, and the 16 I/O pins are sufficient to drive matrix keypads or capacitive touch buttons. The 8 KB Flash accommodates IR/RF protocol stacks (RC5, NEC, ZigBee RF4CE) and vendor-unique OEM codes without external memory. The 28-QFN (6x6) package fits sub-15 mm remote PCBs.
Recommended
Battery-Powered Instrumentation
Portable handheld meters and field instruments benefit from the PIC18F1320-I/ML's wide 2.0V to 5.5V operating range, which supports direct 2xAA or 1xLi-ion operation without a boost converter. The 10-bit ADC digitizes thermistor, strain-gauge, or pH-probe signals with adequate resolution for consumer-grade instrumentation, while the 256-byte EEPROM stores calibration constants and user preferences across battery replacements. The 40 MHz clock supports fast averaging algorithms for noisy measurements. The 28-QFN footprint keeps the MCU small enough for pocketable enclosures.
Recommended
HVAC Peripheral Control
HVAC peripheral boards - damper actuators, smart thermostats, zone controllers - fit the PIC18F1320-I/ML's profile of 16 I/O, 10-bit ADC, and 2.0-5.5V industrial supply tolerance. The CCP/PWM modules drive TRIAC phases or low-side relay drivers, while the Enhanced USART links to the master HVAC controller over RS-485 or TTL serial. The wide operating temperature (-40 C to +85 C) meets typical HVAC enclosure requirements, and the 8 KB Flash holds control loop firmware plus fault-logging state machines.
Recommended
Consumer Appliance Control
Small consumer appliances - coffee makers, slow cookers, air purifiers, smart plugs - commonly use the PIC18F1320-I/ML because its 8 KB Flash fits UI state machines plus sensor processing, while the 10-bit ADC reads temperature, humidity, and current-sense signals. The MSSP and USART support Wi-Fi module handshaking (ESP-style modules), and the nanoWatt sleep modes comply with standby-power regulations (ErP, ENERGY STAR). The 28-QFN 6x6 mm footprint suits compact appliance PCBs.
Recommended
Portable Medical Monitoring
Battery-powered medical peripherals such as pulse-oximeter probes, digital thermometers, and wearable activity monitors use the PIC18F1320-I/ML because the 0.1 uA nanoWatt standby current maximizes shelf-life on coin-cell batteries. The 10-bit ADC reads photodiode, thermistor, or accelerometer signals with sufficient resolution for consumer-grade metrics, while the 8 KB Flash holds algorithm tables (SpO2 calibration curves, FIR filter coefficients). The 2.0V minimum VDD supports direct 2xAAA operation without a boost regulator, reducing BOM cost.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F1320-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F1220-I/ML | PIC18F1330-I/ML | PIC18F1230-I/ML | PIC18F1320-E/ML | PIC18F1220T-I/ML | PIC18F1220-H/ML |
|---|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-QFN (6x6) | 28-QFN (6x6) - same | 28-QFN (6x6) - same | 28-QFN (6x6) - same | 28-QFN (6x6) - same | 28-QFN (6x6) - same | 28-QFN (6x6) - same |
| Max Clock Speed | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz |
| 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 | 2.0 V to 5.5 V | 2.0 V to 5.5 V |
| ADC | 10-bit, up to 7 channels | 10-bit, up to 7 channels | 10-bit, up to 7 channels | 10-bit, up to 4 channels | 10-bit, up to 7 channels | 10-bit, up to 7 channels | 10-bit, up to 7 channels |
| Unit Price @ qty 1 (USD) | $2.83 | Lower (smaller Flash) | Similar | Similar | Similar | Lower (smaller Flash) | Lower (smaller Flash) |
Key Differentiators
- nanoWatt Technology with 0.1 uA standby (vs PIC18F1220-I/ML)
- Mature PIC18 toolchain with MPLAB X + XC8 + ICD (vs PIC18F1330-I/ML)
- Industrial -40 C to +85 C operating range (vs PIC18F1320-E/ML)
Design Notes
Place a 100 nF decoupling capacitor within 5 mm of each VDD pin (this device has multiple VDD pins for the 28-QFN) and a single 10 uF bulk capacitor near the MCU. For nanoWatt low-power designs, place the bulk capacitor on the same node as the wakeup source to minimize inrush transients. Add a 100 kohm pull-up to MCLR if unused or wire it to VDD through a 4.7 kohm resistor for in-circuit serial programming (ICSP).
When migrating from PIC18F1320 to PIC18F1220 (or vice versa), verify that your firmware fits within 4 KB or 8 KB Flash respectively - the linker does not auto-detect size mismatch and will fail silently. The CONFIG1H FOSC3:FOSC0 configuration bits must match the chosen oscillator mode (HS, XT, LP, RC, INTIOx) and are not inferred from the IDE. Always enable the watchdog timer (WDT) in firmware for industrial applications, and clear it in the main loop to recover from code lockups.
To achieve the 0.1 uA nanoWatt standby current, disable all peripherals, switch to the internal LFINTOSC (31 kHz) before SLEEP, and disable the A/D converter (ADON=0). Estimated: typical sleep current with peripherals enabled is 1-2 uA, which is 10-20x higher than the datasheet minimum. Use the IO Conguration registers to release digital functions from analog-capable pins, otherwise floating analog pins draw bias current.
The 28-QFN package requires a thermal pad connected to VSS through at least 4 thermal vias to a copper pour on the inner PCB layer. Without proper thermal relief, the die temperature can exceed 100 C at 40 MHz + 5.5V operation under heavy I/O switching. For QFN soldering, follow IPC-7530 guidelines with a peak reflow profile of 245 C for no more than 30 seconds above 220 C.
Compliance Information
RoHS and lead-free compliant per Microchip product page. Industrial grade (-40 C to +85 C) - for automotive AEC-Q100, choose PIC18F1320-E/ML extended temperature variant instead. Halogen-free status not stated in web data.