PIC18F2585-E/SO - 8-bit MCU 48KB Flash ECAN 28-SOIC
MPN: PIC18F2585-E/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $8.66 | $8.66 |
| 10 | $7.79 | $77.90 |
| 100 | $6.92 | $692.00 |
| 500 | $6.13 | $3,065.00 |
| 1,000 | $5.3 | $5,300.00 |
PIC18F2585-E/SO Overview
An 8-bit microcontroller (MCU) is a programmable logic device that combines a CPU, memory, and peripherals on a single silicon die; PIC18F parts belong to Microchip's enhanced Harvard-architecture RISC family, which is widely used in automotive, industrial, and consumer embedded systems where deterministic timing and a mature toolchain (MPLAB X IDE, XC8 compiler, MPLAB ICD in-circuit debugger) reduce development risk.
Key features of the PIC18F2585 include an Enhanced ECAN module that supports CAN 2.0B active/passive at 1Mbps, a 10-bit ADC with up to 11 channels, two USART modules with LIN support, two MSSP (SPI/I2C) peripherals, four timer modules, and an internal 31kHz-8MHz oscillator. The CIP (Core Independent Peripherals) such as the 16-bit PWM and the Configurable Logic Cell reduce firmware overhead and enable responsive control without CPU intervention.
The architecture uses a 16-bit instruction word with an 8-bit data path, supports self-programmability in Flash, and provides robust peripherals for safety-critical applications. The Instruction Set Architecture includes Multiply and hardware Divide assist instructions, while code protection and a 1024-byte EEPROM data area protect customer IP and stored parameters.
Typical applications include automotive ECAN nodes (body controllers, instrument clusters, sensor aggregation via CAN bus), industrial automation (Modbus gateways, motor controllers, sensor hubs with CAN connectivity), HVAC controllers, and consumer appliances that need reliable 8-bit performance with CAN communication at low BOM cost.
When designing with this device, pay attention to the CAN bus termination: 120ohm resistors at each trunk end, ESD protection such as NXP PESD1CAN or Bourns CDSOT23-SM712 diodes, and a proper oscillator selection; a 20MHz crystal with the internal PLL is typical for 25MHz operation.
This page synthesizes verified distributor pricing, drop-in package-compatible alternatives, and practical design notes covering CAN bus termination, EMI, and ICSP programming considerations that are not explicitly gathered in the bare manufacturer datasheet.
Drop-in alternatives for PIC18F2585-E/SO — 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 PIC18F2585-E/SO (same form factor and footprint) — differing in ADC, Timers, Package, EEPROM, I/O Pins.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F2585-I/SO
✅ Drop-In✓ In Stock
$4.35 / Unit
View Datasheet →PIC18F4585-E/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F2585T-E/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF2585-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F2580-E/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F2480-E/SO
✅ Drop-In✓ In Stock
$9.42 / Unit
View Datasheet →PIC18F2585-E/SO Maximum Ratings & Electrical Characteristics
| Device Family | PIC18Fxx5/x4x family |
| Program Memory Type | Flash (self-programmable) |
| Program Memory Size | 48 KB (24K x 16) |
| RAM | 3328 bytes |
| EEPROM | 1024 bytes |
| Data Bus Width | 8-bit |
| Instruction Set Architecture | PIC18 Enhanced Harvard RISC |
| Max CPU Clock Frequency | 25 MHz (10 MIPS) |
| Supply Voltage (Vdd) | 4.2 V to 5.5 V |
| I/O Pins | 25 |
| ADC | 10-bit, up to 11 channels |
| CAN Module | Enhanced ECAN 2.0B active/passive |
| Communication Peripherals | 2x USART (LIN), 2x MSSP (SPI/I2C) |
| Timers | 4 (Timer0/1/2/3) |
| Package Type | 28-pin SOIC (SO), 7.5 mm body width |
| Mounting Type | Surface Mount |
| Operating Temperature Range | -40 C to +125 C (Automotive / -E grade) |
| Internal Oscillator | 31 kHz to 8 MHz (factory calibrated) |
| MSL (Moisture Sensitivity Level) | MSL 1 (unlimited floor life) |
| Lead Free / RoHS | Yes - Compliant |
| Programming Interface | ICSP (In-Circuit Serial Programming) via PGC/PGD |
PIC18F2585-E/SO Pin Configuration
| Pin 1 | MCLR/RA5/AN4 — Master Clear (reset) or digital I/O RA5, analog input AN4 |
| Pin 2 | RA0/AN0 — Digital I/O RA0, analog input AN0, CVref output |
| Pin 3 | RA1/AN1 — Digital I/O RA1, analog input AN1 |
| Pin 4 | RA2/AN2 — Digital I/O RA2, analog input AN2, Vref- |
| Pin 5 | RA3/AN3 — Digital I/O RA3, analog input AN3, Vref+ |
| Pin 6 | RA4/AN4/TOCKI — Digital I/O RA4, analog AN4, Timer0 clock input |
| Pin 7 | RA5/AN5/SS/LVDIN — Digital I/O RA5, analog AN5, SPI Slave Select, Low-Voltage Detect input |
| Pin 8 | Vss — Ground |
| Pin 9 | OSC1/CLKIN — External oscillator input or clock input |
| Pin 10 | OSC2/CLKOUT — External oscillator output or 4x Fosc output |
| Pin 11 | RC0/T1CKI — Digital I/O RC0, Timer1 external clock input |
| Pin 12 | RC1/CCP2/T1OSI — Digital I/O RC1, CCP2 PWM out, Timer1 osc input |
| Pin 13 | RC2/CCP1 — Digital I/O RC2, CCP1 PWM output |
| 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/TX/CK — Digital I/O RC6, USART async TX, sync clock |
| Pin 18 | RC7/RX/DT — Digital I/O RC7, USART async RX, sync data |
| Pin 19 | Vss — Ground |
| Pin 20 | Vdd — Positive supply 4.2V-5.5V |
| Pin 21 | RB0/INT/CANTX — Digital I/O RB0, external interrupt, ECAN TX |
| Pin 22 | RB1/INT1/CANRX — Digital I/O RB1, interrupt 1, ECAN RX |
| Pin 23 | RB2/CANTX2 — Digital I/O RB2, ECAN 2nd TX (ECAN mode only) |
| Pin 24 | RB3/CANRX2 — Digital I/O RB3, ECAN 2nd RX (ECAN mode only) |
| Pin 25 | RB4/PGM — Digital I/O RB4, ICSP program mode |
| Pin 26 | RB5/PGC — Digital I/O RB5, ICSP clock |
| Pin 27 | RB6/PGD — Digital I/O RB6, ICSP data |
| Pin 28 | RB7 — Digital I/O RB7 (or general RB7) |
Typical Applications
PIC18F2585-E/SO is suitable for 6 applications: Automotive Body Control Module (CAN/ECAN), Industrial Sensor Hub with CAN Connectivity, OBD-II Vehicle Diagnostic Reader, HVAC Controller and Zone Control, Consumer Appliance Control Boards, Building Automation and Lighting Controller.
Automotive Body Control Module (CAN/ECAN)
The PIC18F2585-E/SO's integrated Enhanced ECAN 2.0B peripheral supports 1Mbps automotive bus communication, while the 48KB Flash and 3328B RAM accommodate the CANopen or J1939 protocol stack alongside application logic. Deploying this device in body control modules - controlling lighting, mirror adjustment, and door zones - gives engineers an AEC-Q-grade 8-bit MCU in a compact 28-SOIC footprint, simplifying PCB layout versus dual-chip CAN solutions. The 25 digital I/O pins map cleanly to relay drivers, switch inputs, and LIN-served smart actuators. The -40C to +125C automotive temperature rating, combined with code protection and self-programming Flash, supports field updates and module security.
Recommended
Industrial Sensor Hub with CAN Connectivity
The PIC18F2585-E/SO is well-suited for industrial sensor aggregation nodes because it combines a 10-bit ADC (up to 11 channels) with the ECAN peripheral, allowing the MCU to sample analog or digital sensors and broadcast them on a CAN bus to a master PLC. The 25MHz/10MIPS throughput handles periodic 1kHz sampling with CAN transmit jitter below 100us, while the 3328B RAM accommodates 32 CAN message slots for transmit/receive queues. The automotive-grade temperature rating ensures reliable deployment in factory automation cells where ambient temperatures can exceed 85C. The internal 8MHz oscillator (factory-calibrated to +/- 1%) eliminates an external crystal for cost-sensitive nodes.
Recommended
OBD-II Vehicle Diagnostic Reader
The PIC18F2585-E/SO with built-in ECAN module forms an OBD-II reader core that connects directly to a vehicle CAN bus to retrieve diagnostic trouble codes (DTCs), real-time sensor data, and emissions information. The 48KB Flash holds the OBD-II PIDs library and SAE J1979 protocol implementation, while 3328B of RAM buffers UDS responses. The -40C to +125C operating range tolerates cabin and under-dash environments, and the 25 digital I/O pins interface a Bluetooth module, USB-UART bridge, or LCD display for handheld scan tools. The internal 31kHz-8MHz oscillator supports a low-power idle state when the ignition is off, allowing battery-backed parking timers.
Recommended
HVAC Controller and Zone Control
The PIC18F2585-E/SO operates in HVAC equipment as a zone controller: the ECAN module joins a network of thermostats sharing temperature and load data, while timers and the 10-bit ADC read thermistor sensors and modulate damper outputs via PWM. The wide 4.2V to 5.5V supply range accommodates 24VAC transformer-derived supplies with simple half-wave rectification and bulk capacitor - matching typical furnace control board rails. Dual USART enables LIN communications with damper actuators that lack CAN stack support; ample Flash stores scheduling, multi-stage cooling, and historical logging; code protection prevents HVAC OEMs' firmware IP disclosure. The -40C to +125C ambient rating covers attic air-handler locations.
Recommended
Consumer Appliance Control Boards
The PIC18F2585-E/SO is a long-lived MCU choice for consumer appliances such as washing machines, dishwashers, and refrigerators where deterministic CAN bus communication, modest memory, and 5V tolerance simplify analog interface circuits. The 25 I/O pins drive Triac optocouplers for AC loads, sense door switches, and read water level or motor speed sensors via the ADC; the ECAN module allows multiple appliances to participate in a smart-home energy-management network. The mature PIC18 architecture, MPLAB X IDE support, and a large library of legacy code reduce time-to-market versus migrating to a 32-bit MCU. Tape-and-reel SOIC packaging supports high-throughput SMT assembly lines.
Recommended
Building Automation and Lighting Controller
The PIC18F2585-E/SO serves as a node controller for DALI-to-CAN gateway or sub-15A lighting circuits in commercial buildings where ECAN backbone links rooms to a central BMS. The 48KB Flash accommodates DALI commissioning logic, daylighting algorithms, and CANopen firmware stacks, and the 25 I/O pins read occupancy sensors, photocells, and rotary dimmers. The MCU's automotive temperature grade supports rooftop mechanical rooms and unconditioned equipment closets, whereas standard commercial grade parts would de-rate badly. With dual USART/MSSP peripherals, the MCU bridges DALI (via external DALI transceiver) to CAN simultaneously without a co-MCU.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F2585-E/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F2585-I/SO | PIC18F4585-E/SP | PIC18LF2585-I/SO | PIC18F2580-E/SO | PIC18F2480-E/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SOIC (SO) | 28-SOIC (SO) | 28-SOIC equivalent family footprint (SP=28-SDIP) | 28-SOIC (SO) | 28-SOIC (SO) | 28-SOIC (SO) |
| Flash Memory | 48 KB | 48 KB | 48 KB | 48 KB | 16 KB | 16 KB |
| RAM | 3328 bytes | 3328 bytes | 3328 bytes | 3328 bytes | 768 bytes | 768 bytes |
| ECAN Module | Yes (Enhanced, 1 Mbps) | Yes | Yes | Yes | No | Yes (legacy CAN 2.0B at 1 Mbps) |
| Supply Voltage | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 2.0 V to 5.5 V (wide range) | 4.2 V to 5.5 V | 4.2 V to 5.5 V |
| Operating Temperature | -40C to +125C (Automotive / -E) | -40C to +85C (Industrial) | -40C to +125C | -40C to +85C | -40C to +125C | -40C to +125C |
| Max Clock Frequency | 25 MHz (10 MIPS) | 25 MHz | 25 MHz | 25 MHz | 25 MHz | 25 MHz |
| Unit Price (qty-1000) | $5.30 | ~$4.50 (lower non-automotive grade) | ~$5.40 (SP package may differ) | ~$5.20 | ~$4.30 | ~$4.65 |
Key Differentiators
- On-chip Enhanced ECAN without external controller saves BOM cost (vs PIC18F2580-E/SO (no CAN), or PIC18F4550 (USB but no CAN in 28 SOIC))
- Wider operating temperature (-40C to +125C automotive) qualifies for under-hood and harsh-environment deployment (vs PIC18F2585-I/SO (-40C to +85C industrial only))
- Wide-voltage 'LF' variant available for battery-backed or 3.3V mixed-voltage designs (vs PIC18F2580-E/SO (4.2V-5.5V only))
Design Notes
CAN bus networks require 120 ohm termination resistors at each end of the trunk to suppress reflections. A common mistake is placing termination only at the master node - this causes intermittent bus errors during topology changes. For high-reliability automotive networks, use split termination (two 60 ohm resistors with a 10nF capacitor to ground) to filter common-mode noise; pair with an ESD protection diode such as NXP PESD1CAN or Bourns CDSOT23-SM712 to absorb 8kV HBM events on the bus pins.
Apply proper decoupling on the Vdd pin (28) and Vss pins (8, 19): use a 100nF X7R ceramic capacitor within 5mm of each Vdd pin, plus a bulk 1uF to 10uF tantalum or aluminum-polymer capacitor. For CAN nodes subject to load-dump transients (ISO 7637-2 pulse 5a up to 87V), add a TVS such as SMAJ24A or SM24T1G to clamp the supply rail before the MCU's 5.5V Vdd max is exceeded. The PIC18F2585's internal brown-out reset (BOR) and Power-on Reset (POR) require Vdd rise time below a threshold; slow Vdd ramps may stall in reset.
Route the CAN differential pair (CANTX/CANRX from MCP2551 or similar) at 100 ohm differential impedance with length matching within 100 mils. Keep the CAN trace at least 3mm away from clock and PWM switching signals to minimize crosstalk; place the bus termination resistor within 25mm of each transceiver. Provide a clear return-current path beneath the CAN pair - a continuous ground plane is essential. Use the smallest achievable loop area on the ECAN RX/TX traces to reduce EMI emissions and improve tolerance to injected noise.
ICSP programming requires careful board design: the PGC (pin 26) and PGD (pin 27) lines must not be loaded with capacitance greater than 50pF to maintain signal integrity during programming. If your application places LEDs or RC filters on these pins, provide a programming test point or 0-ohm jumper to isolate them during code development. Keep the ICSP connector away from high-current switching traces; use a 6-pin header (MCLR/Vpp, Vdd, GND, PGD, PGC, AUX) per Microchip's ICD 5 standard for fast prototyping.
Compliance Information
Microchip parts with the -E extended temperature grade are AEC-Q100 capable but specific compliance depends on lot; consult Microchip product change notifications for definitive qualification status. RoHS compliance per Microchip product page.