Opens in a new tab

PIC18F25K22-I

PIC18 XLP MCU, 32KB Flash, 1.5KB RAM, 256B EEPROM, 17-ch 10-bit ADC, 5 PWM, 2 comp, dual SPI/I2C, EUSART/LIN, CTMU, 64MHz, 28-pin

10732

Effective Inventory

Image for reference only

Manufacturer Part:

PIC18F25K22-I

Package:

28-pin PDIP / SOIC / SSOP / QFN / UQFN

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The PIC18F25K22-I is a 28-pin, 8-bit high-performance low-power Flash microcontroller from Microchip Technology featuring the PIC18 architecture with XLP (eXtreme Low-Power) technology. With 16 MIPS performance and a 31-level deep hardware stack, this versatile MCU offers 32KB (16K x 16) of Flash program memory, 1536 bytes of RAM, and 256 bytes of data EEPROM. Operating at up to 64 MHz across a wide voltage range of 2.3V to 5.5V, it integrates a 17-channel 10-bit ADC, two analog comparators, two CCP and three ECCP modules, dual MSSP (SPI/I2C), one EUSART with LIN support, a CTMU for capacitive touch, a 5-bit DAC, and an internal 16 MHz oscillator with PLL. With its rich peripheral set including dual SPI/I2C, multiple PWM channels, and nanoWatt XLP low-power operation, the PIC18F25K22 is ideal for industrial control, sensor interfaces, battery-powered devices, consumer appliances, and automotive applications requiring high performance in a compact 28-pin package.

Key Specifications

Core Architecture 8-bit PIC18 RISC Architecture
Program Memory 32KB Flash (16K x 16 words)
RAM 1536 bytes (1.5 KB)
Data EEPROM 256 bytes
Maximum Speed 64 MHz (16 MIPS)
Operating Voltage 2.3V to 5.5V
I/O Pins 25
ADC 10-bit, 17 channels with auto-acquisition
Comparators 2 rail-to-rail analog comparators
DAC 5-bit rail-to-rail DAC
Timers 4 x 16-bit + 3 x 8-bit = 7 total timers
PWM 2 x CCP + 3 x ECCP = 5 total PWM modules
Communication EUSART, 2 x SPI, 2 x I2C (dual MSSP)
Capacitive Touch CTMU module (Charge Time Measurement Unit)
Voltage Reference Fixed Voltage Reference (FVR): 1.024/2.048/4.096V
Internal Oscillator 16 MHz factory calibrated ±1%, 31 kHz-16 MHz range
PLL 4x PLL for up to 64 MHz
Low Power XLP nanoWatt, 100 nA Sleep typical
Stack Levels 31-level software accessible hardware stack
Hardware Multiplier 8 x 8 single-cycle hardware multiplier
Debug In-Circuit Debug (ICD)
Operating Temperature -40°C to +85°C (Industrial)
Package 28-pin PDIP / SOIC / SSOP / QFN / UQFN

Features

  • C compiler optimized PIC18 RISC architecture with 16 MIPS at 64 MHz
  • 31-level deep software accessible hardware stack
  • 8 x 8 single-cycle hardware multiplier
  • Priority levels for interrupts
  • Linear program memory addressing to 64 KB
  • Linear data memory addressing to 4 KB
  • eXtreme Low-Power (XLP) nanoWatt technology
  • Sleep mode: 100 nA typical; WDT: 500 nA typical
  • 17-channel 10-bit ADC with auto-acquisition and conversion during Sleep
  • Two rail-to-rail analog comparators
  • 5-bit rail-to-rail resistive DAC
  • Fixed Voltage Reference (FVR): 1.024V, 2.048V, 4.096V
  • Three Enhanced CCP (ECCP) with PWM steering and programmable dead time
  • Two standard CCP (Capture/Compare/PWM) modules
  • Charge Time Measurement Unit (CTMU) for capacitive touch sensing
  • Dual Master Synchronous Serial Port (MSSP) modules: 2x SPI + 2x I2C
  • Enhanced USART (EUSART) with auto-baud detect and LIN support
  • High/Low-Voltage Detection (HLVD) module: 16 programmable levels
  • Internal 16 MHz oscillator factory calibrated to ±1%
  • Software selectable frequencies: 31 kHz to 16 MHz
  • 4x Phase Lock Loop (PLL) for 64 MHz operation
  • Fail-Safe Clock Monitor and Two-Speed Oscillator Start-up
  • Seven timer modules: 4 x 16-bit + 3 x 8-bit
  • Programmable Brown-out Reset (BOR)
  • Extended Watchdog Timer (WDT) with on-chip oscillator
  • Self-programmable under software control
  • In-Circuit Serial Programming (ICSP) and In-Circuit Debug (ICD)
  • 25 I/O pins with 25 mA sink/source capability
  • Programmable code protection
  • Recommended for Automotive Design (AEC-Q100 qualified)

