PIC18F4585-E/P - 8-bit MCU 48KB Flash ECAN 40-PDIP | Microchip
MPN: PIC18F4585-E/P ✓ Active| 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 |
PIC18F4585-E/P Overview
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).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F4585-I/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4680-E/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F458-E/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F448-E/P
✅ Drop-In✓ In Stock
$5.8 / Unit
View Datasheet →PIC18F4525-I/PT
✅ Drop-In✓ 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
| 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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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
Recommended Products Summary
Engineering reference data for PIC18F4585-E/P — comparison, design guidance, and compliance information.
Selection Guide
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 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.