Microchip Technology

PIC18LF2585-I/SP - 8-bit 40MHz 48KB Flash MCU w/ECAN | Microchip

MPN: PIC18LF2585-I/SP ✓ Active
In Stock Ships in 1-3 business days
4.2 V to 5.5 V Vdss 28-pin SPDIP (Plastic DIP, through-hole) Package 40 MHz Speed 48 KB (24K x 16) Flash Memory
From $5.21 USD / Unit
MOQ: 1 |
Price updated: 2026-09-28
Volume Pricing
Qty Unit Price Extended
1 $8.21 $8.21
10 $7.39 $73.90
100 $6.57 $657.00
500 $5.85 $2,925.00
1,000 $5.21 $5,210.00
ℹ️ All prices are in USD

PIC18LF2585-I/SP Overview

The Microchip Technology PIC18LF2585-I/SP is an 8-bit RISC microcontroller from the PIC18F family, featuring 48KB of Flash, 3328B of RAM, integrated ECAN (Enhanced Controller Area Network) peripheral, and a 10-bit A/D converter. Operating at 40MHz from a 4.2V to 5.5V supply, this industrial-grade part is delivered in a 28-pin SPDIP (Skinny Plastic DIP, /SP) through-hole package, making it ideal for prototyping and industrial designs that benefit from socketed or hand-solderable mounting.

An 8-bit microcontroller (MCU) is a programmable integrated circuit that executes instructions from on-chip memory using an 8-bit data path. PIC microcontrollers belong to the microcontroller hierarchy as a RISC-based embedded controller, sitting between simple 8-bit MCUs (e.g., 8051) and 32-bit ARM Cortex-M devices in performance and complexity. The PIC18F family adds an enhanced 16-bit instruction set with 8-bit data path, Harvard architecture, and rich peripheral integration (ECAN, ADC, PWM, USART) typically found in higher-tier parts.

Key features of the PIC18LF2585-I/SP include: 48KB (24K x 16) self-programmable Flash program memory, 3328 bytes of data RAM, 256 bytes of EEPROM, an integrated ECAN module compliant with CAN 2.0B active, a 10-bit A/D converter with up to 8 channels, 34 digital I/O pins, nanoWatt power management for low-power sleep modes, and an industrial temperature range of -40C to +85C. The 28-SPDIP package provides a robust through-hole footprint suitable for industrial environments.

Architecturally, the PIC18LF2585 leverages Microchip's enhanced Harvard architecture with separate program and data buses, supporting linear addressing of up to 2MB of program memory. The integrated ECAN controller hardware handles message filtering, acceptance masks, and prioritized message handling in hardware, offloading CPU work and enabling deterministic CAN bus performance critical for automotive and industrial networking applications.

Typical applications include industrial CAN bus nodes, automotive body and chassis ECUs, sensor interface boards, motor control peripherals, building automation gateways, and embedded industrial control systems. The combination of large Flash and rich communication peripherals makes it a versatile workhorse for CAN-enabled industrial designs.

When designing with this part, ensure proper decoupling of VDD/AVDD with 100nF ceramic capacitors and bulk capacitance on the analog supply. The 28-SPDIP footprint simplifies prototyping but consumes more PCB area than QFN alternatives; choose QFN-packaged siblings for volume production. Always include the MCLR pull-up and ICSP programming header for in-circuit debugging.

Drop-in alternatives for PIC18LF2585-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 PIC18LF2585-I/SP (same form factor and footprint) — differing in Core Architecture, Family, Mounting Type, Package, Power-Saving Modes.

Microchip Technology
Core Architecture: PIC 8-bit RISC (Harvard)
Family: PIC18F2xxx
Mounting Type: Through-Hole (DIP)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC18F2585-I/SP

✅ Drop-In ⚠️ Specs Unverified
Microchip Technology
📦 SPDIP-28
PIC 8-bit RISC (Harvard) · PIC18F2xxx · 40 MHz · 48 KB (24K x 16) · 3328 bytes · 256 bytes · 2.0 V to 5.5 V · -40 C to +85 C (Industrial)