Applications

  • Industrial control and sensor interfaces
  • Automotive body electronics and sensor modules
  • Consumer electronics and smart appliances
  • Motor control and power management systems
  • Battery-powered data loggers and portable devices
  • Home automation and IoT device endpoints
  • Medical devices and instrumentation
Product Introduction: PIC18F25K22-I Product Introduction

The PIC18F25K22 is a 28-pin high-performance 8-bit Flash microcontroller from Microchip Technology featuring the PIC18 architecture with eXtreme Low-Power (XLP) technology. Part of the popular K22 family, it offers 32KB (16K x 16) of Flash program memory, 1536 bytes of RAM, and 256 bytes of data EEPROM, operating at up to 64 MHz (16 MIPS) across a wide voltage range of 2.3V to 5.5V. The rich peripheral set includes a 17-channel 10-bit ADC with auto-acquisition capability, two rail-to-rail analog comparators, a 5-bit DAC, three Enhanced CCP (ECCP) modules, two standard CCP modules, and a CTMU module for capacitive touch sensing. Communication is handled by dual MSSP modules (providing two SPI and two I2C interfaces) and one EUSART with auto-baud detect and LIN support. The internal 16 MHz oscillator factory calibrated to ±1% with 4x PLL provides up to 64 MHz operation without external components. XLP technology delivers industry-leading low power consumption with only 100 nA in Sleep mode. With its comprehensive peripheral set, dual communication interfaces, automotive AEC-Q100 qualification, and compact 28-pin package, the PIC18F25K22 is an excellent choice for industrial control, automotive, consumer, medical, and battery-powered applications. Available in PDIP, SOIC, SSOP, QFN, and UQFN packages with industrial temperature range (-40°C to +85°C).

Working Principle: PIC18F25K22-I Working Principle

The PIC18F25K22 operates on the PIC18 RISC architecture with 16-bit wide instructions and an 8-bit wide data path, delivering 16 MIPS at 64 MHz. The 31-level deep hardware stack supports deeply nested subroutines and interrupts, while the 8 x 8 single-cycle hardware multiplier accelerates mathematical operations. XLP (eXtreme Low-Power) technology provides industry-leading low power consumption across all operating modes. The 10-bit ADC uses successive approximation register (SAR) architecture with 17 input channels, auto-acquisition capability, and selectable voltage references (VDD, FVR at 1.024/2.048/4.096V). The CTMU (Charge Time Measurement Unit) enables precise time measurements and capacitive touch sensing without external components. Three ECCP and two CCP modules provide five independent capture/compare/PWM channels with enhanced PWM features including steering, dead-band control, and auto-shutdown. Dual MSSP modules provide two independent SPI and two independent I2C communication channels, while the EUSART handles UART/LIN communication with auto-baud detection and auto-wake-up. The HLVD (High/Low-Voltage Detection) module monitors supply voltage and generates an interrupt at programmable threshold levels, enabling graceful power fail handling. Seven timer modules provide flexible timing resources. Power management includes multiple low-power modes, programmable Brown-Out Reset, and Extended Watchdog Timer for reliable operation. The internal oscillator with PLL eliminates the need for external crystals in most applications, reducing BOM cost and board space.

