Microchip Technology

PIC18F4585-E/P - 8-bit MCU 48KB Flash ECAN 40-PDIP | Microchip

MPN: PIC18F4585-E/P ✓ Active
In Stock Ships in 1-3 business days
4.2 V to 5.5 V Vdss 40-pin PDIP (P) Package 40 MHz (10 MIPS) Speed 48 KB (24K x 16 words) Memory
From $5.07 USD / Unit
MOQ: 1 |
Price updated: 2026-09-27
Volume Pricing
Qty Unit Price Extended
1 $7.92 $7.92
10 $7.13 $71.30
100 $6.34 $634.00
500 $5.71 $2,855.00
1,000 $5.07 $5,070.00
ℹ️ All prices are in USD

PIC18F4585-E/P Overview

The Microchip Technology PIC18F4585-E/P is an 8-bit enhanced flash microcontroller with integrated ECAN (Enhanced Controller Area Network) peripheral, packaged in a 40-pin PDIP through-hole form factor. The device operates at up to 40 MHz clock speed, delivers 48 KB of program Flash memory (24K x 16 words), 3328 bytes of RAM, and 1024 bytes of data EEPROM, making it a strong fit for CAN-connected embedded designs.

A PIC18 microcontroller is an 8-bit RISC (Reduced Instruction Set Computer) MCU family built around Microchip's Harvard architecture. PIC18 devices sit in the hierarchy: microcontroller -> 8-bit MCU -> embedded controller -> semiconductor. They are widely used in industrial, automotive, and consumer applications that need deterministic performance, low power, and mature development tooling (MPLAB X IDE, XC8 compiler, MPLAB ICD debug probes).

Key features of the PIC18F4585-E/P include 36 general-purpose digital I/O pins, an enhanced CAN bus module (ECAN), a 10-bit ADC with up to 13 input channels, multiple timer modules (Timer0/1/2/3), two USART modules, an MSSP (Master Synchronous Serial Port) for SPI/I2C, nanoWatt power management for low-power operation, and an extended operating temperature range of -40C to +125C thanks to its 'E' (Extended) temperature grade designation. The 40-pin PDIP package supports easy prototyping and through-hole assembly.

Technically, the PIC18F4585 implements a modified Harvard architecture with a 16-bit instruction word and 8-bit data path, executes most instructions in 4 clock cycles, and provides hardware multiply support. Its ECAN peripheral supports CAN 2.0B active with multiple acceptance filters and masks, and the nanoWatt technology reduces quiescent current to microampere levels in sleep modes.

Typical applications include industrial CAN-bus sensor nodes, automotive body and chassis ECUs, building automation gateways, HVAC controllers, and any embedded design that requires deterministic 8-bit processing with on-chip CAN connectivity. Pairing the ECAN module with general-purpose I/O and ADC channels allows a single IC to handle both communication and analog acquisition.

When designing with this part, ensure VDDIFW stays within 4.2V-5.5V and provide proper decoupling near each VDD pin. The 'E' (Extended) temperature grade makes the part suitable for industrial and automotive under-hood environments, but designers should still validate thermal margins in enclosed housings.

This page synthesizes distributor pricing, drop-in PIC18F4585 alternatives, and practical design notes not found in the manufacturer datasheet, including how the part compares against PIC18F4680 and PIC18F458 in the same 40-PDIP pinout.

Drop-in alternatives for PIC18F4585-E/P — 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 PIC18F4585-E/P (same form factor and footprint) — differing in Mounting Type, Operating Temperature, Package, ADC, Program Memory (Flash).