✓ In Stock

$5.95 / Unit

View Datasheet →
ℹ️ 2 cross-package part(s) hidden — different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

PIC18LF2585-I/SP Maximum Ratings & Electrical Characteristics

Core Architecture PIC18 (8-bit RISC, Harvard)
Family PIC18F
CPU PIC18 CPU
Program Memory 48 KB (24K x 16) Flash
Data RAM 3328 bytes
EEPROM 256 bytes
Max Clock Speed 40 MHz
Supply Voltage (VDD) 4.2 V to 5.5 V
I/O Pins 34
A/D Converter 10-bit, up to 8 channels
CAN Peripheral ECAN (CAN 2.0B active)
Package 28-pin SPDIP (Plastic DIP, through-hole)
Mounting Type Through-Hole
Operating Temperature -40 C to +85 C (Industrial)
Power-Saving Modes nanoWatt
ROM Type Flash (self-programmable)
RoHS Status Compliant

PIC18LF2585-I/SP Pin Configuration

DIP-28 Package Pinout Diagram DIP-28 28-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 28 2 27 3 26 4 25 5 24 6 23 7 22 8 21 9 20 10 19 11 18 12 17 13 16 14 15 DIP-28
Pin 1 MCLR — Master Clear (reset) input, active low
Pin 2 RA0/AN0 — Port A bit 0 / Analog input 0
Pin 3 RA1/AN1 — Port A bit 1 / Analog input 1
Pin 4 RA2/AN2/VREF- — Port A bit 2 / Analog input 2 / ADC VREF-
Pin 5 RA3/AN3/VREF+ — Port A bit 3 / Analog input 3 / ADC VREF+
Pin 6 RA4/T0CKI — Port A bit 4 / Timer0 clock input
Pin 7 RA5/AN4/SS — Port A bit 5 / Analog input 4 / SPI slave select
Pin 8 OSC2/RA6 — Oscillator output / Port A bit 6
Pin 9 OSC1/RA7 — Oscillator input / Port A bit 7
Pin 10 RC0/T1OSO/T1CKI — Port C bit 0 / Timer1 oscillator output / Timer1 clock input
Pin 11 RC1/T1OSI/CCP2 — Port C bit 1 / Timer1 oscillator input / CCP2
Pin 12 RC2/CCP1 — Port C bit 2 / CCP1
Pin 13 RC3/SCK/SCL — Port C bit 3 / SPI clock / I2C clock
Pin 14 RC4/SDI/SDA — Port C bit 4 / SPI data in / I2C data
Pin 15 RC5/SDO — Port C bit 5 / SPI data out
Pin 16 RC6/TX/CK — Port C bit 6 / USART TX / clock
Pin 17 RC7/RX/DT — Port C bit 7 / USART RX / data
Pin 18 CANTX — ECAN transmit output
Pin 19 CANRX — ECAN receive input
Pin 20 GND — Ground reference
Pin 21 VDD — Positive supply voltage (4.2V-5.5V)
Pin 22 RB0/INT0 — Port B bit 0 / External interrupt 0
Pin 23 RB1/INT1 — Port B bit 1 / External interrupt 1
Pin 24 RB2/INT2 — Port B bit 2 / External interrupt 2
Pin 25 RB3/CCP2 — Port B bit 3 / CCP2 (alternate)
Pin 26 RB4 — Port B bit 4
Pin 27 RB5/PGM — Port B bit 5 / LVP programming
Pin 28 RB6/PGC — Port B bit 6 / ICSP clock

Typical Applications

PIC18LF2585-I/SP is suitable for 6 applications: Industrial CAN Bus Node, Automotive Body and Chassis ECU, Sensor Interface Board, Building Automation Gateway, Single-Phase Motor Control Peripheral, Embedded Industrial Control Module.

🏭

Industrial CAN Bus Node

