PIC18F2525-I/SP - 8-Bit PIC MCU, 48KB Flash, 40MHz | Microchip
MPN: PIC18F2525-I/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $8.5 | $8.50 |
| 10 | $7.65 | $76.50 |
| 100 | $6.8 | $680.00 |
| 500 | $6.1 | $3,050.00 |
| 1,000 | $5.45 | $5,450.00 |
PIC18F2525-I/SP Overview
A microcontroller (MCU) is a single-chip computer containing a CPU core, program memory (Flash/ROM), data memory (RAM), and programmable peripherals on a single die. The PIC18 family uses an enhanced 8-bit RISC Harvard architecture with separate program and data buses, allowing simultaneous instruction fetch and operand access. Within the broader taxonomy, an MCU is a subset of microprocessors (MP/MCU), which sit within semiconductors, specifically the embedded controller category used in industrial, automotive, consumer, and IoT electronics.
Key features include 1024 bytes of EEPROM data memory, an internal 8 MHz oscillator with PLL options for 40 MHz operation, two analog comparators, a hardware watchdog timer, and In-Circuit Serial Programming (ICSP) via two pins. The device operates across an industrial temperature range of -40 C to +85 C (I-grade) with a supply voltage range of 4.2 V to 5.5 V, supporting legacy 5V system designs. The 28-pin SPDIP package eases prototyping and breadboard-friendly designs, with pin counts shared across PIC18F2420, PIC18F2520, PIC18F2525, and PIC18F2620 family derivatives.
The PIC18F2525 uses a modified Harvard architecture with 31-level hardware stack, 32 kHz to 40 MHz oscillator modes, and nanoWatt Technology for power-managed sleep and idle modes. It supports ICD (In-Circuit Debugger) over ICSP and is fully supported by MPLAB X IDE, MPLAB XC8 compiler, and PICkit programmer ecosystem. The ADC delivers 10-bit resolution at up to approximately 30 ksps, and the ECAN module is absent on this part (compared to PIC18F2585).
Typical applications include industrial control loops, sensor interface boards, motor-driver control signal generation, USB HID class peripherals (with added transceiver), home appliance control panels, and educational/professional embedded development. Mid-range PIC18 parts are also widely used in legacy product refresh, retrofitting older PIC16 systems with more memory and peripherals.
When designing with the PIC18F2525-I/SP, ensure adequate decoupling with 100 nF ceramic capacitors near VDD/AVDD/VSS pins and consider the internal oscillator calibration and configuration bits to match operating frequency. The device has adequate memory to run RTOS, USB stacks (with external PHY), or graphical LCD user interfaces.
This page synthesizes distributor stock and pricing, drop-in pin-compatible alternatives within the PIC18 family, and practical design notes that complement the Microchip datasheet PDF.
Drop-in alternatives for PIC18F2525-I/SP — 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 PIC18F2525-I/SP (same form factor and footprint) — differing in Package, ADC, Operating Temperature, Core, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F2620-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F2520-I/SP
✅ Drop-In✓ In Stock
$3.33 / Unit
View Datasheet →PIC18F2523-I/SP
✅ Drop-In✓ In Stock
$3.65 / Unit
View Datasheet →PIC18F2515-I/SP
✅ Drop-In✓ In Stock
$5 / Unit
View Datasheet →PIC18F2420-I/SP
✅ Drop-In✓ In Stock
$5.22 / Unit
View Datasheet →PIC18F2525-I/SP Maximum Ratings & Electrical Characteristics
| Core | PIC18 (8-bit RISC, enhanced Harvard) |
| Instruction Set | 75 instructions, 16-bit opcode |
| CPU Speed | 40 MHz, 10 MIPS |
| Program Memory (Flash) | 48 KB (24K x 16) |
| SRAM | 3968 bytes |
| EEPROM | 1024 bytes |
| Digital I/O Pins | 25 |
| ADC | 10-bit, up to 13 channels |
| USART | 2 modules (EUSART) |
| MSSP (SPI/I2C) | 1 module |
| CCP/ECCP | 2 CCP + 1 ECCP |
| Comparators | 2 analog |
| Operating Voltage | 4.2 V to 5.5 V |
| Operating Temperature | -40 C to +85 C (I-grade, SPDIP) |
| Package | 28-pin SPDIP (SP) |
| Mounting Type | Through-Hole |
| RoHS Status | Compliant (lead-free) |
| Programming/Debug | ICSP, ICD via PGC/PGD |
PIC18F2525-I/SP Pin Configuration
| Pin 1 | MCLR/VPP/RE3 — Master Clear (reset) input or programming voltage; also digital I/O RE3 |
| Pin 2 | RA0/AN0 — Digital I/O RA0 / Analog input AN0 |
| Pin 3 | RA1/AN1 — Digital I/O RA1 / Analog input AN1 |
| Pin 4 | RA2/AN2/VREF- — Digital I/O RA2 / Analog input AN2 / ADC negative reference |
| Pin 5 | RA3/AN3/VREF+ — Digital I/O RA3 / Analog input AN3 / ADC positive reference |
| Pin 6 | RA4/T0CKI/C1OUT — Digital I/O RA4 / Timer0 clock input / Comparator 1 output |
| Pin 7 | RA5/AN4/SS/HLVDIN/C2OUT — Digital I/O RA5 / Analog input AN4 / SPI slave select / HLVD input / Comparator 2 output |
| Pin 8 | VSS — Ground reference |
| Pin 9 | RA7/OSC1/CLKI — Digital I/O RA7 / Oscillator crystal input / External clock input |
| Pin 10 | RA6/OSC2/CLKO — Digital I/O RA6 / Oscillator crystal output / Clock output |
| Pin 11 | RC0/T1OSO/T1CKI — Digital I/O RC0 / Timer1 oscillator output / Timer1 clock input |
| Pin 12 | RC1/T1OSI/CCP2 — Digital I/O RC1 / Timer1 oscillator input / CCP2 PWM/capture |
| Pin 13 | RC2/CCP1 — Digital I/O RC2 / CCP1 PWM/capture |
| Pin 14 | RC3/SCK/SCL — Digital I/O RC3 / SPI clock / I2C clock |
| Pin 15 | RC4/SDI/SDA — Digital I/O RC4 / SPI data in / I2C data |
| Pin 16 | RC5/SDO — Digital I/O RC5 / SPI data out |
| Pin 17 | RC6/TX1/CK1 — Digital I/O RC6 / EUSART1 TX / EUSART1 clock |
| Pin 18 | RC7/RX1/DT1 — Digital I/O RC7 / EUSART1 RX / EUSART1 data |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply (4.2V to 5.5V) |
| Pin 21 | RB0/INT0/FLT0 — Digital I/O RB0 / External interrupt 0 / PWM fault input |
| Pin 22 | RB1/INT1 — Digital I/O RB1 / External interrupt 1 |
| Pin 23 | RB2/INT2/CANTX — Digital I/O RB2 / External interrupt 2 (CAN TX on PIC18F2585) |
| Pin 24 | RB3/INT3/CANRX — Digital I/O RB3 / External interrupt 3 (CAN RX on PIC18F2585) |
| Pin 25 | RB4 — Digital I/O RB4 (interrupt-on-change) |
| Pin 26 | RB5 — Digital I/O RB5 (interrupt-on-change) |
| Pin 27 | RB6/ICSPCLK — Digital I/O RB6 / ICSP clock / ICD clock |
| Pin 28 | RB7/ICSPDAT — Digital I/O RB7 / ICSP data / ICD data |
Typical Applications
PIC18F2525-I/SP is suitable for 7 applications: Industrial Control Loops, Sensor Interface Boards, Motor Driver Signal Generation, Home Appliance Control Panels, Embedded Development and Education, USB HID Class Peripherals (with external PHY), Retrofit and Legacy Industrial Replacement.
Industrial Control Loops
The PIC18F2525-I/SP is well-suited for industrial control loops where deterministic 8-bit processing is acceptable. Its 40 MHz/10 MIPS throughput handles PID loops with millisecond update rates, while 48 KB Flash supports complex state machines, lookup tables, and Modbus RTU firmware. The 10-bit ADC reads sensor inputs (4-20 mA via external shunt, 0-10 V via divider) and the 10-bit PWM shapes actuator outputs (valves, heaters). nanoWatt Technology power-managed modes also enable battery-backed sensor nodes using sleep/idle at 1-2 uA typical. For 24V industrial environments, add TVS protection, optocouplers, and a 5V LDO upstream - the SPDIP package simplifies prototype build on perfboard before committing to SMT.
Recommended
Sensor Interface Boards
With up to 13 ADC channels and I2C/SPI peripherals (MSSP), the PIC18F2525-I/SP serves as a multi-sensor aggregation node for HVAC, agricultural, or building-automation systems. The EUSART handles RS-485 Modbus links via external transceiver, while the 10-bit DAC (or PWM-augmented filter) drives analog control outputs. Pin-count (25 GPIO) supports interrupt-driven sensor scanning across multiple I2C devices. Selection of /I grade (-40 C to +85 C) ensures operation in unconditioned enclosures. For deployments needing Ethernet or Wi-Fi, the PIC18F2525 can act as the local MCU with a WINC1500 or ATWINC1500 module via SPI, offloading TCP/IP to the wireless chip.
Recommended
Motor Driver Signal Generation
The PIC18F2525-I/SP generates PWM and direction signals for brushed DC, stepper, or BLDC motor drivers. Its 1 ECCP module provides up to 10-bit PWM resolution and configurable dead-band control for half-bridge drivers, while the comparator and ADC inputs handle back-EMF sensing for sensorless BLDC commutation. For 3-phase inverters, complement with the dsPIC33FJ family (e.g., DSPIC33FJ16MC202) which has dedicated motor-control PWM with 1.5 ns resolution. Note that the PIC18F2525 lacks QEI (Quadrature Encoder Interface); for that, choose dsPIC33FJ or PIC18F4431 parts. SPDIP package ease of use makes this part common in motor-control teaching kits and small-volume industrial motor controllers.
Recommended
Home Appliance Control Panels
PIC18F2525-I/SP is a strong fit for white-goods control boards (washing machines, dishwashers, ovens) where 5V supply, generous Flash, and reliable I/O expansion matter. Its 25 GPIO pins drive 7-segment or character LCDs via parallel interface, scan keypads via matrix polling, and read NTC thermistor temperature via ADC. nanoWatt Technology standby modes keep standby consumption under 1 mA - important for energy-star appliances. Industrial temperature grade -40 C to +85 C handles under-hood or laundry-room thermal stress. RoHS compliance and 28-pin SPDIP ease both manufacturing (wave or hand soldering) and field serviceability. For OTA or wireless connectivity, the same firmware baseline can run on PIC18F46J50 with USB or PIC18F26J50.
Recommended
Embedded Development and Education
The PIC18F2525-I/SP remains a teaching staple in universities and embedded-systems courses because the 28-pin SPDIP package fits breadboards without adaptors, the MPLAB X IDE is free, and the XC8 C compiler supports free Standard mode. With 48 KB Flash it handles real-world student projects (RTOS, USB HID demos with external PHY, graphic LCD interfaces) without breaking a sweat. The ICSP 2-wire programming port allows PICkit debuggers to attach without disturbing the application, supporting live register/memory inspection. The vast PIC18 ecosystem of application notes (ANs for ADC, PWM, I2C, USB, RTOS) makes this MCU a low-friction entry point from PIC16 to 32-bit ARM Cortex-M migration paths. Hobbyist boards such as PIC18F Development Kit often base on this exact variant.
Recommended
USB HID Class Peripherals (with external PHY)
Although the PIC18F2525 itself has no native USB, it can act as the application controller in a USB HID peripheral where an external USB-serial bridge chip (MCP2200, FTDI FT232, or CH340) handles USB enumeration. In this topology, the PIC18F2525 focuses on application logic, sensor reads, and HID reports while the bridge chip exposes the COM port to a host PC. For designs requiring native USB, migrate to PIC18F2550 or PIC18F26J50 family members that include a USB SIE; these are drop-in software compatible but add USB-transceiver pins on the same 28-pin SPDIP footprint. This pattern is common in industrial test equipment, label printers, and barcode-scanner accessories.
Recommended
Retrofit and Legacy Industrial Replacement
Many older industrial controllers shipped with PIC16 or PIC18F2520 designs and need firmware refresh; the PIC18F2525-I/SP slots into the same 28-pin SPDIP socket with 50% more Flash (48 KB vs 32 KB) at essentially the same price. Same CPU speed (40 MHz) and same peripheral set means existing firmware ports with no rework, just retargeting the larger memory map. Microchip's MPLAB Code Configurator (MCC) generates peripheral init code automatically, accelerating porting. The /I (industrial -40 C to +85 C) temperature grade and 5V supply tolerance suit legacy backplane environments with 24V/5V rails. This is a popular path for IIoT retrofit projects upgrading plants without full PCB redesign.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F2525-I/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F2620-I/SP | PIC18F2520-I/SP | PIC18F2523-I/SP | PIC18F2420-I/SP |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SPDIP | 28-SPDIP - same | 28-SPDIP - same | 28-SPDIP - same | 28-SPDIP - same |
| Flash Memory | 48 KB | 64 KB | 32 KB | 32 KB | 16 KB |
| SRAM | 3968 B | 3968 B | 3968 B | 1536 B | 768 B |
| EEPROM | 1024 B | 1024 B | 1024 B | 1024 B | 256 B |
| CPU Speed | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS |
| Operating Voltage | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V |
| USB Support | No (external PHY only) | No | No | No | No |
| CAN Support | No | No | No | No | No |
Key Differentiators
- Higher Flash density within the same 28-SPDIP family (vs PIC18F2520-I/SP (32 KB))
- Generous SRAM versus closest same-family variant (vs PIC18F2523-I/SP (1536 B RAM))
- Compatibility with full PIC18 28-SPDIP pin-compatibility family (vs PIC18F2620-I/SP (64 KB Flash))
- Two independent EUSART modules for multi-bus designs (vs PIC18F2420-I/SP (1 EUSART))
Design Notes
Place a 100 nF decoupling capacitor on each VDD pin pair (pin 20 and any AVSS/AVDD pair if using ADC) routed directly to the nearest ground via for clean 5V supply rejection. For battery-backed designs, place a 10 uF bulk tantalum or aluminum-polymer cap and a ferrite bead between battery and VDD. The PIC18F2525's nanoWatt Technology sleep and idle modes drop supply current below 1 uA typically - useful for remote sensor wake-on-interrupt designs. Make sure unused I/O pins are configured as outputs (low) or inputs with internal pull-ups enabled to minimize shoot-through current.
Although the SPDIP package dissipates heat well through leads, sustained 40 MHz operation at full peripheral duty (ECCP PWM, ADC continuous conversion, USB-via-bridge) can reach junction temperatures 30-40 C above ambient in enclosed enclosures. For IP54/IP65 sealed housings, derate ambient by 5-10 C or migrate to surface-mount QFN packages (PIC18F2525-I/ML) which reflow-solder to improved copper thermal planes. Industrial-grade -I SPDIP parts are rated -40 C to +85 C, which assumes forced-air ventilation at the upper limit; verify with thermal-camera validation during qualification.
Route the ICSP clock and data lines (RB6/RB7) with short traces and ground shielding to avoid capacitive coupling from nearby PWM signals which can disrupt programming. Place a 4.7 kohm pull-up on MCLR with the decoupling capacitor close to the pin (not at the controller source) so that voltage transients during MCLR assertion do not retrigger the reset. For 28-pin SPDIP layouts, fan out signals on a 0.1 inch grid compatible with standard perfboard and IC sockets - this eases prototype-to-production transitions and field serviceability. Avoid running high-current motor traces parallel to the analog ADC inputs to prevent digital-noise coupling into sensor reads.
Do not forget the CONFIG bits - the PIC18F2525 defaults to HS oscillator mode with no watchdog; for production firmware, set the watchdog timer enabled, brown-out reset at 4.2V, and code-protection. Configuration mismatches are the #1 cause of 'dead' PIC18 boards. Also note the ADC acquisition time must be calculated from the chosen ADC clock source and the source impedance; using the default minimum acquisition time with high-impedance sensors causes 5-10% accuracy loss. For EUSART baud-rate generation, use the BRG 16-bit mode for low-error rates at standard baud rates - the 8-bit BRG can introduce 2-3% error.
When driving 5V signals from the PIC18F2525 to 3.3V peripherals, use a level translator (e.g., TXB0108) or a simple resistor-divider on each output; do not rely on the 5V PIC18's I/O to be 3.3V tolerant. For SPI runs longer than 100 mm, lower the SPI clock to 1 MHz or less and consider 100 ohm series damping resistors to dampen ringing on rising edges. I2C bus pull-ups should be sized near 2.2 kohm at 400 kHz fast-mode to compensate for bus capacitance; weak pull-ups cause intermittent I2C errors that appear to be firmware bugs.
Compliance Information
RoHS-compliant per Microchip product page; -I grade is industrial -40 C to +85 C and not AEC-Q100 qualified (automotive uses PIC18F2525-I/123 or PIC18F4580-I/P series).