Microchip Technology
Mounting Type: Through-Hole (DIP-40)
Operating Temperature: -40 °C to +125 °C (Extended "-E")
Package: 40-pin PDIP (0.600"/15.24 mm)
Microchip Technology
Mounting Type: Surface Mount
Operating Temperature: -40 C to +85 C (Industrial, -I)
Package: TQFP-44 (PT), 10 x 10 mm
Microchip Technology
Mounting Type: Through-Hole (PDIP)
Operating Temperature: -40C to +150C (H grade)
Package: 40-pin PDIP (DIP-40, 0.600"/15.24 mm)
Microchip Technology
Mounting Type: Through-Hole (THT)
Operating Temperature: -40 C to +125 C (Extended, "-E")
Package: PDIP-40 (0.600", 15.24 mm)

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

PIC18F4585-I/P

✅ Drop-In
📦 40-PDIP
Industrial -40C to +85C temperature grade (vs Extended -40C to +125C); identical 48KB Flash, 3328B RAM, ECAN, 40-PDIP pinout

📋 Reference alternative (not in catalog)

PIC18F4680-E/P

✅ Drop-In
📦 40-PDIP
64KB Flash upgrade (vs 48KB +33%), 3328B RAM identical, same ECAN peripheral and 40-PDIP pinout

📋 Reference alternative (not in catalog)

PIC18F458-E/P

✅ Drop-In
📦 40-PDIP
32KB Flash predecessor (vs 48KB -33%), 1536B RAM (vs 3328 -54%), same ECAN and 40-PDIP pinout

📋 Reference alternative (not in catalog)

PIC18F448-E/P

✅ Drop-In
Microchip Technology
📦 40-PDIP
PIC (8-bit, Harvard) · PIC18F · 40 MHz max · 16 KB (8K x 16) Flash (Enhanced) · 768 bytes · 256 bytes · 4.2 V to 5.5 V · -40 °C to +125 °C (Extended "-E")

✓ In Stock

$5.8 / Unit

View Datasheet →

PIC18F4525-I/PT

✅ Drop-In
Microchip Technology
📦 40-PDIP
PIC18 8-bit RISC · 48 KB · 3,968 bytes · 256 bytes · 40 MHz (10 MIPS) · 4.2 V to 5.5 V · 36 · 10-bit, up to 13 channels

✓ In Stock

$4.18 / Unit

View Datasheet →

PIC18F4585-E/P Maximum Ratings & Electrical Characteristics

Core Architecture PIC 8-bit RISC (Harvard)
Program Memory (Flash) 48 KB (24K x 16 words)
Data RAM 3328 bytes
Data EEPROM 1024 bytes
Maximum CPU Clock 40 MHz (10 MIPS)
Supply Voltage (VDD) 4.2 V to 5.5 V
I/O Pins 36
ADC 10-bit, up to 13 channels
CAN Module ECAN (CAN 2.0B active)
Communication Peripherals 2x USART, MSSP (SPI/I2C)
Timers Timer0/1/2/3
Operating Temperature -40C to +125C (Extended 'E' grade)
Package 40-pin PDIP (P)
Mounting Type Through-Hole
Instruction Set PIC18 enhanced (16-bit opcode, 8-bit data path)
Power-Saving Modes nanoWatt (sleep, idle, doze modes)
RoHS Status Compliant (lead-free)
MSL Level 1 (not moisture-sensitive for PDIP)

PIC18F4585-E/P Pin Configuration

DIP-40 Package Pinout Diagram DIP-40 40-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 40 2 39 3 38 4 37 5 36 6 35 7 34 8 33 9 32 10 31 11 30 12 29 13 28 14 27 15 26 16 25 17 24 18 23 19 22 20 21 DIP-40
Pin 1 MCLR — Master Clear (reset) input, active low
Pin 2 RA0/AN0 — Digital I/O / Analog input channel 0
Pin 3 RA1/AN1 — Digital I/O / Analog input channel 1
Pin 4 RA2/AN2/VREF- — Digital I/O / Analog input 2 / ADC VREF-
Pin 5 RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC VREF+
Pin 6 RA4/T0CKI — Digital I/O / Timer0 clock input
Pin 7 RA5/AN4/SS — Digital I/O / Analog input 4 / SPI slave select
Pin 8 RE0/RD/AN5 — Digital I/O / Parallel port read control
Pin 9 RE1/WR/AN6 — Digital I/O / Parallel port write control
Pin 10 RE2/CS/AN7 — Digital I/O / Parallel port chip select
Pin 11 VDD — Positive supply voltage
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKI — Crystal oscillator input / external clock in
Pin 14 OSC2/CLKO — Crystal oscillator output / clock out
Pin 15 RC0/T1OSO/T1CKI — Digital I/O / Timer1 oscillator output or clock in
Pin 16 RC1/T1OSI/CCP2 — Digital I/O / Timer1 oscillator input / CCP2
Pin 17 RC2/CCP1 — Digital I/O / Capture/Compare/PWM 1
Pin 18 RC3/SCK/SCL — Digital I/O / SPI clock / I2C clock
Pin 19 RD0/C1IN+/C2IN+ — Digital I/O / Comparator inputs
Pin 20 RD1/C1IN-/C2IN- — Digital I/O / Comparator inputs
Pin 21 RD2/C1OUT — Digital I/O / Comparator 1 output
Pin 22 RD3/C2OUT — Digital I/O / Comparator 2 output
Pin 23 RC4/SDI/SDA — Digital I/O / SPI data in / I2C data
Pin 24 RC5/SDO — Digital I/O / SPI data out
Pin 25 RC6/TX/CK — Digital I/O / USART TX / clock
Pin 26 RC7/RX/DT — Digital I/O / USART RX / data
Pin 27 RD4/ECANRX — Digital I/O / ECAN RX
Pin 28 RD5/ECANTX — Digital I/O / ECAN TX
Pin 29 RD6 — Digital I/O
Pin 30 RD7 — Digital I/O
Pin 31 VSS — Ground reference
Pin 32 VDD — Positive supply voltage
Pin 33 RB0/INT0 — Digital I/O / External interrupt 0
Pin 34 RB1/INT1 — Digital I/O / External interrupt 1
Pin 35 RB2/INT2 — Digital I/O / External interrupt 2
Pin 36 RB3/INT3/CCP2 — Digital I/O / External interrupt 3 / CCP2
Pin 37 RB4 — Digital I/O
Pin 38 RB5 — Digital I/O
Pin 39 RB6/PGC — Digital I/O / ICSP clock (ICD)
Pin 40 RB7/PGD — Digital I/O / ICSP data (ICD)

Typical Applications

PIC18F4585-E/P is suitable for 7 applications: Industrial CAN-bus Sensor Nodes, Automotive Body and Chassis ECUs, Building Automation Gateways, HVAC Climate Controllers, Industrial Pumps and Motor Drives (Auxiliary Logic), Medical Device Control Boards, Consumer Appliance Controllers.

🏭

Industrial CAN-bus Sensor Nodes

The PIC18F4585-E/P fits industrial CAN-bus sensor nodes because its integrated ECAN module implements CAN 2.0B active with hardware acceptance filters and masks, eliminating any external CAN controller IC. With 48 KB Flash (24K x 16), 3328 bytes RAM, and a 10-bit ADC with up to 13 input channels, the device can sample multiple analog sensors (temperature, pressure, flow) and publish CAN frames at 1 Mbps on a CANopen or DeviceNet bus. The 'E' (Extended) temperature grade of -40C to +125C allows deployment in factory-floor enclosures where ambient temperatures exceed 70C. Power-supply requirement of 4.2V to 5.5V aligns with 24V industrial rails post-regulated to 5V, and nanoWatt power-saving modes keep quiescent current in microampere ranges during sleep.

🚗

Automotive Body and Chassis ECUs

The PIC18F4585-E/P serves automotive body and chassis ECUs such as HVAC controllers, seat controllers, lighting modules, and door modules. Its ECAN peripheral enables seamless integration with a vehicle CAN bus backbone, and the 10-bit ADC with 13 channels provides ample analog input for sensor monitoring (NTC temperature, potentiometer position, current shunt). At -40C to +125C the part meets under-hood and cabin operating requirements, while the 40-PDIP package supports through-hole assembly favored in automotive aftermarket ECU designs. Compared with bare CAN controllers plus a separate MCU, the integrated solution cuts BOM cost, simplifies PCB layout, and frees firmware cycles because the ECAN DMA-style buffer management handles bus traffic without CPU intervention.

🧩

Building Automation Gateways

The PIC18F4585-E/P can serve as a building automation gateway node bridging sensor networks and HVAC controllers. The two USART modules allow simultaneous RS-485 to BACnet or Modbus RTU master communication and a secondary debug or modem link, while the MSSP peripheral supports SPI or I2C sensor expansion. With 48 KB Flash the part hosts a full BACnet/Modbus stack plus application code, and the 10 MIPS execution speed at 40 MHz keeps deterministic response times for control loops. The 'E' temperature rating supports rooftop equipment enclosures that hit 100C+ in summer sun. The 40-PDIP form factor also enables hand-solderable prototype boards used by integration installers and field engineers.

🌐

HVAC Climate Controllers

The PIC18F4585-E/P is a fit for HVAC climate controllers that drive fans, valves, and triac-controlled loads. The 10-bit ADC samples thermistor temperature sensors and airflow feedback, while the timer modules generate zero-cross detection for triac phase-angle control. The 48 KB Flash supports a real-time scheduling algorithm with adaptive temperature setpoints, and 1024 bytes of EEPROM stores user-set parameters (setpoint, fan speed, schedule) across power cycles. The 'E' (Extended) grade handles outdoor unit electronics that range from -40C winter to +70C summer, all in a 40-PDIP package that simplifies field service and module replacement. Compared with 32-bit ARM Cortex alternatives, the PIC18 keeps BOM cost low for cost-sensitive HVAC SKUs.

🏭

Industrial Pumps and Motor Drives (Auxiliary Logic)

The PIC18F4585-E/P works as auxiliary control logic for industrial pumps, variable-frequency drives, and motor starters. The ECAN peripheral reports pump status (speed, current, fault codes) to a centralized PLC or SCADA system, while general-purpose I/O pins handle discrete signals (start/stop, run/perm fault, low-water cutoff). The 10-bit ADC reads 4-20 mA loopback from motor current sensors, and the timers generate PWM for soft-start ramp profiles. At -40C to +125C the device tolerates cabinet temperatures next to motor drives, and the 40-PDIP package allows retrofit assembly into legacy pump-control boards. Designers can rely on Microchip's MPLAB XC8 compiler and Code Configurator to reduce firmware development time.

💊

Medical Device Control Boards

The PIC18F4585-E/P fits Class I/II medical device control boards such as laboratory analyzers, infusion pump monitors, and patient warming systems. The ECAN module provides a reliable communications backbone in networked medical carts, while the 10-bit ADC ensures precise analog measurement of sensor inputs (pressure, flow, temperature). The 1024-byte EEPROM stores non-volatile calibration constants and audit logs critical for medical compliance. The Extended temperature grade supports devices sterilized via autoclave-style thermal cycling or used in cold-chain logistics. Compared with 16-bit DSP alternatives, the PIC18 lowers BOM cost while delivering deterministic interrupt response - critical for safety-critical medical subsystems that require IEC 60601-1 system-level compliance.

🔧

Consumer Appliance Controllers

The PIC18F4585-E/P serves consumer appliance controllers (washers, dishwashers, induction cooktops) where CAN-bus connectivity between sub-boards simplifies harness routing and enables diagnostic feedback to a main controller. The 48 KB Flash stores the full appliance state machine plus user interface logic, and the nanoWatt technology keeps standby power well under 0.5 W to meet ENERGY STAR requirements. The Extended temperature grade handles appliance compartments that reach 90C+ during operation, and the 40-PDIP package fits legacy through-hole PCB designs used by global appliance OEMs. Compared with an 8-bit 8051 alternative, the PIC18's C-compiler support and modern peripherals shorten firmware development.

Recommended Products Summary

PIC18F4680-E/P 64KB Flash upgrade variant, same 40-PDIP pinout Used in: Industrial CAN-bus Sensor Nodes MCP2515-I/P External CAN controller for non-CAN PIC18 designs Used in: Industrial CAN-bus Sensor Nodes, Building Automation Gateways MCP2551-I/P High-speed CAN transceiver Used in: Industrial CAN-bus Sensor Nodes, Automotive Body and Chassis ECUs, Industrial Pumps and Motor Drives (Auxiliary Logic) PIC18F4585-I/P Industrial temperature variant for cabin applications Used in: Automotive Body and Chassis ECUs, Consumer Appliance Controllers MCP2558FD CAN FD upgrade transceiver for next-gen designs Used in: Automotive Body and Chassis ECUs MAX485 RS-485 transceiver for BACnet/Modbus Used in: Building Automation Gateways MOC3021 Optoisolator for triac driver outputs Used in: HVAC Climate Controllers PIC18F452-I/P Microchip Technology Used in: HVAC Climate Controllers IRF540N MOSFET for PWM motor drive Used in: Industrial Pumps and Motor Drives (Auxiliary Logic) MCP1700 Low-quiescent LDO for medical analog rails Used in: Medical Device Control Boards, Consumer Appliance Controllers MAX31855 Thermocouple-to-digital converter (if precise temperature sensing needed) Used in: Medical Device Control Boards
What is the program memory size of PIC18F4585-E/P?
The PIC18F4585-E/P integrates 48 KB of on-chip Flash program memory (organized as 24K x 16 words) plus 3328 bytes of SRAM and 1024 bytes of data EEPROM. According to the Microchip datasheet, the Flash supports self-programming and ICSP (In-Circuit Serial Programming), which lets firmware be updated in place via the standard Microchip ICD/MPLAB toolchain without removing the part from the board.
Does the PIC18F4585-E/P include a CAN bus controller?
Yes. The PIC18F4585 includes a hardware ECAN (Enhanced Controller Area Network) module that implements the Bosch CAN 2.0B active specification with multiple acceptance filters and masks. Engineers building CAN nodes (SAE J1939, CANopen, DeviceNet) can use the ECAN peripheral without an external CAN controller IC, saving BOM cost and PCB area in 12V/24V industrial and automotive designs.
What is the operating voltage of PIC18F4585-E/P?
The PIC18F4585-E/P operates from 4.2V to 5.5V on the VDD pin, with extended temperature range of -40C to +125C because of the 'E' suffix. This supply window suits 5V industrial buses and automotive 12V systems that are post-regulated to 5V. Designers must ensure VDD never exceeds the absolute maximum of 7V or drops below 4.2V to avoid Flash corruption or ADC reference error.
How does PIC18F4585-E/P differ from PIC18F4585-I/P?
The PIC18F4585-E/P carries an Extended ('E') temperature grade of -40C to +125C, while the PIC18F4585-I/P uses the Industrial ('I') grade of -40C to +85C. Both share the same 40-PDIP pinout, Flash, RAM, EEPROM, peripherals, and ECAN module. Choose the 'E' version for under-hood automotive, outdoor industrial, or any design exposed to sustained temperatures above 85C.
Where can I download the PIC18F4585-E/P datasheet PDF?
The official Microchip datasheet for PIC18F4585 (DS39637) is hosted at ww1.microchip.com/downloads/en/DeviceDoc/39637e.pdf. The same document covers the -E (Extended) and -I (Industrial) temperature grades and all package options. The datasheet provides block diagrams, ECAN register descriptions, ADC specifications, electrical characteristics, and PDIP/44-TQFP/44-QFN pinouts.
What is the pin count and pinout of PIC18F4585-E/P?
The PIC18F4585-E/P uses a 40-pin PDIP package with the standard PIC18 40-pin pinout: Port A (RA0-RA7), Port B (RB0-RB7), Port C (RC0-RC7), Port D (RD0-RD7, RD4-RD7 multiplexed with ECAN), Port E (RE0-RE2 analog inputs), plus VDD/VSS, MCLR, OSC1/OSC2, and AVSS/AVDD. The pinout is pin-compatible with other PIC18F 40-pin devices such as PIC18F458, PIC18F4525, and PIC18F4680.
Is PIC18F4585-E/P pin-compatible with PIC18F4680-E/P?
Yes, the PIC18F4585-E/P and PIC18F4680-E/P share the same 40-pin PDIP footprint and pinout, making them pin-compatible. The PIC18F4680 adds more program memory (64 KB vs 48 KB) and more RAM (3328 vs 3328 bytes), so the 4680 is an upgrade path for designs that have outgrown the 4585's Flash. Both devices implement the same ECAN module register layout, easing firmware portability.
What is the difference between PIC18F458-E/P and PIC18F4585-E/P?
The PIC18F458 is the predecessor with 32 KB Flash, 1536 bytes RAM, and 256 bytes EEPROM, while the PIC18F4585 expands to 48 KB Flash, 3328 bytes RAM, and 1024 bytes EEPROM - all in the same 40-PDIP pinout. Both share the ECAN module and the same peripheral register map. The 4585 is the recommended migration target for designs originally built around the 458.
Where can I buy PIC18F4585-E/P online at the best price?
As of 2026-09-27, the PIC18F4585-E/P is in stock at DigiKey (https://www.digikey.com/en/products/detail/microchip-technology/PIC18F4585-E-P/613617) starting around $7.92 for qty-1, at Mouser, LCSC (about $3.79 at LCSC), and through Microchip Direct for production volumes. For prototype builds the LCSC and DigiKey break-pack options are lowest MOQ; for production, Microchip Direct offers the best volume pricing and direct traceability.
What is the price of PIC18F4585-E/P at quantity 1000?
At quantity 1000, the PIC18F4585-E/P unit price is approximately $5.07 per part based on DigiKey distributor data as of 2026-09-27. Volume pricing continues to drop at 5000-piece and higher breaks; Microchip Direct typically offers additional savings for direct factory orders and may provide free samples for qualified design-in projects with NDA in place.
What is the lead time for PIC18F4585-E/P orders?
As of 2026-09-27, DigiKey shows the PIC18F4585-E/P ships today from in-stock inventory for small quantities. Microchip Direct factory lead times are typically 8-12 weeks for production volumes but can extend during allocation cycles. Engineers should monitor the Microchip product page (https://www.microchip.com/en-us/product/PIC18F4585) for current lifecycle status - the part is currently flagged In Production.
Is PIC18F4585-E/P RoHS compliant and lead-free?
Yes. According to the Microchip product page, the PIC18F4585-E/P is supplied as a lead-free, RoHS-compliant part suitable for Pb-free reflow and through-hole assembly in modern lead-free manufacturing lines. The part also meets REACH requirements. The 'E' (Extended) temperature grade designation is unrelated to lead content and only indicates the -40C to +125C operating range.
What development tools support PIC18F4585-E/P?
The PIC18F4585 is fully supported by Microchip's MPLAB X IDE, MPLAB Xpress cloud IDE, the MPLAB XC8 C compiler, and the MPLAB Code Configurator (MCC) peripheral code generator. Programming and debugging is handled by the MPLAB ICD 4, MPLAB ICD 5, MPLAB PICkit 4, MPLAB Snap, or the MPLAB REAL ICE in-circuit emulator, all of which connect to the device's ICSP and ICSP/ICD pins.
What is the best drop-in replacement for PIC18F4585-E/P?
The best drop-in replacements for PIC18F4585-E/P are the PIC18F4585-I/P (same 40-PDIP pinout, Industrial temperature grade -40C to +85C), the PIC18F4680-E/P (64 KB Flash upgrade, same 40-PDIP pinout, ECAN peripheral), and the PIC18F458-E/P (32 KB Flash predecessor, same pinout). All three share the same pinout so no PCB changes are required when migrating between them.
What cross-brand equivalent replaces PIC18F4585-E/P?
There is no true cross-brand pin-compatible equivalent for the PIC18F4585-E/P because the PIC18 core, register map, and ICSP programming interface are Microchip-proprietary. Engineers who must move off Microchip need to redesign around a different MCU family (e.g., TI MSP430 or ST STM8) which requires PCB and firmware changes. Microchip's own cross-reference tool (https://www.microchip.com/en-us/cross-reference-search) suggests same-brand PIC18F4680 or PIC18F458 alternatives.

Engineering reference data for PIC18F4585-E/P — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC18F4585-E/P when your embedded design needs an 8-bit MCU with integrated ECAN bus connectivity and an extended -40C to +125C operating range for industrial or automotive under-hood environments. Choose PIC18F4585-I/P if your application is constrained to -40C to +85C, saving cost on the 'E' temperature grade. Choose PIC18F4680-E/P as a drop-in upgrade if you anticipate outgrowing 48 KB of Flash (provides 64 KB). Choose PIC18F458-E/P as a predecessor replacement when 32 KB Flash and 1536 bytes RAM are sufficient. PIC18F448-E/P is only recommended for cost-sensitive designs needing the smallest 16 KB Flash. PIC18F4525-I/P is the right choice if you do not need the ECAN peripheral but want the 48 KB Flash and 40-PDIP pinout - but note it lacks the ECAN peripheral entirely.

Comparison with Alternatives

Parameter This Product PIC18F4585-I/P PIC18F4680-E/P PIC18F458-E/P PIC18F448-E/P PIC18F4525-I/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 40-PDIP 40-PDIP - same 40-PDIP - same 40-PDIP - same 40-PDIP - same 40-PDIP - same
Program Memory (Flash) 48 KB 48 KB 64 KB 32 KB 16 KB 48 KB
Data RAM 3328 bytes 3328 bytes 3328 bytes 1536 bytes 768 bytes 3328 bytes
Data EEPROM 1024 bytes 1024 bytes 1024 bytes 256 bytes 256 bytes 1024 bytes
Maximum Clock 40 MHz 40 MHz 40 MHz 40 MHz 40 MHz 40 MHz
ECAN Module Yes (ECAN) Yes (ECAN) Yes (ECAN) Yes (ECAN) Yes (ECAN) No (CAN removed)
Operating Temperature -40C to +125C (E) -40C to +85C (I) -40C to +125C (E) -40C to +125C (E) -40C to +125C (E) -40C to +85C (I)
I/O Pins 36 36 36 36 36 36

Key Differentiators

  • Extended -40C to +125C operating temperature grade (vs PIC18F4585-I/P)
  • On-chip ECAN peripheral eliminates external CAN controller IC (vs PIC18F4525-I/P (no ECAN))
  • Larger data EEPROM for non-volatile parameter storage (vs PIC18F458-E/P)

Design Notes

The PIC18F4585-E/P operates from 4.2V to 5.5V on VDD, with two VDD pins (11 and 32) and two VSS pins (12 and 31) on the 40-PDIP package. Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pair, plus a bulk 10 uF tantalum or ceramic on the supply rail. The device can be powered from a 5V LDO fed by a 12V or 24V system rail (e.g., LM7805 or Microchip MCP1700 for low-quiescent). Never allow VDD to exceed 7V absolute maximum or fall below 4.2V during operation, since Flash corruption and ADC reference errors occur outside this window.

Although the 40-PDIP package has higher thermal resistance than surface-mount variants, the PIC18F4585-E/P typically dissipates well under 0.5 W in normal use, so a heatsink is not required. The 'E' (Extended) temperature grade ensures operation from -40C to +125C junction temperature. In enclosed housings near power devices, validate the junction rise by measuring ambient under worst-case operating conditions. Avoid placing the MCU directly next to heatsinked MOSFETs or transformers; allow at least 10 mm clearance for convection cooling. The nanoWatt power-saving modes reduce current to microampere ranges in Sleep, helping thermal margins in sealed enclosures.

Route the ICSP signals (RB6/PGC and RB7/PGD) with short, parallel traces kept away from switching signals like PWM outputs or ECANTX. Add 4.7 kohm pull-ups on SDA/SCL if I2C peripherals are present, and place the MCP2551 (or equivalent) CAN transceiver within 25 mm of the MCU's ECANRX/ECANTX pins to keep stub lengths short. Use a ground plane on the bottom layer to provide low-impedance return paths for the high-frequency ECAN signals; this is essential for EMC compliance. Place the decoupling caps on the same layer as the IC with via-to-ground connections under the VSS pins. Keep the crystal (or resonator) traces short and surrounded by ground pour for oscillator stability.

Common pitfalls include: (1) Forgetting that MCLR must be pulled high via a 10 kohm resistor for normal operation; an external reset supervisor is recommended for noise-sensitive applications. (2) Failing to configure the CONFIG bits (oscillator selection, watchdog timer, brown-out detect, low-voltage programming) before Flash programming - leaving them blank can lock the part in an unprogrammed state. (3) Using the analog pins as digital I/O without first disabling the ADC to avoid parasitic current draw. (4) Forgetting the AVSS/AVDD supply pins (RE0/RE1/RE2 region) must have their analog supply connected even if ADC is unused. (5) Programming the Flash write/erase sequence without the proper unlock keys, which can permanently lock the device.

The ECAN bus requires impedance-controlled routing (typically 120 ohm differential) with termination resistors at each end of the bus. Keep the CAN traces short and matched in length; any mismatch above 5 mm can cause reflections that disrupt CAN frames at 1 Mbps. Place a common-mode choke and TVS diode array (e.g., PESD1CAN) near the CAN connector for ESD and transient protection. For the 10-bit ADC, place a small RC filter (100 ohm + 100 nF) on analog inputs to reduce switching noise pickup; sample-and-hold timing must follow the datasheet Acquisition Time guidelines per source impedance.

Compliance Information

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

RoHS and REACH compliant per Microchip product page. AEC-Q100 status not explicitly stated; the 'E' temperature grade refers to operating temperature, not automotive qualification. For AEC-Q100-qualified PIC18 CAN parts, designers should review PIC18F2585/4585 Q1 variants or PIC18F66K80 family.

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

Related Searches

PIC18F4585-E/P PIC18F4585-E/P datasheet Microchip PIC18F4585 8-bit MCU with CAN bus 48KB flash PIC18 40-pin PDIP microcontroller PIC18F4585 ECAN industrial PIC18F4585 vs PIC18F4680 PIC18F4585 drop-in replacement PIC18F4585-E/P buy price stock what is the program memory of PIC18F4585 PIC18F4585 pinout 40-PDIP ECAN microcontroller automotive CAN bus

Related Components & Terms

Microchip Technology PIC18F4585 PIC18F4585-E/P PIC18F4585-I/P PIC18F4680-E/P PIC18F458-E/P PIC18F448-E/P PIC18F4525-I/P 8-bit microcontroller PIC18 RISC Harvard architecture ECAN CAN 2.0B nanoWatt PDIP-40 RoHS REACH MPLAB X IDE XC8 compiler ICSP ICP industrial CAN-bus automotive ECU 10-bit ADC USART MSSP PICkit ICSP programming Microchip Direct
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