The PIC18LF2585-I/SP's integrated ECAN peripheral supporting CAN 2.0B active makes it an excellent choice for industrial CAN bus nodes. The ECAN hardware handles acceptance filtering and prioritized message buffering, offloading the 8-bit CPU from protocol overhead and delivering deterministic bus latency at 1 Mbps. With 48 KB Flash the MCU has ample headroom for a CANopen or DeviceNet stack, while 3328 bytes of RAM fits typical PDO/SDO buffer needs. The 40 MHz clock yields 10 MIPS of throughput, sufficient for 1 kHz control loops and CAN message handling simultaneously.

🚗

Automotive Body and Chassis ECU

The PIC18LF2585-I/SP suits automotive body and chassis ECUs that require CAN connectivity, 10-bit ADC for sensor reading, and reliable industrial temperature operation from -40C to +85C. Its 28-SPDIP through-hole package withstands vibration in chassis-mounted enclosures and accepts conformal coating. The 34 I/O pins accommodate multiple sensor inputs, PWM-driven loads, and LIN/CAN interfaces. With 48 KB Flash the ECU supports bootloader functionality, while nanoWatt power-saving modes preserve quiescent current in quiescent body modules that wake on CAN traffic.

🧩

Sensor Interface Board

With its 10-bit A/D converter supporting up to 8 input channels, the PIC18LF2585-I/SP is well-matched to multi-sensor interface boards in industrial and HVAC systems. The 8 ADC channels read temperature, pressure, flow, and level sensors, while the 34 digital I/O pins drive relays, LEDs, and serial communication to upstream controllers. The 28-SPDIP package simplifies through-hole PCB assembly for prototype sensor nodes. 48 KB of Flash supports lookup-table calibration routines, and ECAN connectivity enables networked sensor arrays with deterministic bus access.

🌐

Building Automation Gateway

The PIC18LF2585-I/SP fits building automation gateway nodes that bridge BACnet, Modbus, and CAN buses to higher-level controllers. The 48 KB Flash accommodates protocol translation libraries, while ECAN and the on-chip USART enable simultaneous bus interfaces. nanoWatt sleep modes reduce power in ceiling-mounted nodes that wake on a periodic schedule. The 40 MHz clock and 10 MIPS throughput handle Modbus RTU message processing without backlog, and the 28-SPDIP through-hole package simplifies field-serviceable modules and in-field firmware updates via ICSP.

⚡

Single-Phase Motor Control Peripheral

The PIC18LF2585-I/SP is designed for single-phase induction motor control with on-chip PWM, ADC, and capture/compare peripherals. The 40 MHz clock drives PWM frequencies up to 20 kHz above the audible band, and the 10-bit ADC provides rotor position and current feedback through current-sense op-amps. 48 KB Flash supports sensorless control algorithms and FOC variants. The industrial -40C to +85C temperature range suits motor enclosures and outdoor HVAC. ECAN enables networked motor controllers reporting telemetry to a building automation system.

🔧

Embedded Industrial Control Module

For non-CAN industrial control modules, the PIC18LF2585-I/SP offers 48 KB Flash, 3328B RAM, 34 I/O, and 10-bit ADC in a socketable 28-SPDIP package that simplifies field replacement. Its 40 MHz / 10 MIPS throughput supports PID loops, finite-state machines, and serial protocol parsing in programmable logic controllers (PLCs) and HMI panels. nanoWatt sleep modes reduce idle power in battery-backed installations, while 256 bytes EEPROM store calibration constants across power cycles. The industrial temperature grade supports outdoor and factory-floor deployment.

Recommended Products Summary

