PIC18F4585-H/ML - 48KB Flash 8-bit MCU w/ECAN, 44-QFN
MPN: PIC18F4585-H/ML ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $12.6 | $12.60 |
| 10 | $11.45 | $114.50 |
| 100 | $9.95 | $995.00 |
| 500 | $8.75 | $4,375.00 |
| 1,000 | $7.85 | $7,850.00 |
PIC18F4585-H/ML Overview
An 8-bit microcontroller (MCU) is a single-chip computer built around an 8-bit data path, integrating a CPU, non-volatile program memory, RAM, peripherals, and I/O. The PIC18 family uses an enhanced RISC Harvard architecture with 16-bit instructions and 8-bit data, sitting in the broader taxonomy: MCU -> microcontroller -> embedded processor -> semiconductor. ECAN-equipped PIC18 devices target in-vehicle networking, factory automation, and any distributed control loop where deterministic message arbitration is required.
Key features of the PIC18F4585-H/ML include 36 digital I/O pins, an internal oscillator block, a 10-bit A/D converter with up to 11 input channels, two Enhanced USART modules, one MSSP (SPI/I2C) port, two CCP/ECCP compare/PWM modules, and nanoWatt technology for sleep currents down to nanoampere levels. The part runs from 2.0 V to 5.5 V across -40C to +150C, supporting both 3.3 V and 5 V system rails.
The ECAN module implements CAN 2.0B active with acceptance filters, masking, and prioritization, while the nanoWatt technology includes multiple idle and sleep modes selectable via the oscillator and peripherals configuration registers. The 48 KB flash supports self-programmability through the ICSP interface, enabling bootloader-style field firmware updates.
Typical applications include automotive body and chassis ECAN nodes, industrial CAN-bus sensor aggregation, building automation HVAC controllers, and any embedded design that needs CAN connectivity with modest code footprint. The wide temperature grade (-H) suits under-hood and outdoor industrial enclosures.
When designing with this device, allocate the ICSP pins (PGC/PGD) and MCLR/VPP correctly to allow in-circuit programming. Verify the 44-QFN exposed pad is soldered with sufficient thermal vias to keep junction temperature within the -H grade ceiling at maximum CPU load.
This page synthesizes distributor pricing, ECAN-equipped drop-in alternatives, and practical design notes not consolidated on the manufacturer datasheet.
Drop-in alternatives for PIC18F4585-H/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-H/ML (same form factor and footprint) — differing in Maximum CPU Speed, Operating Temperature, Package, Power-Saving Modes, Timers.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F4585T-I/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4585T-E/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4680-H/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4580-H/ML
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4585-I/ML
✅ Drop-In✓ In Stock
$4.1 / Unit
View Datasheet →PIC18F4585-H/PT
✅ Drop-In✓ In Stock
$5.55 / Unit
View Datasheet →PIC18F4585-H/ML Maximum Ratings & Electrical Characteristics
| Architecture | PIC18 Enhanced RISC, 8-bit data, 16-bit instructions |
| Program Memory (Flash) | 48 KB (24K x 16) |
| RAM | 3.25 KB (3328 bytes) |
| EEPROM | 1 KB |
| Maximum CPU Speed | 25 MHz (up to 10 MIPS) |
| Supply Voltage (Vdd) | 2.0 V to 5.5 V |
| I/O Pins | 36 |
| Package | 44-pin VQFN Exposed Pad (8x8 mm) |
| Operating Temperature | -40C to +150C (extended -H grade) |
| A/D Converter | 10-bit, up to 11 channels |
| CAN Module | ECAN (CAN 2.0B active) |
| UART | 2x Enhanced USART |
| SPI / I2C | 1x MSSP (SPI or I2C) |
| CCP / ECCP | 2x (Capture/Compare/PWM) |
| Power-Saving Modes | nanoWatt technology, multiple idle/sleep modes |
| Timers | 4x 8/16-bit timers |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC18F4585-H/ML Pin Configuration
| Pin 1 | RC7/RX1/DT1/SDO — EUSART1 async receive / synchronous data |
| Pin 2 | RD4/PSP4/ECCP1/P1A — Parallel slave port / Enhanced CCP1 PWM output |
| Pin 3 | RD5/PSP5/P1B — Parallel slave port / Enhanced CCP1 complementary output |
| Pin 4 | RD6/PSP6/P1C — Parallel slave port / Enhanced CCP1 output |
| Pin 5 | RD7/PSP7/P1D — Parallel slave port / Enhanced CCP1 output |
| Pin 6 | Vss — Ground reference |
| Pin 7 | Vdd — Positive supply (2.0-5.5 V) |
| Pin 8 | RB0/INT0/FLT0 — PORTB bit 0 / external interrupt 0 / ECCP fault input |
| Pin 9 | RB1/INT1 — PORTB bit 1 / external interrupt 1 |
| Pin 10 | RB2/INT2/CANTX — PORTB bit 2 / external interrupt 2 / ECAN transmit |
| Pin 11 | RB3/CANRX — PORTB bit 3 / ECAN receive |
| Pin 12 | NC — Not connected (per datasheet) |
| Pin 13 | NC — Not connected (per datasheet) |
| Pin 14 | NC — Not connected (per datasheet) |
| Pin 15 | NC — Not connected (per datasheet) |
| Pin 16 | NC — Not connected (per datasheet) |
| Pin 17 | NC — Not connected (per datasheet) |
| Pin 18 | RB4/KBI0 — PORTB bit 4 / interrupt-on-change |
| Pin 19 | RB5/KBI1/PGM — PORTB bit 5 / interrupt-on-change / LVP programming |
| Pin 20 | RB6/KBI2/PGC — PORTB bit 6 / interrupt-on-change / ICSP clock |
| Pin 21 | RB7/KBI3/PGD — PORTB bit 7 / interrupt-on-change / ICSP data |
| Pin 22 | Vdd — Positive supply (second Vdd pin) |
| Pin 23 | Vss — Ground (second Vss pin) |
| Pin 24 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / clock input |
| Pin 25 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 |
| Pin 26 | RC2/CCP1/P1A — PORTC bit 2 / CCP1 / Enhanced PWM output |
| Pin 27 | RC3/SCK/SCL — PORTC bit 3 / MSSP SPI clock / I2C clock |
| Pin 28 | RC4/SDI/SDA — PORTC bit 4 / MSSP SPI data in / I2C data |
| Pin 29 | RC5/SDO — PORTC bit 5 / MSSP SPI data out |
| Pin 30 | RC6/TX1/CK1 — EUSART1 async transmit / synchronous clock |
| Pin 31 | RC7/RX1/DT1 — EUSART1 async receive / synchronous data |
| Pin 32 | OSC1/CLKI/RA7 — Crystal oscillator input / external clock / PORTA bit 7 |
| Pin 33 | OSC2/CLKO/RA6 — Crystal oscillator output / clock out / PORTA bit 6 |
| Pin 34 | Vss — Ground (third Vss pin) |
| Pin 35 | RA0/AN0 — PORTA bit 0 / analog input 0 |
| Pin 36 | RA1/AN1 — PORTA bit 1 / analog input 1 |
| Pin 37 | RA2/AN2/Vref- — PORTA bit 2 / analog input 2 / A/D Vref- |
| Pin 38 | RA3/AN3/Vref+ — PORTA bit 3 / analog input 3 / A/D Vref+ |
| Pin 39 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pin 40 | RA5/AN4/SS/HLVDIN — PORTA bit 5 / analog input 4 / MSSP slave select / HLVD input |
| Pin 41 | RE0/RD/AN5 — PORTE bit 0 / parallel port read / analog input 5 |
| Pin 42 | RE1/WR/AN6 — PORTE bit 1 / parallel port write / analog input 6 |
| Pin 43 | RE2/CS/AN7 — PORTE bit 2 / parallel port chip select / analog input 7 |
| Pin 44 | MCLR/VPP/RE3 — Master clear reset / programming voltage / PORTE bit 3 |
Typical Applications
PIC18F4585-H/ML is suitable for 6 applications: Automotive Body & Chassis ECAN Nodes, Industrial CAN-Bus Sensor Aggregation, Building Automation HVAC Controllers, CAN-Connected Medical Device Monitoring, Industrial Robotics Sub-Controller, Smart Grid and Energy Metering.
Automotive Body & Chassis ECAN Nodes
The PIC18F4585-H/ML is well matched to automotive body and chassis ECAN nodes: the on-chip ECAN 2.0B active module handles 1 Mbit/s CAN-FD-adjacent traffic with acceptance filters and masking, while the -H temperature grade sustains +150C operation under the hood. The 48 KB flash accommodates a CANopen or J1939 stack with diagnostic UDS services, and the 10-bit A/D monitors analog sensors like thermistors and pressure transducers. Place the ECAN TX/RX lines behind a TJA1050 or similar high-speed CAN transceiver, and use the internal oscillator plus PLL to free the external crystal for noise-sensitive timing. Power dissipation is dominated by ECAN activity - estimate 30 mA at 25 MHz and 5 V, well within the 44-QFN exposed-pad thermal budget.
Recommended
Industrial CAN-Bus Sensor Aggregation
The PIC18F4585-H/ML aggregates multiple analog and digital sensors onto a single CAN-bus segment in industrial control cabinets. The 10-bit A/D with up to 11 channels handles thermocouple, 4-20 mA, and 0-10 V analog signals after external signal conditioning, while the MSSP port drives an SPI-based ADC for higher-resolution measurements. ECAN filtering reduces host CPU load by only interrupting on relevant identifiers. The -H grade tolerates factory-floor ambient temperatures, and nanoWatt sleep modes drop quiescent current below 1 uA for battery-backed sensor nodes. Total BOM cost stays low because the ECAN peripheral eliminates an external CAN controller IC, and the 44-QFN package fits 36 I/O lines plus dedicated peripheral pins onto a single compact PCB.
Recommended
Building Automation HVAC Controllers
The PIC18F4585-H/ML serves as the central controller in HVAC subsystems where it interfaces with variable-speed fans, damper actuators, and temperature probes. The two Enhanced USART modules handle Modbus RTU to a building management system and a separate local HMI display, while the ECAN port bridges to other HVAC subsystems on the building's CAN backbone. The 25 MHz / 10 MIPS performance runs a real-time control loop at 1 kHz with margin for proportional-integral control math. The 10-bit A/D reads NTC thermistors and current-sense amplifiers for motor feedback. The -H grade tolerates rooftop unit enclosures that exceed +85C in summer sun. nanoWatt sleep modes drop standby draw below 100 uA when the HVAC system idles overnight.
Recommended
CAN-Connected Medical Device Monitoring
The PIC18F4585-H/ML fits low-to-mid complexity medical monitoring peripherals that connect to a central patient monitor over CAN, such as infusion pump status modules, bedside vital-sign hubs, or anesthesia-machine sub-CPUs. The ECAN module's deterministic message handling is required in care environments where late packets can compromise patient safety, and the 10-bit A/D reads battery voltage, sensor calibration values, and touch-panel inputs. The -H grade supports autoclave-tolerant enclosures and warm hospital equipment rooms. Total cost stays under $15 per node, and the 36 I/O leave room for redundant alarm LEDs, audible buzzers, and a serial debug port. The 48 KB flash comfortably fits a CANopen CiA 401 generic I/O profile plus vendor-specific objects.
Recommended
Industrial Robotics Sub-Controller
The PIC18F4585-H/ML acts as a sub-controller on robotic joints and end-effectors, offloading real-time I/O processing from the main motion controller over a CAN bus. Each joint controller uses one ECAN node to report position, current, and temperature back to the central PLC at 1 kHz update rates. The two ECCP modules generate complementary PWM signals for H-bridge motor drivers, while the 10-bit A/D reads current-sense amplifiers for torque feedback. The -H grade is essential near stepper motors and servo amplifiers that exhaust hot air into the joint housing. The 44-QFN package with exposed pad allows tight mounting inside cylindrical joint housings with thermal vias conducting heat to the aluminum chassis.
Recommended
Smart Grid and Energy Metering
The PIC18F4585-H/ML handles measurement and reporting in three-phase smart energy meters, where it aggregates voltage and current samples from external A/D converters over SPI, computes power quantities in firmware, and publishes them over CAN to a data concentrator. The 25 MHz / 10 MIPS performance supports a 4 kHz sample rate for fundamental and harmonic power analysis with a small processing margin. The 10-bit internal A/D serves as a backup for slow-varying signals like temperature and supply voltage monitoring. ECAN's filtering lets the meter ignore unrelated CAN traffic, reducing wakeups on the host. The -H grade handles outdoor meter cabinet temperatures up to +150C in direct sun. nanoWatt sleep modes preserve battery life during outage reporting.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F4585-H/ML — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F4585T-I/ML | PIC18F4585T-E/ML | PIC18F4680-H/ML | PIC18F4580-H/ML | PIC18F4585-I/ML |
|---|---|---|---|---|---|---|
| Package | 44-QFN (8x8 mm) | 44-QFN (8x8 mm) - same | 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 |
| Program Memory (Flash) | 48 KB | 48 KB | 48 KB | 80 KB | 32 KB | 48 KB |
| Operating Temperature | -40C to +150C (-H) | -40C to +85C (-I) | -40C to +125C (-E) | -40C to +150C (-H) | -40C to +150C (-H) | -40C to +85C (-I) |
| ECAN Module | Yes (CAN 2.0B active) | Yes | Yes | Yes | Yes | Yes |
| CPU Speed | 25 MHz / 10 MIPS | 25 MHz / 10 MIPS | 25 MHz / 10 MIPS | 25 MHz / 10 MIPS | 25 MHz / 10 MIPS | 25 MHz / 10 MIPS |
| RAM | 3.25 KB | 3.25 KB | 3.25 KB | 3.25 KB | 3.25 KB | 3.25 KB |
| I/O Pins | 36 | 36 | 36 | 36 | 36 | 36 |
| A/D Converter | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 11 channels |
Key Differentiators
- Extended -H temperature grade to +150C (vs PIC18F4585T-I/ML)
- Doubles flash to 80 KB (vs PIC18F4580-H/ML)
- Same silicon, extended thermal window over -E grade (vs PIC18F4585T-E/ML)
Design Notes
The 44-QFN exposed pad is the primary heat-dissipation path for the PIC18F4585-H/ML. At 25 MHz, 5 V, and full ECAN activity, core current draws ~30 mA, dissipating roughly 150 mW internally. Estimate: P = V * I = 5 V * 0.030 A = 0.15 W. With theta_JA around 30 C/W on a 4-layer 1-oz PCB with thermal vias, junction temperature rise is ~4.5 C above ambient - well within the -H +150C ceiling. A minimal 4x4 thermal via array (0.3 mm drill, 1 mm pitch) connecting the pad to internal ground planes is sufficient.
Keep ECAN TX/RX traces (RB2/RB3 on this package) no longer than 50 mm to the transceiver, and route them as a 100-ohm differential pair with continuous ground reference. Place a 100 nF ceramic decoupling cap within 3 mm of each Vdd pin (the 44-QFN has multiple Vdd/Vss pins), plus a bulk 10 uF tantalum on the main rail. The ICSP pins PGC/PGD/MCLR must be reachable from the programming connector; do not place series resistors above 100 ohm on these signals without consulting the ICSP specification.
Do not configure the internal oscillator and external crystal simultaneously; the configuration bits must select one source. The MCLR pin should have a 10 kohm pull-up to Vdd; leaving it floating causes spurious resets. When using the ECAN module, configure the CAN I/O pins (RB2/CANTX, RB3/CANRX) as digital inputs first before switching to the ECAN peripheral - otherwise the peripheral cannot drive the pins correctly during initialization.
Compliance Information
RoHS and REACH compliant per Microchip product page. -H grade is extended industrial/high-temperature, not AEC-Q100 qualified; for AEC-Q100 automotive, refer to the PIC18F4585-H/PTVAO variant. Lead-free and halogen-free per Microchip environmental documentation.