PIC16F1828-I/ML - 8-Bit 32MHz MCU, 7KB Flash, 20-QFN | Microchip
MPN: PIC16F1828-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $1.92 | $1.92 |
| 10 | $1.72 | $17.20 |
| 100 | $1.45 | $145.00 |
| 500 | $1.28 | $640.00 |
| 1,000 | $1.14 | $1,140.00 |
| 3,000 | $1.02 | $3,060.00 |
PIC16F1828-I/ML Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, program memory (Flash/ROM), data memory (RAM), and peripheral set on one die. The PIC16F1828 belongs to the PIC16F mid-range architecture family (8-bit MCU -> PIC microcontroller -> embedded controller -> semiconductor), designed for deterministic real-time control with low power consumption. The 'F' suffix denotes Flash-based program memory, reprogrammable in-circuit via ICSP.
Key features of the PIC16F1828 include 32 MHz internal oscillator (8 MHz with 4x PLL), 4-channel 10-bit ADC, 2 analog comparators with selectable references, 4 PWM modules (10-bit), 5 timers (Timer0, Timer1, Timer2, plus two Programmable Switched Frequency Oscillator based PWMs), and communication peripherals: I2C/SPI, Enhanced USART, and mTouch capacitive sensing. XLP technology provides < 50 nA sleep current with retention, enabling battery-powered designs.
Internally, the device uses a 14-bit instruction word RISC architecture with 200 ns instruction execution at 20 MHz (or 125 ns at 32 MHz). It supports ICD (In-Circuit Debugger) via two debug pins, eliminating the need for a debug header. Operating voltage spans 1.8 V to 5.5 V for the LF variant or 2.5 V to 5.5 V for the F variant.
Typical applications include consumer remote controls, IoT sensor nodes, low-power battery monitors, LED lighting controllers, capacitive touch keypads, and small appliance controls. The 20-QFN (4x4 mm) package suits compact handheld devices where board area is at a premium.
When designing with the PIC16F1828, route the ICSPDAT/ICSPCLK pins to a 5-pin header for programming and consider using the internal 32 MHz oscillator to free up the OSC1/OSC2 pins for general I/O. Ensure decoupling with 100 nF + 10 uF near VDD, and connect the exposed pad (EP) to ground for thermal dissipation and EMI performance.
This page synthesizes current distributor pricing, drop-in alternatives, pinout data, and practical design notes not found in the manufacturer datasheet, providing engineers with a unified reference for component selection.
Drop-in alternatives for PIC16F1828-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 PIC16F1828-I/ML (same form factor and footprint) — differing in Package, ADC, Timers, Operating Temperature, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16F1828-E/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16F1828T-I/ML
✅ Drop-In✓ In Stock
$0.97 / Unit
View Datasheet →PIC16F1827-I/ML
✅ Drop-In✓ In Stock
$1.55 / Unit
View Datasheet →PIC16F1829-I/ML
✅ Drop-In✓ In Stock
$1.18 / Unit
View Datasheet →PIC16F1788-I/ML
✅ Drop-In✓ In Stock
$1.82 / Unit
View Datasheet →PIC16F1768-I/ML
✅ Drop-In✓ In Stock
$1.55 / Unit
View Datasheet →PIC16F1828-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC16 enhanced mid-range 8-bit RISC |
| Program Memory (Flash) | 7 KB (4K x 14 words) |
| Data Memory (RAM) | 256 bytes |
| EEPROM | 256 bytes |
| Maximum CPU Speed | 32 MHz (8 MHz internal with 4x PLL) |
| Instruction Cycle Time | 125 ns at 32 MHz |
| Supply Voltage (VDD) | 2.5 V to 5.5 V |
| I/O Pins | 12 |
| ADC | 1x 10-bit, up to 12 channels |
| Analog Comparators | 2 with selectable references |
| PWM Channels | 4 (10-bit) |
| Timers | 5 (Timer0, Timer1, Timer2, two PSMC-derived) |
| Communication Peripherals | I2C, SPI, Enhanced USART |
| Package | 20-pin QFN (4x4 mm) with Exposed Pad |
| Operating Temperature | -40 C to +85 C (Industrial) |
| Mounting Type | Surface Mount |
| MSL Level | 1 |
| RoHS Status | Compliant |
| Debug Support | In-Circuit Debug via ICSP (no header required) |
PIC16F1828-I/ML Pin Configuration
| Pin 1 | RA5/SS/HLVDIN/VCAP — GPIO RA5 / SPI Slave Select / High-Low Voltage Detect input / Voltage regulator capacitor |
| Pin 2 | RA4/AN3/T1G/OSC2/CLKOUT — GPIO RA4 / Analog input 3 / Timer1 gate / Crystal oscillator output / Clock out |
| Pin 3 | RA3/AN2/T1CKI/MCLR/VPP — GPIO RA3 / Analog input 2 / Timer1 clock / Master Clear reset (active low) / Programming voltage |
| Pin 4 | RC5/P1D/CCP1 — GPIO RC5 / PWM 1D output / CCP1 capture/compare/PWM |
| Pin 5 | RC4/P1C — GPIO RC4 / PWM 1C output |
| Pin 6 | RC3/AN7/CCP2 — GPIO RC3 / Analog input 7 / CCP2 capture/compare/PWM |
| Pin 7 | RC2/AN6/P1D — GPIO RC2 / Analog input 6 / PWM 1D output |
| Pin 8 | RC1/AN5/P1C — GPIO RC1 / Analog input 5 / PWM 1C output |
| Pin 9 | RC0/AN4 — GPIO RC0 / Analog input 4 |
| Pin 10 | VSS — Ground reference |
| Pin 11 | RA2/AN2/T0CKI/INT/COUT — GPIO RA2 / Analog input 2 / Timer0 clock / External interrupt / Comparator output |
| Pin 12 | RA1/AN1/ICSPCLK — GPIO RA1 / Analog input 1 / ICSP clock programming |
| Pin 13 | RA0/AN0/ICSPDAT — GPIO RA0 / Analog input 0 / ICSP data programming |
| Pin 14 | VSS — Ground reference (secondary) |
| Pin 15 | VDD — Positive supply voltage (2.5V to 5.5V) |
| Pin 16 | RB7/ICSPDAT/AN11 — GPIO RB7 / ICSP data programming / Analog input 11 |
| Pin 17 | RB6/ICSPCLK/AN10 — GPIO RB6 / ICSP clock programming / Analog input 10 |
| Pin 18 | RB5/AN9/P2B — GPIO RB5 / Analog input 9 / PWM 2B output |
| Pin 19 | RB4/AN8/P2A — GPIO RB4 / Analog input 8 / PWM 2A output |
| Pin 20 | EP — Exposed pad - thermal and electrical connection to VSS (must be soldered to PCB ground plane) |
Typical Applications
PIC16F1828-I/ML is suitable for 6 applications: Consumer Remote Control, IoT Battery-Powered Sensor Node, LED Lighting Controller, Capacitive Touch Keypad Interface, Small Appliance Control (Coffee Maker, Toaster), Battery Charger Controller.
Consumer Remote Control
The PIC16F1828-I/ML fits consumer remote controls because of its sub-50 nA XLP sleep current and 12 I/O pins sufficient for IR transmit, key matrix scanning, and LED indicators. The 32 MHz CPU handles RC5/RC6/SIRC IR protocol encoding without external timers, and the 7 KB Flash accommodates state-machine control code with room for protocol variants. The 20-QFN 4x4 mm package enables ultra-compact PCB designs behind keypads. Place a 100 nF decoupling capacitor near VDD and route ICSPCLK/ICSPDAT to a programming header for factory calibration. Compared to a discrete IR transmitter design, the integrated PWM channels eliminate the need for an external modulator IC.
Recommended
IoT Battery-Powered Sensor Node
For IoT sensor nodes powered by coin cells, the PIC16F1828-I/ML's XLP technology enables multi-year battery life through sub-50 nA sleep current and rapid < 5 us wake time. The 32 MHz CPU processes sensor data and runs AES-128 encryption for secure MQTT messages, while the 10-bit ADC handles analog sensor inputs with 12-channel multiplexing. The 256 B RAM is adequate for short sensor buffers; pair with external FRAM if larger data logging is needed. The 20-QFN package suits miniaturized nodes mounted in tight enclosures. Design tip: use the internal 32 MHz oscillator to save OSC1/OSC2 pins for sensor I/O, and enable the brown-out reset to protect against low-battery data corruption.
Recommended
LED Lighting Controller
The PIC16F1828-I/ML drives LED lighting controllers through its 4 PWM channels with 10-bit resolution, supporting smooth RGB dimming and color mixing without external PWM ICs. The 32 MHz CPU computes lighting effects and color-temperature blending, while the EUSART interface accepts commands from a central controller or DMX bridge. The 7 KB Flash holds lighting presets and curve tables; EEPROM stores user preferences. According to Microchip datasheet 41419A, the high-speed PWM supports up to 20 kHz frequency, well above the human flicker-perception threshold. Place the device near the LED driver with short PWM trace routing to minimize EMI, and use the exposed pad (EP) connected to ground for thermal dissipation at high PWM switching currents.
Recommended
Capacitive Touch Keypad Interface
The PIC16F1828-I/ML's integrated mTouch capacitive sensing module enables up to 12 touch buttons without external touch ICs, ideal for appliance front panels and access control keypads. The 32 MHz CPU runs Microchip's mTouch library for proximity detection and slider/wheel algorithms, while the 7 KB Flash accommodates tuning and debounce logic. The 20-QFN 4x4 mm package supports thin bezel designs. According to Microchip datasheet 41419A, the CVD (Charge-Voltage Division) acquisition method provides robust touch performance even in wet or noisy environments. Route touch electrode traces as short, balanced copper pours and add a guard ring around the touch area for moisture immunity.
Recommended
Small Appliance Control (Coffee Maker, Toaster)
The PIC16F1828-I/ML serves as the main controller in small appliances like coffee makers, toasters, and blenders, where its 32 MHz CPU manages temperature profiling, motor PWM control, and user interface. The 4 PWM channels drive heating elements and DC motors with precise duty-cycle control, while the 10-bit ADC monitors NTC thermistors and current sensing. The 12 I/O pins connect to segment LCDs, button matrices, and relay drivers. The 2.5-5.5 V supply range tolerates rectified mains variation. Design tip: use the on-chip comparators for over-current protection without external op-amps, and program the EEPROM to retain user preferences through power cycles.
Recommended
Battery Charger Controller
The PIC16F1828-I/ML implements CC/CV battery charging profiles for Li-Ion, NiMH, and lead-acid packs through its 10-bit ADC monitoring battery voltage and current shunt. The 32 MHz CPU runs state-machine-based charging algorithms with safety timers, while 2 analog comparators detect over-voltage and over-current faults independently of firmware. The 256 B EEPROM stores battery chemistry parameters and charge cycle counters. The 7 KB Flash fits charging profiles for multiple battery types selectable via user input. Design consideration: use the PWM channels to drive a buck converter MOSFET directly at low currents, or gate an external charge controller IC at higher charge rates. Connect the exposed pad to ground for thermal dissipation during continuous monitoring.
Recommended
Recommended Products Summary
Engineering reference data for PIC16F1828-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16F1828-E/ML | PIC16F1829-I/ML | PIC16F1788-I/ML | PIC16F1768-I/ML |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 20-QFN (4x4 mm) | 20-QFN (4x4 mm) - same | 20-QFN (4x4 mm) - same | 20-QFN (4x4 mm) - same | 20-QFN (4x4 mm) - same |
| Program Memory (Flash) | 7 KB | 7 KB | 14 KB | 28 KB | 7 KB |
| RAM | 256 B | 256 B | 1024 B | 2048 B | 512 B |
| I/O Pins | 12 | 12 | 18 | 18 | 18 |
| Maximum CPU Speed | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz |
| Operating Voltage | 2.5 V to 5.5 V | 2.5 V to 5.5 V | 2.5 V to 5.5 V | 2.3 V to 5.5 V | 2.3 V to 5.5 V |
| XLP nanoWatt Low Power | Yes | Yes | Yes | Yes | Yes |
| Operating Temperature | -40 C to +85 C | -40 C to +125 C | -40 C to +85 C | -40 C to +85 C | -40 C to +85 C |
Key Differentiators
- Integrated XLP nanoWatt technology for sub-50 nA sleep (vs PIC16F1827-I/ML)
- Dual full-bridge PWM for direct motor/LED H-bridge drive (vs PIC16F1768-I/ML)
- Extended memory and I/O expansion path (vs PIC16F1829-I/ML)
Design Notes
The 20-QFN package requires a 4x4 mm PCB land pattern with a central thermal pad (EP) that MUST be soldered to the ground plane for mechanical reliability and thermal dissipation. Place 100 nF + 10 uF decoupling capacitors within 3 mm of VDD pin 15 and VSS pin 10. Route the ICSPDAT/ICSPCLK (RB7/RB6) traces to a 5-pin or 6-pin header for in-circuit programming - avoid series resistors on these lines which can prevent reliable programming at low VDD. Keep the ICSPCLK trace short (< 50 mm) and use a ground guard around it to prevent noise coupling during high-speed ADC conversions.
Estimated: With VDD=3.3 V, 32 MHz active CPU, and all peripherals enabled, typical IDD is approximately 5 mA. Sleep current with XLP and RTCC enabled is approximately 0.5 uA; full-retention sleep (WDT off) drops to < 50 nA. Brown-out Reset (BOR) must be enabled in CONFIG1 for battery applications to prevent code corruption during voltage droops. If using the on-chip voltage regulator (LF parts only), place a 0.1 uF capacitor on the VCAP pin (RA5) within 1 mm of the pin to ensure regulator stability.
Do NOT connect the MCLR pin (RA3) directly to VDD without a pull-up resistor - it requires a 10 kohm pull-up to VDD for normal operation and must be brought low for ICSP programming. Forgetting the MCLR pull-up is the #1 cause of 'dead' PIC16F1828 designs. Additionally, when migrating from PIC16F882 to PIC16F1828, note the pinout differences - the 1828 uses pins 16-19 for the RB4-RB7 port which are different positions than older PIC16F887 family. Always verify the AC244043 debug header compatibility if upgrading from PICkit 2 designs.
Compliance Information
RoHS compliant per Microchip product page. Industrial -40C to +85C temperature grade; not AEC-Q100 qualified - choose PIC16F1828-E/ML (extended temp) or PIC16F1828T-E/ML for automotive-adjacent applications.