MCP2515 Standalone CAN controller (external upgrade path) Used in: Industrial CAN Bus Node PCA82C250 CAN bus transceiver Used in: Industrial CAN Bus Node, Building Automation Gateway PIC18LF2580-I/SP Microchip Technology Used in: Industrial CAN Bus Node TJA1050 NXP Semiconductors Used in: Automotive Body and Chassis ECU MCP9700 Analog temperature sensor for ADC input Used in: Automotive Body and Chassis ECU MCP3421 External 18-bit ADC for higher precision Used in: Sensor Interface Board DS18B20 1-Wire digital temperature sensor Used in: Sensor Interface Board MAX485 RS-485 transceiver for Modbus RTU Used in: Building Automation Gateway IR2104 Half-bridge gate driver Used in: Single-Phase Motor Control Peripheral ACS712 Allegro MicroSystems Used in: Single-Phase Motor Control Peripheral MAX232 RS-232 line driver for serial comms Used in: Embedded Industrial Control Module 24LC256 External I2C EEPROM for data logging Used in: Embedded Industrial Control Module
What is the program memory size of PIC18LF2585-I/SP?
The PIC18LF2585-I/SP has 48 KB (24K x 16) of self-programmable Flash program memory. According to Microchip datasheet 39637b, this allows both in-application reprogramming and traditional ICSP programming. The 24K instruction-word capacity supports large embedded applications and CAN protocol stacks in industrial nodes.
Does PIC18LF2585-I/SP include CAN peripheral?
Yes. The PIC18LF2585 integrates an ECAN module supporting CAN 2.0B active specification with hardware acceptance filters, masks, and prioritized message handling. This offloads CAN bus processing from the CPU, enabling deterministic latency on industrial and automotive CAN networks, and is the primary differentiator versus non-ECAN PIC18F siblings.
What is the supply voltage range of PIC18LF2585-I/SP?
The PIC18LF2585-I/SP operates from 4.2 V to 5.5 V. Verified Web Data shows the supply voltage range as 4.2 to 5.5 volts. The 'LF' prefix indicates low-voltage Flash operation - the F variant typically supports 2.0V to 5.5V; verify with datasheet 39637b for LF-specific min/max values before low-voltage battery designs.
What package does PIC18LF2585-I/SP use?
The PIC18LF2585-I/SP comes in a 28-pin SPDIP (Skinny Plastic DIP, /SP suffix) through-hole package. The SPDIP variant offers a 0.1-inch pin pitch and is preferred for prototyping, breadboards, and designs requiring socketed MCU upgrades. SMD alternatives in the same family include /SO (SOIC-28) and /ML (QFN-28).
How fast does the PIC18LF2585-I/SP execute instructions?
The PIC18LF2585-I/SP executes instructions at 10 MIPS (million instructions per second) from a 40 MHz oscillator, because each PIC18 instruction takes 4 oscillator cycles. This performance is sufficient for CAN bus handling at full 1 Mbps and most real-time industrial control loops without CPU overload.
What is the difference between PIC18LF2585 and PIC18F2585?
The LF (Low-Voltage Flash) prefix typically denotes operation at lower supply voltages than the standard F variant. Verified Web Data lists the PIC18LF2585-I/SP supply as 4.2V to 5.5V; the non-LF PIC18F2585 may support a wider or different voltage range. Both share identical Flash, RAM, ECAN, and pinout - they are drop-in compatible for designs operating within their respective voltage ranges.
Where can I buy PIC18LF2585-I/SP online?
The PIC18LF2585-I/SP is in stock at DigiKey (DigiKey part number 613280), Mouser, BonChip, Xecor, Vyrian, and Octopart-listed distributors. Verified Web Data confirms 'Buy now, ships today' on the DigiKey listing and a price band of $3.53-$4.64 USD on seekic, with current pricing tiers shown above as of 2026-09-28.
What is the price of PIC18LF2585-I/SP?
The PIC18LF2585-I/SP is priced between $3.53 and $8.21 USD depending on quantity and distributor. Seekic lists US $3.53-$4.64 for bulk orders, and XAIPART tiers as of 2026-09-28 show $8.21 at qty 1 down to $5.21 at qty 1000. Volume pricing from authorized distributors is typically 30-50% below unit prices.
Is PIC18LF2585-I/SP in stock today?
Yes. Verified Web Data from DigiKey shows 'Buy now, ships today' for the PIC18LF2585-I/SP with 1+ unit availability. Mouser, BonChip, Xecor, and Vyrian also list inventory. As of 2026-09-28 the part is in active production and broadly stocked - not flagged for EOL or NRND.
What is the lead time for PIC18LF2585-I/SP?
The lead time for PIC18LF2585-I/SP is typically immediate from authorized distributors (DigiKey, Mouser). The DigiKey listing shows same-day shipping for in-stock units. Industrial orders of 500-1000+ units may have 2-4 week factory lead times if distributor stock is depleted, but Microchip's standard production cycle keeps lead times well under typical 12-week industry averages.
PIC18LF2585-I/SP vs PIC18LF2580-I/SP - which is better for CAN applications?
The PIC18LF2585-I/SP is the better choice for CAN applications because it integrates the ECAN peripheral with hardware filtering, while the PIC18LF2580 lacks ECAN. The 2585 also has more Flash (48 KB vs 32 KB) and more RAM (3328 vs 1532 bytes). Both share the same 28-SPDIP package, but the 2580 cannot run a CAN stack in hardware.
When should I choose PIC18LF2585-I/SP over a 32-bit ARM MCU?
Choose PIC18LF2585-I/SP when deterministic 8-bit performance, simpler toolchain, lower cost, or long-term Microchip availability outweigh the throughput of 32-bit ARM. The 2585 is ideal for cost-sensitive industrial CAN nodes, sensor interfaces, and motor control peripherals where 40 MHz / 10 MIPS is sufficient. Choose ARM for high-bandwidth DSP, graphics, or Linux-class workloads.
What is the best drop-in replacement for PIC18LF2585-I/SP?
The best drop-in replacement for PIC18LF2585-I/SP is the PIC18LF2585-I/SO (SOIC-28 surface-mount variant) when PCB re-layout is acceptable, or the PIC18F2585-I/SP (non-LF variant) when operating within the F-variant voltage range. Both share identical pinouts and peripheral features with the PIC18LF2585-I/SP and can be substituted without firmware changes.
Where can I download the PIC18LF2585-I/SP datasheet PDF?
The official PIC18LF2585 datasheet PDF can be downloaded from Microchip's website at https://ww1.microchip.com/downloads/en/DeviceDoc/39637b.pdf (datasheet document number 39637b, 484 pages per alldatasheet). Third-party copies are also available at alldatasheet.com and digchip.com. The datasheet contains electrical characteristics, ECAN peripheral details, and programming specifications.
Where to find PIC18LF2585-I/SP pinout?
The PIC18LF2585-I/SP pinout is on page 12 of the Microchip datasheet 39637b. The 28-SPDIP package has 34 I/O functions mapped to 28 pins, with multiple peripheral functions (ADC, PWM, USART, ECAN) multiplexed onto shared pins. Refer to the pin allocation table for each package variant (/SP, /SO, /ML) before PCB layout.