Pin Description: PIC18F25K22-I Pin Definition and Functions
Pin (PDIP-28/SOIC-28/SSOP-28) Name Type Function
1 MCLR/VPP/RE3 I/P Master Clear / VPP / Port E I/O
2 RA0/AN0/ULPWU I/O Port A I/O / ADC0 / Ultra Low-Power Wake-up
3 RA1/AN1 I/O Port A I/O / ADC Channel 1
4 RA2/AN2/VREF-/CVREF I/O Port A I/O / ADC2 / Vref- / Comp Vref
5 RA3/AN3/VREF+ I/O Port A I/O / ADC3 / Vref+
6 RA4/T0CKI/C1OUT I/O Port A I/O / T0CKI / Comp1 Output
7 RA5/SS/AN4/C2OUT I/O Port A I/O / SPI SS / ADC4 / Comp2 Output
8 VSS P Ground Reference
9 RA7/OSC1/CLKIN I Port A I/O / Oscillator Input / Clock Input
10 RA6/OSC2/CLKOUT O Port A I/O / Oscillator Output / Clock Output
11 RC0/T1OSO/T1CKI I/O Port C I/O / T1OSO / Timer1 Clock
12 RC1/T1OSI/CCP2 I/O Port C I/O / T1OSI / CCP2
13 RC2/CCP1/P1A I/O Port C I/O / CCP1 / PWM1A
14 RC3/SCK1/SCL1 I/O Port C I/O / SPI1 Clock / I2C1 Clock
15 RC4/SDI1/SDA1 I/O Port C I/O / SPI1 DI / I2C1 Data
16 RC5/SDO1/TX1/CK1 I/O Port C I/O / SPI1 DO / EUSART1 TX/CK
17 RC6/TX1/CK1 I/O Port C I/O / EUSART1 TX/Clock
18 RC7/RX1/DT1 I/O Port C I/O / EUSART1 RX/Data
19 VSS P Ground Reference
20 VDD P Positive Supply Voltage
21 RB0/INT/CCP3/P1B I/O Port B I/O / Ext Int / CCP3 / PWM1B
22 RB1/SDO2/CCP4/P1C I/O Port B I/O / SPI2 DO / CCP4 / PWM1C
23 RB2/SCK2/SCL2/CCP5/P1D I/O Port B I/O / SPI2 CK / I2C2 CK / CCP5 / PWM1D
24 RB3/SDI2/SDA2/CCP6/PGM I/O Port B I/O / SPI2 DI / I2C2 D / CCP6 / LVP
25 RB4/SS2/CCP7 I/O Port B I/O / SPI2 SS / CCP7
26 RB5/RX2/DT2/C12IN0- I/O Port B I/O / EUSART2 RX / Comp Neg In 0
27 RB6/ICSPCLK/C12IN1- I/O Port B I/O / ICSP Clock / Comp Neg In 1
28 RB7/ICSPDAT/C2IN+/C1IN+ I/O Port B I/O / ICSP Data / Comp Pos In
Application Scenarios: In which products and applications is PIC18F25K22-I used
  • Industrial sensor interfaces and process controllers
  • Automotive body electronics and LIN bus nodes
  • Smart home appliances and consumer electronics
  • DC and BLDC motor control systems
  • Battery-powered data loggers and portable meters
  • Medical devices and patient monitoring equipment
  • IoT device endpoints with dual communication interfaces
Alternative Models: What chips are recommended as replacements for PIC18F25K22-I
Manufacturer Part Number Package Notes
Microchip PIC18LF25K22-I 28-pin Low-voltage XLP, 1.8-3.6V, same features
Microchip PIC18F45K22-I 40-pin 32KB Flash, 28-ch ADC, 36 I/O, larger package
Microchip PIC18F26K22-I 28-pin 64KB Flash, 3.8KB RAM, more memory
Microchip PIC18F24K22-I 28-pin 16KB Flash, 768B RAM, lower cost
Microchip PIC18F25K42-I 28-pin Newer K42 gen, 12-bit ADC, DMA, vectored interrupts

Recommend Parts

ISO1176TDWR

Isolated RS-485 transceiver, 40Mbps, integrated transformer driver, SOIC-16

Brand: TI

Package: SOIC-16 (DW, wide-body, 10.3 x 10.3 mm)

IN STOCK: 6874pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRFB4020PBF

200V N-Channel HEXFET Power MOSFET, 31A, 68 mΩ RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 14149pcs

Cargo cycle: 3-7 Days

The minimum order is 1

NRF52832-QFAA-T

Nordic BLE SoC, ARM Cortex-M4 @ 64MHz, 64KB Flash, 32KB RAM, QFN-48

Package: See datasheet

IN STOCK: 10958pcs

Cargo cycle: 3-7 Days

The minimum order is 1

UCC28740DR

CVCC Flyback Controller, 700V startup, opto feedback, <10mW no-load, SOIC-7

Brand: TI

Package: SOIC-7 (4.9 x 3.9 x 1.75 mm)

IN STOCK: 4840pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MMUN2211LT1G

NPN digital transistor, R1=10kΩ R2=10kΩ, 50V, 100mA, SOT-23-3, pre-biased BRT switch

Brand: Onsemi

Package: SOT-23-3 (TO-236, SC-59)

IN STOCK: 8500pcs

Cargo cycle: 3-7 Days

The minimum order is 1

PIC32MX795F512L-80I/PF

32-bit PIC32MX MCU with Ethernet/CAN/USB, 80MHz, 512KB Flash, TQFP-100, industrial

Brand: MICROCHIP

Package: TQFP-100 (14 x 14 mm)

IN STOCK: 7912pcs

Cargo cycle: 3-7 Days

The minimum order is 1