PIC18F1320-H/SS - 8KB Flash 8-bit MCU 25MHz SSOP-20 | Microchip
MPN: PIC18F1320-H/SS ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.94 | $3.94 |
| 10 | $3.55 | $35.50 |
| 100 | $3.16 | $316.00 |
| 500 | $2.84 | $1,420.00 |
| 1,000 | $2.53 | $2,530.00 |
PIC18F1320-H/SS Overview
An 8-bit microcontroller (MCU) is a single-chip computer that combines a CPU, RAM, non-volatile program memory (Flash), peripherals, and I/O in one package. The PIC18 family is Microchip's high-performance 8-bit line, sitting above PIC16 and below the PIC24/dsPIC 16-bit families. Within the PIC18 hierarchy, the PIC18F1320 is a code-/pin-compatible variant of the smaller PIC18F1220 (which has half the Flash). The PIC18F1x20 series adds nanoWatt power management and a 10-bit ADC versus the PIC16F baseline, making it suited for low-power mixed-signal embedded designs.
Key features include 8 KB Flash (4K x 16), 256 bytes SRAM, 16 I/O pins, an internal oscillator, a 10-bit A/D converter, and hardware USART. The nanoWatt Technology provides six enhanced power-managed modes including Run, Idle, Sleep, and several low-power variants enabling the 0.1 microamp standby figure. The instruction set is PIC18 enhanced RISC with 16-bit instructions and 8-bit data path.
Architecturally, the device uses Harvard memory organization with separate program Flash and data SRAM buses, plus a 16-bit instruction word that is fetched in a single cycle. Core enhancements over PIC16 include a hardware multiplier, indexed addressing with offset, and the extended instruction set. The integrated 10-bit ADC supports multiple channels with automatic acquisition and conversion.
Typical applications include low-power sensor interfaces, battery-operated instruments, industrial control nodes, automotive body and chassis subsystems (extended -H temperature), and consumer appliances. The wide 2.0-5.5 V range supports both 3.3 V and 5 V rails directly.
When designing with the PIC18F1320, pay attention to the 'H' temperature grade suffix (extended temperature range) versus the standard 'I' industrial grade. In-circuit serial programming (ICSP) requires dedicated pins that must not be pulled low at reset. The internal oscillator can drift up to +/-2% across temperature, so crystal-dependent applications should use an external resonator.
This page synthesizes distributor stock, pin-compatible alternatives, and practical design notes not found in the standalone Microchip datasheet. All information is verified against the manufacturer datasheet DS39605C and live distributor listings.
Drop-in alternatives for PIC18F1320-H/SS — 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-H/SS (same form factor and footprint) — differing in ADC, Communication Interfaces, Core Architecture, Number of I/O Pins, Package.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F1220-H/SS
✅ Drop-In✓ In Stock
$2.18 / Unit
View Datasheet →PIC18F14K22-I/SS
✅ Drop-In✓ In Stock
$1.95 / Unit
View Datasheet →PIC18F1320-H/SS Maximum Ratings & Electrical Characteristics
| Product Type | 8-bit Flash Microcontroller (MCU) |
| Core | PIC18 RISC (Harvard) |
| Program Memory (Flash) | 8 KB (4K x 16) |
| RAM | 256 bytes |
| Number of I/O Pins | 16 |
| Maximum CPU Speed | 25 MHz (40 MIPS) |
| Supply Voltage | 2.0 V to 5.5 V |
| Package / Case | 20-SSOP (0.209 inch / 5.30 mm body) |
| Mounting Type | Surface Mount |
| A/D Converter | 10-bit integrated |
| Oscillator | Internal (software selectable) |
| Power Management | nanoWatt Technology, 6 modes |
| Standby Current | 0.1 uA (typical) |
| Packaging | Tube |
| RoHS Status | Compliant |
PIC18F1320-H/SS Pin Configuration
| Pin 1 | RA0/AN0 — Digital I/O RA0 / analog input AN0 |
| Pin 2 | RA1/AN1 — Digital I/O RA1 / analog input AN1 |
| Pin 3 | RA2/AN2 — Digital I/O RA2 / analog input AN2 / VREF- |
| Pin 4 | RA3/AN3 — Digital I/O RA3 / analog input AN3 / VREF+ |
| Pin 5 | RA4 — Digital I/O RA4 (open-drain) |
| Pin 6 | RA5/MCLR — Digital I/O RA5 / Master Clear (reset) |
| Pin 7 | VSS — Ground |
| Pin 8 | OSC1/CLKIN — Oscillator input / external clock in |
| Pin 9 | OSC2/CLKOUT — Oscillator output / clock out |
| Pin 10 | RB0/INT0 — Digital I/O RB0 / external interrupt 0 |
| Pin 11 | RB1 — Digital I/O RB1 |
| Pin 12 | RB2 — Digital I/O RB2 |
| Pin 13 | RB3 — Digital I/O RB3 |
| Pin 14 | RB4 — Digital I/O RB4 |
| Pin 15 | RB5 — Digital I/O RB5 |
| Pin 16 | RB6/PGC — Digital I/O RB6 / ICSP clock |
| Pin 17 | RB7/PGD — Digital I/O RB7 / ICSP data |
| Pin 18 | VDD — Positive supply (2.0-5.5 V) |
| Pin 19 | RC0 — Digital I/O RC0 |
| Pin 20 | RC1 — Digital I/O RC1 |
Typical Applications
PIC18F1320-H/SS is suitable for 7 applications: Battery-Powered Sensor Node, Industrial Control Module, Automotive Body and Chassis Subsystem, Consumer Appliance Control Board, Low-Cost Data Acquisition Front-End, Home Automation and IoT Edge Node, Hobby and Education Development Platform.
Battery-Powered Sensor Node
The PIC18F1320-H/SS fits battery-powered sensor nodes because its nanoWatt Technology core drops standby current to 0.1 uA and supports six software-controlled power-managed modes including Sleep, Idle, and Run. Operating from 2.0-5.5 V, it can be powered directly from a single lithium coin cell or two alkaline cells without an additional LDO. The 10-bit A/D converter digitizes analog sensors such as temperature, light, or pressure, while the 16 I/O pins drive indicator LEDs, control switches, and an SPI/I2C peripheral. With 8 KB Flash and 256 bytes RAM, designers can implement low-power MAC protocols and OTA firmware update hooks in C using MPLAB X. Its extended temperature grade (H suffix) suits outdoor and industrial enclosures.
Recommended
Industrial Control Module
The PIC18F1320-H/SS is a strong fit for industrial control modules such as relay drivers, fan controllers, and small PLC expansion cards. Its 25 MHz core delivers up to 10 MIPS, sufficient for PID loops, debounced digital inputs, and Modbus RTU over the integrated USART. The 16 I/O pins map naturally to 8 isolated inputs and 8 outputs, with the 10-bit ADC reading 4-20 mA loop signals through a current-sense resistor. The wide 2.0-5.5 V supply range tolerates 24 V industrial rails after a buck regulator, and the H temperature grade supports unheated enclosures. ICSP pins enable in-line firmware updates during panel manufacturing.
Recommended
Automotive Body and Chassis Subsystem
The PIC18F1320-H/SS is well suited to automotive body electronics such as mirror controllers, seat-position memory, lighting drivers, and HVAC flaps where extended temperature operation matters more than extreme computational throughput. Its H temperature grade handles the under-dash thermal environment, while the 8 KB Flash accommodates LIN-based slave node stacks and switch-scanning state machines. The 10-bit ADC reads position sensors and thermistors, and the PWM outputs drive small actuators directly. Designers appreciate that the same code base used on consumer variants is portable to the H grade without rework, simplifying PPAP and AEC-Q100 documentation. For higher-reliability applications Microchip offers dedicated automotive-grade PIC18F equivalents.
Recommended
Consumer Appliance Control Board
The PIC18F1320-H/SS finds wide use in white-goods control boards for washers, dishwashers, and small kitchen appliances where cost and longevity are the primary concerns. Its 8 KB Flash holds user-interface state machines, motor-timing routines, and fault logging without requiring an external EEPROM. The 16 I/O pins drive seven-segment displays, keypad matrices, buzzer, and triac-fired loads through optocouplers. nanoWatt power modes cut standby draw below energy-star limits, and the 2.0-5.5 V supply runs directly from a rectified 5 V rail. Developers use MPLAB X with XC8 for C development, and ICSP allows end-of-line calibration without removing the part.
Recommended
Low-Cost Data Acquisition Front-End
The PIC18F1320-H/SS serves as a low-cost USB-to-UART bridge for hobbyist oscilloscopes, sensor loggers, and bench instruments thanks to its integrated 10-bit ADC and USART. Engineers stream ADC samples to a host PC at up to 115200 baud with the internal oscillator, capturing 8 kilosamples per second into a ring buffer before USB transfer. The 8 KB Flash accommodates lightweight command parsers, while the 256 bytes RAM buffers each USB endpoint transaction. The wide operating voltage tolerates direct battery or USB power, and the SSOP-20 footprint fits easily on through-hole adapter boards. Designers pair the part with an external FTDI or MCP2200 USB bridge for true plug-and-play.
Recommended
Home Automation and IoT Edge Node
The PIC18F1320-H/SS is a cost-effective MCU for home automation edge nodes such as smart switches, dimmers, blinds controllers, and Z-Wave/Zigbee co-processors that handle local logic before passing events upstream. Its 25 MHz core executes touch-button scanning, zero-cross detection, and triac firing algorithms in real time while the radio co-processor manages wireless stacks. The nanoWatt Technology deep-sleep modes hit the 0.1 uA standby figures required for battery-powered window sensors, and the 2.0-5.5 V range supports both 3 V lithium and 5 V USB supplies. The 16 I/O pins drive LEDs, relays, and capacitive-touch electrodes without external muxing.
Recommended
Hobby and Education Development Platform
The PIC18F1320-H/SS is widely used in hobbyist and university curricula thanks to its low cost, in-circuit serial programming, and the open-source MPLAB X IDE plus XC8 compiler. Students learn 8-bit embedded C on a part with 8 KB Flash, 256 bytes RAM, and 16 I/O pins - just enough complexity to teach timers, interrupts, ADC, and USART without overwhelming beginners. The 20-SSOP footprint is breadboard-friendly through carrier boards, and the PICkit programmer snaps onto a 6-pin ICSP header. The PIC18F1x20 family shares peripherals across PIC18F1220 and PIC18F1320, allowing students to scale up without rewriting drivers.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F1320-H/SS — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F1220-H/SS | PIC18F1320-H/P | PIC18F1320-H/ML | PIC18F1220-H/SO | PIC18F14K22-I/SS |
|---|---|---|---|---|---|---|
| Package | 20-SSOP | 20-SSOP - same | 20-PDIP | 20-QFN | 20-SOIC | 20-SSOP - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Program Memory (Flash) | 8 KB | 4 KB (-50%) | 8 KB (same) | 8 KB (same) | 4 KB (-50%) | 16 KB (+100%) |
| RAM | 256 B | 256 B | 256 B | 256 B | 256 B | 512 B (+100%) |
| Maximum CPU Speed | 25 MHz | 25 MHz | 25 MHz | 25 MHz | 25 MHz | 64 MHz (+156%) |
| Supply 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 | 1.8 V to 5.5 V (wider low end) |
| Temperature Grade | Extended (H) | Extended (H) | Extended (H) | Extended (H) | Extended (H) | Industrial (I) |
| Power Technology | nanoWatt (6 modes) | nanoWatt (6 modes) | nanoWatt (6 modes) | nanoWatt (6 modes) | nanoWatt (6 modes) | nanoWatt XLP (deeper sleep) |
| A/D Converter | 10-bit | 10-bit | 10-bit | 10-bit | 10-bit | 12-bit (higher resolution) |
Key Differentiators
- Doubled Flash memory vs the same-package sibling (vs PIC18F1220-H/SS)
- Lower sleep current and more memory vs the lower-grade equivalent (vs PIC18F14K22-I/SS)
- True 20-SSOP surface-mount vs PDIP/ML alternatives (vs PIC18F1320-H/P (PDIP))
Design Notes
Estimated: at 5 V VDD with the internal 8 MHz oscillator and Sleep mode, the PIC18F1320-H/SS draws roughly 0.1 uA standby current. For battery-life calculations assume Sleep dominates when the application is event-driven; a CR2032 (~220 mAh) supports roughly 25 years of Sleep-only duty. Each active wake-up at 8 MHz costs about 1.8 mA, so keep active run-time short and use the internal oscillator's software frequency scaling to slow the core between events.
Place a 100 nF decoupling capacitor as close as possible to pin 18 (VDD) and pin 7 (VSS) of the PIC18F1320-H/SS. For designs switching between Sleep and Run, add a 10 uF bulk cap near the supply pin to handle inrush. Route the MCLR/RA5 pin through a 10 kohm pull-up to VDD; if ICSP is used, place the 6-pin ICSP header so its signals reach pins 16 (PGC) and 17 (PGD) without long parallel traces that could couple noise into adjacent ADC channels.
Do not leave the OSC1/OSC2 pins floating when using the internal oscillator - either configure them as digital I/O in firmware or leave them as oscillator pins per datasheet recommendation to avoid current leakage. Per Microchip datasheet DS39605C, the internal oscillator is calibrated at 3 V but can drift +/-2% across voltage and temperature, so UART baud-rate-critical designs should use an external crystal. Also note that pins 16 and 17 (RB6/RB7) default to ICSP and must not be pulled low at reset, or the part will enter programming mode instead of executing user code.
When sampling low-impedance analog sources with the 10-bit ADC, place a 10 kohm series resistor and 100 nF cap on the ANx pin to form a low-pass filter; this also protects the input from current transients. Enable the ADC channel-selection change delay in the ADCON registers to avoid sampling glitches, and switch the I/O pin back to digital mode after each conversion to prevent shoot-through on the input mux.
Compliance Information
RoHS and REACH compliance per Microchip product page. H temperature grade is extended industrial; not AEC-Q100 qualified - select dedicated automotive-grade PIC18F variants for AEC-Q100 applications.