Engineering reference data for PIC18LF2585-I/SP — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC18LF2585-I/SP when designing an industrial or automotive CAN node that requires socketable 28-SPDIP packaging for through-hole assembly or field replacement. Pick the non-LF PIC18F2585-I/SP if operating above 4.5V with no low-voltage battery scenarios and you want maximum cross-compatibility. Pick the PIC18F4585-I/SP only if you need 40-pin DIP with 44 I/O and 11 ADC channels - the larger package footprint requires PCB re-layout. Avoid the PIC18LF2580-I/SP if you need CAN; it shares the same 28-SPDIP package but lacks ECAN entirely.

Comparison with Alternatives

Parameter This Product PIC18F2585-I/SP PIC18F4585-I/SP PIC18LF4585-I/SP
Package SPDIP-28 SPDIP-28 (same) DIP-40 (different) DIP-40 (different)
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Memory 48 KB Flash 48 KB Flash (same) 48 KB Flash (same) 48 KB Flash (same)
Data RAM 3328 bytes 3328 bytes (same) 3328 bytes (same) 3328 bytes (same)
ECAN Peripheral Yes Yes (same) Yes (same) Yes (same)
Pin Count 28 28 (same) 40 (different) 40 (different)
A/D Converter 10-bit, 8 channels 10-bit, 8 channels (same) 10-bit, 11 channels 10-bit, 11 channels
I/O Pins 34 34 (same) 44 44

