PIC18F4585-I/ML - 8-bit MCU, 48KB Flash, ECAN, 44-QFN | Microchip
MPN: PIC18F4585-I/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $6.42 | $6.42 |
| 10 | $5.78 | $57.80 |
| 100 | $5.13 | $513.00 |
| 500 | $4.61 | $2,305.00 |
| 1,000 | $4.1 | $4,100.00 |
PIC18F4585-I/ML Overview
What is a PIC18 microcontroller? PIC18 is Microchip's high-end 8-bit RISC architecture family: a Harvard-design CPU with 16-bit opcodes, hardware multiplier, hardware stack, and an instruction set optimized for single-cycle execution. Within the broader hierarchy, PIC18 belongs to the 8-bit microcontroller class (sibling to PIC16 and AVR), sits above PIC10/12/16 in flash and peripherals, and below PIC24/dsPIC33 in performance and address space. ECAN (Enhanced Controller Area Network) is Bosch CAN 2.0B plus Microchip extensions for time-triggered and DMA-assisted transfers, used in-vehicle and in industrial automation where deterministic bus arbitration is mandatory.
Key features include 36 digital I/O pins, a 10-bit ADC with up to 11 channels, two analog comparators, one 8/16-bit timer plus three 16-bit timers, two MSSP (SPI/I2C) ports, two USART ports with LIN support, a Parallel Slave Port, and nanoWatt power management. The integrated ECAN module supports CAN 2.0B active/passive with DeviceNet addressing, four maskable interrupt vectors, and wake-up capability on bus activity. The 44-QFN (ML) package offers a low 0.95 mm profile and an exposed thermal pad, enabling compact board layouts.
The PIC18F4585 uses a 4.2-5.5 V supply, is rated for the industrial -40C to +85C range, and includes self-programming Flash for in-application firmware upgrades. Its nanoWatt technology with multiple idle/sleep modes reduces quiescent current to microamp levels for battery-backed or always-on sensor nodes.
Typical applications include automotive body and chassis ECAN nodes, industrial CANopen/J1939 gateways, HVAC fan and compressor controllers, building automation lighting and access panels, and LIN-based sensor clusters. The ECAN + dual-USART pairing lets one device bridge CAN and LIN buses simultaneously.
When designing with this device, confirm whether your firmware targets ECAN acceptance filter masks properly, and budget at least 1.5 kbytes of stack/heap for the CAN driver. The 44-QFN thermal pad must be soldered to a copper pour for thermal and electrical grounding; skipping this risks a thermal shutdown in a closed enclosure. A 100 nF decoupling capacitor on VDD plus a 10 uF bulk cap is the recommended minimum supply network.
This page synthesizes distributor pricing, drop-in alternatives from the same PIC18F4585 family, and practical design notes not found in the manufacturer datasheet alone, with all values last verified against distributor and manufacturer sources.
Drop-in alternatives for PIC18F4585-I/ML — 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-I/ML (same form factor and footprint) — differing in Package, Core Architecture, Program Memory (Flash), Timers, Operating Temperature.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F4585-I/PT
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$5.73 / Unit
View Datasheet →PIC18F4585T-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4585-E/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4585-H/ML
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$7.85 / Unit
View Datasheet →PIC18F4580-I/ML
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F2680-I/ML
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC18F4585-I/ML Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18, 8-bit RISC, Harvard |
| Program Memory (Flash) | 48 KB (24K x 16 words) |
| SRAM | 3,328 bytes |
| Data EEPROM / HEF | 1,024 bytes |
| Maximum CPU Speed | 40 MHz (10 MIPS) |
| Supply Voltage (VDD) | 4.2 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 10-bit, up to 11 channels |
| Analog Comparators | 2 |
| Timers | 1x 8/16-bit + 3x 16-bit |
| ECAN Module | CAN 2.0B active/passive, DeviceNet addressing |
| MSSP (SPI / I2C) | 2 |
| USART (LIN-capable) | 2 |
| Parallel Slave Port | Yes |
| Package | 44-pin QFN (8x8 mm, ML suffix) |
| Operating Temperature | -40C to +85C (Industrial, I grade) |
| Mounting Type | Surface Mount |
| Self-Programming Flash | Yes |
| Power-Saving Modes | nanoWatt Technology (Idle/Sleep) |
| RoHS Status | Compliant |
PIC18F4585-I/ML Pin Configuration
| Pin 1 | RB3/CCP2 — Digital I/O / Capture-Compare-PWM 2 |
| Pin 2 | RB4 — Digital I/O, interrupt-on-change |
| Pin 3 | RB5 — Digital I/O, interrupt-on-change |
| Pin 4 | RB6/PGC — Digital I/O / ICSP clock |
| Pin 5 | RB7/PGD — Digital I/O / ICSP data |
| Pin 6 | VDD — Positive supply (4.2-5.5 V) |
| Pin 7 | VSS — Ground reference |
| Pin 8 | RC0 — Digital I/O |
| Pin 9 | RC1 — Digital I/O |
| Pin 10 | RC2 — Digital I/O |
| Pin 11 | RC3 — Digital I/O |
| Pin 12 | RC4 — Digital I/O |
| Pin 13 | RC5 — Digital I/O |
| Pin 14 | RC6/TX — Digital I/O / USART TX |
| Pin 15 | RC7/RX — Digital I/O / USART RX |
| Pin 16 | OSC1/CLKI — Crystal oscillator input |
| Pin 17 | OSC2/CLKO — Crystal oscillator output |
| Pin 18 | RA0 — Digital I/O / AN0 |
| Pin 19 | RA1 — Digital I/O / AN1 |
| Pin 20 | RA2 — Digital I/O / AN2 |
| Pin 21 | RA3 — Digital I/O / AN3 |
| Pin 22 | RA4 — Digital I/O / AN4 |
| Pin 23 | RA5 — Digital I/O / AN5 |
| Pin 24 | RA6 — Digital I/O / AN6 |
| Pin 25 | RA7 — Digital I/O / AN7 |
| Pin 26 | VSS — Ground reference |
| Pin 27 | VDD — Positive supply (4.2-5.5 V) |
| Pin 28 | RB0 — Digital I/O, interrupt-on-change |
| Pin 29 | RB1 — Digital I/O, interrupt-on-change |
| Pin 30 | RB2 — Digital I/O, interrupt-on-change |
| Pin 31 | C1IN-/AN10 — Analog comparator input / ADC |
| Pin 32 | C1IN+/AN11 — Analog comparator input / ADC |
| Pin 33 | C2IN-/AN8 — Analog comparator input / ADC |
| Pin 34 | C2IN+/AN9 — Analog comparator input / ADC |
| Pin 35 | RE0/RD — Parallel Slave Port read / digital I/O |
| Pin 36 | RE1/WR — Parallel Slave Port write / digital I/O |
| Pin 37 | RE2/CS — Parallel Slave Port chip select / digital I/O |
| Pin 38 | VDD — Positive supply (4.2-5.5 V) |
| Pin 39 | VSS — Ground reference |
| Pin 40 | CANTX — ECAN transmit output |
| Pin 41 | CANRX — ECAN receive input |
| Pin 42 | MCLR — Master clear (reset, active-low) |
| Pin 43 | RC7/RX — Digital I/O / USART RX (secondary) |
| Pin 44 | RB7/PGD — Digital I/O / ICSP data (secondary) |
| Pin 45 | EP — Exposed thermal pad - connect to VSS (ground) |
Typical Applications
PIC18F4585-I/ML is suitable for 6 applications: Automotive ECAN Body Control Node, Industrial CANopen Gateway, HVAC Fan and Compressor Controller, Building Automation Lighting Panel, LIN-Based Sensor Cluster, Battery-Backed Always-On Sensor Node.
Automotive ECAN Body Control Node
The PIC18F4585-I/ML is well-suited for automotive body-control modules that need ECAN 2.0B with DeviceNet addressing and time-triggered operation. Its 48 KB Flash holds a typical CANopen or J1939 application layer plus diagnostic handlers, while 3,328 bytes of SRAM is enough for CAN transmit/receive mailboxes and a 1 kbyte EEPROM stores fault codes and node configuration. The integrated ECAN module eliminates the need for an external CAN controller, reducing BOM cost by approximately $1.50 versus an MCU plus external MCP2515 solution. The 36 I/O lines accommodate direct drive of relays, LEDs, and switch inputs, and nanoWatt sleep drops quiescent current below 1 uA for parked-vehicle quiescent targets. Place a TJA1050 or MCP2551 CAN transceiver on the bus pins, plus a 100 nF decoupling cap on each VDD pin.
Recommended
Industrial CANopen Gateway
For industrial CANopen gateways bridging CAN to Ethernet or RS-485, the PIC18F4585-I/ML provides ECAN plus two USARTs in a single 44-QFN device. One USART can drive an RS-485 link with Modbus RTU while the other services a LIN sub-network of sensors, and ECAN handles the upstream CANopen trunk at 125 kbps to 1 Mbps. The 10 MIPS CPU speed is adequate for object dictionary parsing and PDO/SDO handling in a typical 16-node CANopen network. With 48 KB of Flash the device can host the CANopenNode or CanFestival stack with room for application code. Use the dual MSSP to add SPI-driven displays or I2C-based I/O expanders without consuming CPU cycles.
Recommended
HVAC Fan and Compressor Controller
The PIC18F4585-I/ML drives HVAC fan and compressor controllers where the 11-channel 10-bit ADC reads temperature sensors (NTC thermistors), pressure transducers, and current shunts, while PWM outputs on the 16-bit timer modules regulate TRIAC-gated fan motors and compressor inverters. Its 5 V operating range simplifies interface to legacy 5 V sensor arrays still common in HVAC control boards. The 36 I/O can handle keypad scanning, seven-segment display driving, and relay outputs without external logic. nanoWatt sleep modes allow the controller to drop below 5 uA between thermostat calls, supporting ENERGY STAR standby targets. The 44-QFN package footprint fits inside a 1.5 x 1.5 inch control board with room for optoisolated line-voltage interfaces.
Recommended
Building Automation Lighting Panel
In DALI or 0-10 V lighting panels, the PIC18F4585-I/ML acts as a sub-controller for groups of dimmable fixtures, using ECAN to communicate with the building automation backbone and USART or MSSP to drive DALI master controllers or 0-10 V analog outputs. Its 48 KB Flash accommodates DALI-2 application controller firmware plus scene storage in the 1 kbyte EEPROM for 16 preset scenes per zone. The dual MSSP lets one bus serve DALI while the other drives an SPI-based OLED or LCD display panel on the wall switch. The industrial temperature range covers indoor fixtures and unconditioned above-ceiling installations.
Recommended
LIN-Based Sensor Cluster
The PIC18F4585-I/ML is ideal for LIN-based automotive sensor clusters where one master MCU polls multiple LIN slaves for seat occupancy, ambient light, rain sensor, and mirror position data. The USART-with-LIN peripheral handles the LIN 1.3/2.0/2.1 protocol in hardware, offloading bit-banging from the CPU. With two USARTs, the device can be both a LIN master and a CAN node simultaneously, serving as a body-domain gateway. The 1 kbyte EEPROM stores sensor calibration data, and the 3,328 bytes of SRAM is sufficient for LIN schedule tables plus diagnostic buffers. Industrial -40C to +85C rating matches automotive cabin temperature specs.
Recommended
Battery-Backed Always-On Sensor Node
For always-on sensor nodes that must sip power from a backup battery during mains loss, the PIC18F4585-I/ML leverages nanoWatt sleep modes to drop quiescent current below 1 uA while still allowing ECAN bus-activity wake-up to bring the CPU back online within milliseconds. The 48 KB Flash stores the application plus a small RTOS or cooperative scheduler, and the 3,328 bytes of SRAM is sufficient for sensor buffer queues. During normal operation the device runs at 10 MIPS to process CAN frames; in sleep mode only the ECAN module and a 32 kHz Timer1 oscillator remain active. The 5 V supply range requires a small LDO between the battery and VDD, but simplifies the design versus PIC18LF variants when the rest of the node is 5 V.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F4585-I/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F4585-I/PT | PIC18F4585T-I/ML | PIC18F4585-E/ML | PIC18F4580-I/ML | PIC18F2680-I/ML |
|---|---|---|---|---|---|---|
| Package | 44-QFN (8x8 mm) | 44-TQFP (not drop-in footprint) | 44-QFN (8x8 mm) - same | 44-QFN (8x8 mm) - same | 44-QFN (8x8 mm) - same | 44-QFN (8x8 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 48 KB | 48 KB | 48 KB | 48 KB | 48 KB | 48 KB |
| SRAM | 3,328 B | 3,328 B | 3,328 B | 3,328 B | 3,328 B | 3,328 B |
| ECAN Module | Yes (2.0B + DeviceNet) | Yes (2.0B + DeviceNet) | Yes (2.0B + DeviceNet) | Yes (2.0B + DeviceNet) | CAN 2.0B only (no ECAN extensions) | Yes (2.0B + DeviceNet) |
| Operating Temperature | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +125C | -40C to +85C | -40C to +85C |
| I/O Pins | 36 | 36 | 36 | 36 | 36 | Reduced (28-pin variant) |
| Parallel Slave Port | Yes | Yes | Yes | Yes | No | No |
Key Differentiators
- Integrated ECAN 2.0B with DeviceNet and time-triggered support (vs PIC18F4580-I/ML)
- Parallel Slave Port for external bus attachment (vs PIC18F2680-I/ML)
- Industrial -40C to +85C rated for general purpose (vs PIC18F4585-E/ML)
Design Notes
The PIC18F4585-I/ML has multiple VDD/VSS pairs (pins 6/7, 26/27, 38/39) that must each be bypassed with a 100 nF ceramic capacitor placed within 3 mm of the respective pin. A bulk 10 uF tantalum or aluminum-polymer capacitor near the package supplies transient current during ECAN transmit bursts, which can exceed 80 mA peak when multiple mailboxes transmit simultaneously. The exposed thermal pad (pin 45) is internally bonded to VSS and MUST be soldered to a copper pour of at least 1 square inch on the top or bottom layer for thermal dissipation; floating or partially-soldered pads are a common field failure.
Estimated thermal resistance of the 44-QFN (8x8) package is approximately 28 C/W on a standard JEDEC 4-layer test board with 1 square inch of thermal pad copper. At maximum ECAN activity (40 MHz CPU, continuous transmit, all I/O toggling), internal power dissipation can reach approximately 250 mW, yielding a 7C temperature rise above ambient. For sealed enclosures above 70C ambient, derate by 25% or add forced-air cooling. The PIC18F4585-E/ML variant rated to +125C is the right choice for under-hood or unconditioned industrial cabinets.
A frequent design pitfall is leaving the ECAN CANTX/CANRX pins unterminated when ECAN is not in use - configure them as digital outputs driving low to prevent floating-bus noise. Another is selecting the wrong oscillator mode: the PIC18F4585-I/ML defaults to HS oscillator for high-frequency crystals, but switching to ECAN requires precise baud-rate generation, so use the internal 8 MHz oscillator with the 4x PLL to derive 40 MHz for accurate CAN timing. Finally, MCLR (pin 42) must be pulled high through a 10 kohm resistor; leaving it floating causes intermittent reset in noisy environments. Verify ICD clock configuration matches the actual crystal or internal oscillator before locking the CONFIG bits.
Compliance Information
RoHS and REACH compliant per Microchip environmental data; lead-free matte-tin plating on ML suffix package. Industrial I-temperature grade is not AEC-Q100 qualified - select PIC18F4585-E/ML for extended temperature or PIC18F4585-H/ML for high-temperature automotive under-hood use cases.