PIC16F818-I/ML - 8-Bit MCU, 20MHz, 1.75KB Flash, 28-QFN | Microchip
MPN: PIC16F818-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.42 | $3.42 |
| 10 | $3.1 | $31.00 |
| 100 | $2.71 | $271.00 |
| 500 | $2.41 | $1,205.00 |
| 1,000 | $2.18 | $2,180.00 |
PIC16F818-I/ML Overview
What is a PIC16 microcontroller? The PIC16 family is a line of 8-bit CMOS Flash-based microcontrollers from Microchip Technology using a Harvard RISC architecture that executes single-cycle instructions. Within the broader hierarchy, a PIC16F sits below PIC18/PIC24/PIC32 devices and is typically chosen for cost-sensitive embedded control. The 'F' suffix denotes Flash program memory and '18' denotes 1.75 KB code space; the family uses the standard mid-range 14-bit instruction set.
Key features include 16 I/O pins with individual direction control, 5 channels of 10-bit Analog-to-Digital conversion (ADC), a capture/compare/PWM (CCP) module, an 8 MHz internal oscillator, and NanoWatt power management technology. The device supports both Master Synchronous Serial Port modes: 3-wire SPI and 2-wire I2C, selectable via configuration bits, making it ideal for sensor and peripheral expansion.
The PIC16F818-I/ML implements the enhanced mid-range 14-bit core with 35 single-word instructions, upward code compatibility with PIC16C7x, PIC16C62xA, PIC16C5X, and PIC12CXXX devices. The Harvard architecture separates program and data buses for single-cycle instruction throughput, while the NanoWatt feature set includes multiple idle and sleep modes that reduce quiescent current for battery-powered applications.
Typical applications include battery chargers, SMPS controllers, fan controllers, motor control loops, sensor interface boards, and consumer appliance controls. The combination of internal oscillator, ADC, and PWM peripherals enables single-chip closed-loop control without external components. The wide operating voltage range (2.0V to 5.5V) supports both 3.3V and 5V rails common in mixed-signal designs.
When designing with this device, allocate the analog and digital supply pins (AVDD/AVSS) to a clean rail with proper decoupling, and place a 0.1 uF ceramic bypass capacitor adjacent to each VDD/VSS pair. The internal oscillator accuracy of +/- 1% typical is adequate for UART and timing applications but should not be used where precision timing is required without calibration.
This page synthesizes distributor pricing, drop-in same-package alternatives from the PIC16F818 family, and practical design notes that complement the manufacturer datasheet.
Drop-in alternatives for PIC16F818-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 PIC16F818-I/ML (same form factor and footprint) — differing in Package, Operating Temperature, ADC, Core Architecture, Internal Oscillator.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F819-I/ML
✅ Drop-In✓ In Stock
$2.05 / Unit
View Datasheet →PIC16F818-E/ML
✅ Drop-In✓ In Stock
$1.73 / Unit
View Datasheet →PIC16F818T-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F88-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F818-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC16 enhanced mid-range 8-bit RISC |
| Maximum Clock Frequency | 20 MHz |
| Instruction Cycle Time | 200 ns |
| Program Memory (Flash) | 1.75 KB (1K x 14 words) |
| Data SRAM | 128 bytes |
| Data EEPROM | 128 bytes |
| I/O Pins | 16 |
| ADC | 5 channels, 10-bit resolution |
| CCP Module | Capture/Compare/PWM, 1 module |
| Internal Oscillator | 8 MHz (calibrated, +/- 1%) |
| Operating Voltage | 2.0 V to 5.5 V |
| Operating Temperature Range | -40 C to +85 C (Industrial) |
| Package | 28-QFN (6x6 mm) [ML suffix] |
| Mounting Type | Surface Mount |
| Communication Peripherals | MSSP (SPI / I2C), USART not present on PIC16F818 |
| Power-Saving Modes | NanoWatt (Sleep, Idle, low-power oscillator) |
| Instruction Set | 35 single-word instructions, 14-bit |
| RoHS Status | Compliant |
PIC16F818-I/ML Pin Configuration
| Pin 1 | RA0/AN0 — Digital I/O / Analog input channel 0 |
| Pin 2 | RA1/AN1 — Digital I/O / Analog input channel 1 |
| Pin 3 | RA2/AN2/VREF- — Digital I/O / Analog input 2 / ADC negative reference |
| Pin 4 | RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC positive reference |
| Pin 5 | RA4/AN4/T0CKI — Digital I/O / Analog input 4 / Timer0 clock input |
| Pin 6 | RA5/MCLR/VPP — Digital I/O / Master Clear reset (active low) / Programming voltage |
| Pin 7 | AVSS — Analog ground |
| Pin 8 | OSC1/CLKIN — Crystal oscillator input / external clock input |
| Pin 9 | OSC2/CLKOUT — Crystal oscillator output / clock output |
| Pin 10 | RC0/T1OSO/T1CKI — Digital I/O / Timer1 oscillator output / Timer1 clock input |
| Pin 11 | RC1/T1OSI/CCP2 — Digital I/O / Timer1 oscillator input / CCP2 module |
| Pin 12 | RC2/CCP1 — Digital I/O / Capture/Compare/PWM 1 output |
| Pin 13 | RC3/SCK/SCL — Digital I/O / MSSP SPI clock / I2C clock |
| Pin 14 | RC4/SDI/SDA — Digital I/O / MSSP SPI data in / I2C data |
| Pin 15 | RC5/SDO — Digital I/O / MSSP SPI data out |
| Pin 16 | RC6 — Digital I/O |
| Pin 17 | RC7 — Digital I/O |
| Pin 18 | VSS — Digital ground |
| Pin 19 | VDD — Digital positive supply |
| Pin 20 | RB0/INT — Digital I/O / External interrupt input |
| Pin 21 | RB1 — Digital I/O |
| Pin 22 | RB2 — Digital I/O |
| Pin 23 | RB3/PGM — Digital I/O / Low-voltage ICSP programming entry |
| Pin 24 | RB4 — Digital I/O |
| Pin 25 | RB5 — Digital I/O |
| Pin 26 | RB6/PGC — Digital I/O / ICSP clock |
| Pin 27 | RB7/PGD — Digital I/O / ICSP data |
| Pin 28 | AVDD — Analog positive supply |
Typical Applications
PIC16F818-I/ML is suitable for 6 applications: Battery Charger Control, BLDC Fan Speed Controller, Sensor Interface Board, SMPS Secondary-Side Controller, Consumer Appliance Control, Motor Speed Control Loop.
Battery Charger Control
The PIC16F818-I/ML is well suited to battery charger control loops where its 10-bit ADC samples battery voltage and current while the CCP module drives a PWM signal into the switching FET. With 5 ADC channels, the device can monitor pack voltage, charge current, cell temperature via NTC, and supply rail simultaneously - matching the four-sensor requirement of most lithium-charger topologies. The NanoWatt Sleep mode drops quiescent current below typical self-discharge levels when charging completes, per the Microchip PIC16F818/819 datasheet (DS39598E).
Recommended
BLDC Fan Speed Controller
Brushless DC fan control is a primary use case for the PIC16F818-I/ML because the device integrates a 10-bit ADC for back-EMF sensing, a CCP module generating the PWM drive, and a NanoWatt Sleep mode for standby. The 20 MHz CPU executes the commutation state machine in tens of microseconds, well within the PWM period of typical 25 kHz drives. With 16 I/O pins, the MCU can directly drive gate-driver enable lines and read Hall-effect or sensorless BEMF feedback without external logic, per the Microchip PIC16F818/819 datasheet (DS39598E).
Recommended
Sensor Interface Board
The PIC16F818-I/ML serves as a sensor aggregator reading multiple analog sensors via its 5-channel 10-bit ADC and forwarding the digitized data over SPI or I2C to a host processor. The MSSP peripheral supports both 3-wire SPI at up to FOSC/4 and 2-wire I2C in Master or Slave mode, enabling connection to common sensor families. The 128-byte EEPROM stores calibration coefficients, eliminating external memory, while the internal 8 MHz oscillator removes the need for an external crystal - reducing BOM cost for compact sensor modules, per the Microchip PIC16F818/819 datasheet (DS39598E).
Recommended
SMPS Secondary-Side Controller
In isolated switch-mode power supplies, the PIC16F818-I/ML sits on the secondary side and implements voltage-mode or peak-current-mode control using the 10-bit ADC for output voltage sensing and the CCP module for duty-cycle generation. Operating at 20 MHz, the device runs control loops at tens of kHz with deterministic timing derived from the internal 8 MHz oscillator. The 2.0 V to 5.5 V supply range matches secondary-side rails, and NanoWatt Sleep enables low standby power for Energy Star compliance, per the Microchip PIC16F818/819 datasheet (DS39598E).
Recommended
Consumer Appliance Control
The PIC16F818-I/ML fits mid-volume consumer appliances such as coffee makers, blenders, and air purifiers where its 1.75 KB Flash accommodates user-interface state machines, its 16 I/O pins drive relays, seven-segment displays, and keypads, and its 5-channel ADC reads thermistors and water-level sensors. NanoWatt technology reduces standby power below 1 uA, helping meet global energy regulations. The 28-QFN 6x6 mm package supports compact appliance PCBs while the -40 C to +85 C industrial range covers under-cabinet and laundry environments, per the Microchip PIC16F818/819 datasheet (DS39598E).
Recommended
Motor Speed Control Loop
Closed-loop DC motor control benefits from the PIC16F818-I/ML's combination of a 10-bit ADC reading tachogenerator or Hall-effect speed feedback and a hardware CCP generating the PWM drive signal. The 20 MHz CPU executes PI control loops with sub-microsecond resolution, allowing tight speed regulation under varying load. NanoWatt Sleep can halt the PWM and idle the core between speed updates for battery-powered tools. The same peripheral set scales across brushed DC, small BLDC, and unipolar stepper motors when paired with external H-bridge drivers, per the Microchip PIC16F818/819 datasheet (DS39598E).
Recommended
Recommended Products Summary
Engineering reference data for PIC16F818-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F819-I/ML | PIC16F818-E/ML | PIC16F88-I/ML |
|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-QFN (6x6 mm) | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same | 28-QFN (6x6 mm) - same |
| Program Memory (Flash) | 1.75 KB | 3.5 KB | 1.75 KB | 4 KB |
| Data SRAM | 128 bytes | 256 bytes | 128 bytes | 368 bytes |
| Data EEPROM | 128 bytes | 256 bytes | 128 bytes | 256 bytes |
| Maximum Clock Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz |
| I/O Pins | 16 | 16 | 16 | 16 |
| ADC | 5 channels, 10-bit | 5 channels, 10-bit | 5 channels, 10-bit | 7 channels, 10-bit |
| Operating Temperature | -40 C to +85 C | -40 C to +85 C | -40 C to +125 C | -40 C to +85 C |
| USART | No | No | No | Yes (1x USART) |
Key Differentiators
- Lowest-cost 28-QFN PIC16 with internal oscillator (vs PIC16F88-I/ML)
- Identical 28-QFN footprint as PIC16F819 for design reuse (vs PIC16F819-I/ML)
- Industrial vs extended temperature tier in same die (vs PIC16F818-E/ML)
Design Notes
Estimated: at 20 MHz, 5.5 V, the PIC16F818-I/ML core draws approximately 10 mA typical. Adding a 0.1 uF ceramic bypass capacitor adjacent to each VDD/VSS pair (pins 19 and 18) and a 10 uF bulk capacitor at the board input reduces supply droop during GPIO switching transients. For ADC accuracy, AVSS (pin 7) and AVDD (pin 28) should connect to the digital ground and supply through a ferrite bead or 10 ohm resistor plus 0.1 uF + 10 uF decoupling, per the Microchip PIC16F818/819 datasheet (DS39598E) power-supply section.
The 28-QFN exposed thermal pad on the PIC16F818-I/ML must be soldered to the PCB ground plane for both thermal dissipation and electrical reference. Stencil apertures for the thermal pad should follow the Microchip QFN-28 land pattern recommendation (DS39598E package diagram): a central array of openings covering roughly 60% of the pad area to ensure reliable void-free solder joint. Keep digital switching traces away from the analog pins (RA0-RA3, RA5) to minimize ADC coupling noise.
Do not leave the MCLR pin (RA5/MCLR/VPP, pin 6) floating; the internal weak pull-up is enabled by configuration bit MCLRE but is not always sufficient in noisy environments. Tie MCLR to VDD through a 10 kohm resistor and place a 100 nF capacitor close to the pin to suppress ESD-induced resets. Configuration bits must be set explicitly in code: HS oscillator for >4 MHz, WDT off unless required, and LVP (RB3/PGM) disabled if not using low-voltage programming to free pin RB3 as standard GPIO, per the Microchip PIC16F818/819 datasheet (DS39598E).
Compliance Information
RoHS and REACH compliance per Microchip product environmental certification page. AEC-Q100 qualification is not available on the PIC16F818 family; for automotive applications consider the PIC16F818-E/ML (extended temperature, not AEC-Q100) or a PIC16F1xxx family part carrying AEC-Q100 status.