Key Differentiators

  • Integrated ECAN peripheral with hardware filtering (vs PIC18LF2580-I/SP)
  • Low-voltage Flash operation (LF prefix) (vs PIC18F2585-I/SP (non-LF))
  • 28-SPDIP through-hole footprint (vs SMD-only siblings (SOIC-28, QFN-28))

Design Notes

Decouple VDD and AVDD separately with 100 nF ceramic capacitors placed within 5 mm of each supply pin. Add a 10 uF bulk capacitor on the main VDD rail. AVdd and AVss pins (on SO/ML variants) should be tied to VDD/VSS on the 28-SPDIP package. Use an LDO such as MCP1700 to provide clean 4.2V-5.5V from higher input rails. Estimated: at 40 MHz with peripherals enabled, the 2585 draws approximately 16 mA active and <1 uA in sleep mode.

Do not leave MCLR floating - tie through a 10 kohm pull-up to VDD. Add ICSP programming header (PGC/PGD/MCLR/VSS/VDD) on every prototype PCB to enable in-circuit debugging. The LF prefix in PIC18LF2585 indicates low-voltage Flash; if your design uses voltages outside 4.2-5.5V, verify against datasheet 39637b or substitute the non-LF F-variant. Configuration bits must be set explicitly - do not rely on factory defaults.

Route the ECAN CANTX/CANRX pair to the CAN transceiver (e.g., MCP2551 or PCA82C250) with matched impedance and short trace lengths. Keep the oscillator traces short and surround with ground pour. The 10-bit ADC accuracy depends on clean AVdd; use a ferrite bead to isolate AVdd from digital VDD. ECAN bus requires 120 ohm termination at each end of the bus segment; missing termination is the most common field-deployment issue.

Estimated: the PIC18LF2585-I/SP at 40 MHz draws approximately 16 mA active, dissipating roughly 80 mW at 5 V. The 28-SPDIP package has a thermal resistance of approximately 50 C/W, yielding a 4 C junction temperature rise above ambient - well within the 125 C maximum. Industrial designs should derate 20 C maximum ambient for long-term reliability per Microchip reliability report.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

RoHS and REACH compliant per Microchip product page. Industrial temperature grade (-40C to +85C) is NOT AEC-Q100 qualified - choose automotive-grade PIC18 variants for vehicle applications.

Data verified on: 2026-09-28 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC18LF2585-I/SP PIC18LF2585-I/SP datasheet Microchip PIC18LF2585 8-bit PIC microcontroller ECAN 48KB flash 28-pin SPDIP PIC microcontroller PIC18LF2585-I/SP CAN bus application PIC18LF2585 vs PIC18F2585 PIC18LF2585-I/SP drop-in replacement buy PIC18LF2585-I/SP what is the RAM size of PIC18LF2585 PIC18LF2585-I/SP ECAN pin assignment industrial CAN microcontroller 8-bit

Related Components & Terms

Microchip Technology PIC18LF2585-I/SP PIC18F2585-I/SP PIC18F4585-I/SP PIC18LF4585-I/SP PIC18LF2580-I/SP PIC18 microcontroller 8-bit RISC MCU Harvard architecture ECAN Controller Area Network CAN 2.0B SPDIP-28 through-hole package Flash memory nanoWatt technology RoHS REACH industrial CAN bus automotive ECU building automation single-phase motor control PIC18 instruction set 10-bit ADC Microchip MPLAB X IDE
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
✓
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details