PIC18LF4585-I/PT - 8-bit 40MHz 48KB Flash MCU w/ECAN | Microchip
MPN: PIC18LF4585-I/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.42 | $9.42 |
| 10 | $8.52 | $85.20 |
| 100 | $7.78 | $778.00 |
| 500 | $7.05 | $3,525.00 |
| 1,000 | $6.34 | $6,340.00 |
PIC18LF4585-I/PT Overview
An 8-bit microcontroller is a single-chip computing engine built around an 8-bit data path, where the CPU, program memory (Flash/ROM), data RAM, and a curated set of on-chip peripherals (timers, ADC, communication ports, comparators) are integrated into one package. 8-bit MCUs sit in the broader taxonomy of microcontrollers -> embedded controllers -> digital ICs -> semiconductors. Within that hierarchy, PIC18F/LF devices target mid-range embedded applications requiring deterministic interrupt response, low BOM cost, and a robust instruction set with C-friendly constructs - they bridge the gap between simple 8-bit MCUs and higher-performance 16/32-bit cores.
The PIC18LF4585-I/PT key features include the integrated ECAN controller (CAN 2.0B compliant with hardware filtering), 1KB of on-chip EEPROM for data parameter storage, a 10 MHz internal oscillator plus external clock options, low-power sleep modes drawing microamp-level currents, and an industrial -40C to +85C operating range. The wide 2.0V to 5.5V supply (denoted by the LF prefix) makes it directly suited to battery-backed and regulated 3.3V designs.
The PIC18F/LF4585 architecture is built on the standard PIC18 RISC core with 16-bit instructions and an 8-bit data path, providing 77 instructions, an 8-level hardware stack, and 32 vectored interrupts. On-chip peripherals are mapped through a SFR-based architecture and reach the pins through carefully assigned I/O multiplexers - this enables flexible pinout remapping while keeping the 44-pin TQFP package footprint stable across variants.
Typical applications include industrial CAN bus nodes (factory automation, motor control), automotive body and comfort ECUs (LIN-to-CAN gateways), medical instrumentation requiring reliable data EEPROM logging, and consumer products needing USB/CAN/UART multi-protocol bridging. The LF (low-voltage) variant is especially well-suited to battery-powered or 3.3V-only designs.
When designing with this device, choose the PIC18LF version if your system runs at 2.0V-3.3V; choose the standard PIC18F version for 4.2V-5.5V systems. Always include a 100 nF decoupling capacitor close to each VDD/VSS pair and route the analog VDD/VSS through a ferrite bead if the ADC and digital switching coexist on the same board.
This page consolidates distributor pricing, drop-in alternatives, application reference circuits, and practical design notes not found in the manufacturer datasheet alone.
Drop-in alternatives for PIC18LF4585-I/PT — 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 PIC18LF4585-I/PT (same form factor and footprint) — differing in Package, ADC, Timers, Core Architecture, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F4585-I/PT
✅ Drop-In✓ In Stock
$5.73 / Unit
View Datasheet →PIC18LF4580-I/PT
✅ Drop-In✓ In Stock
$5.65 / Unit
View Datasheet →PIC18LF448-I/PT
✅ Drop-In✓ In Stock
$2.95 / Unit
View Datasheet →PIC18LF4480-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF4523-I/PT
✅ Drop-In✓ In Stock
$5 / Unit
View Datasheet →PIC18F4580-I/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18LF4585-I/PT Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC 8-bit RISC |
| Core Sub-Family | PIC18F/LF4585 |
| Maximum CPU Frequency | 40 MHz |
| Instruction Throughput | 10 MIPS |
| Program Memory (Flash) | 48 KB (24K x 16) |
| RAM | 3,328 bytes |
| EEPROM | 1 KB |
| Supply Voltage (VDD) | 2.0 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 11 channels x 10-bit |
| Timers | 5 x 16-bit |
| ECAN Module | Yes (CAN 2.0B) |
| Serial Interfaces | USART, MSSP (SPI/I2C) |
| Package | 44-pin TQFP (10x10 mm) |
| Mounting Type | Surface Mount |
| Operating Temperature | -40 C to +85 C (Industrial) |
| I/O Drive Strength | 25 mA source/sink |
| Analog Comparators | 2 |
| RoHS Status | Compliant |
| MSL Level | 3 |
PIC18LF4585-I/PT Pin Configuration
| Pin 1 | RC1/T1OSI/CCP2 — I/O port C1 / Timer1 oscillator input / CCP2 PWM output |
| Pin 2 | RC2/CCP1 — I/O port C2 / CCP1 PWM output |
| Pin 3 | RC3/SCK/SCL — I/O port C3 / MSSP SPI SCK / I2C SCL |
| Pin 4 | RC4/SDI/SDA — I/O port C4 / MSSP SPI SDI / I2C SDA |
| Pin 5 | RC5/SDO — I/O port C5 / MSSP SPI SDO |
| Pin 6 | RC6/TX/CK — I/O port C6 / USART TX / USART clock |
| Pin 7 | RC7/RX/DT — I/O port C7 / USART RX / USART data |
| Pin 8 | RE0/RD/AN5 — I/O port E0 / parallel slave port read / ADC5 |
| Pin 9 | RE1/WR/AN6 — I/O port E1 / parallel slave port write / ADC6 |
| Pin 10 | RE2/CS/AN7 — I/O port E2 / parallel slave port CS / ADC7 |
| Pin 11 | VDD — Positive supply (2.0V-5.5V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKI/RA7 — External oscillator input / external clock / I/O port A7 |
| Pin 14 | OSC2/CLKO/RA6 — External oscillator output / clock output / I/O port A6 |
| Pin 15 | RC0/T1OSO/T1CKI — I/O port C0 / Timer1 oscillator output / Timer1 clock input |
| Pin 16 | INT0/RB0 — External interrupt 0 / I/O port B0 |
| Pin 17 | INT1/RB1 — External interrupt 1 / I/O port B1 |
| Pin 18 | INT2/RB2 — External interrupt 2 / I/O port B2 |
| Pin 19 | INT3/RB3 — External interrupt 3 / I/O port B3 |
| Pin 20 | RB4 — I/O port B4 (interrupt-on-change) |
| Pin 21 | RB5/PGM — I/O port B5 / LVP programming |
| Pin 22 | RB6/PGC — I/O port B6 / ICSP clock |
| Pin 23 | RB7/PGD — I/O port B7 / ICSP data |
| Pin 24 | NC — Not connected (per datasheet pinout) |
| Pin 25 | AVDD — Analog positive supply |
| Pin 26 | AVSS — Analog ground reference |
| Pin 27 | AN3/RA3 — ADC channel 3 / I/O port A3 |
| Pin 28 | AN2/RA2 — ADC channel 2 / I/O port A2 |
| Pin 29 | AN1/RA1 — ADC channel 1 / I/O port A1 |
| Pin 30 | AN0/RA0 — ADC channel 0 / I/O port A0 |
| Pin 31 | VREF-/CVREF/AN4/RA4 — ADC negative reference / comparator reference output / ADC channel 4 / I/O port A4 |
| Pin 32 | VREF+/RA5 — ADC positive reference / I/O port A5 |
| Pin 33 | C1OUT/RD0 — Comparator 1 output / I/O port D0 |
| Pin 34 | C2OUT/RD1 — Comparator 2 output / I/O port D1 |
| Pin 35 | RD2/PSP2 — I/O port D2 / parallel slave port bit 2 |
| Pin 36 | RD3/PSP3 — I/O port D3 / parallel slave port bit 3 |
| Pin 37 | RD4/PSP4 — I/O port D4 / parallel slave port bit 4 |
| Pin 38 | RD5/PSP5 — I/O port D5 / parallel slave port bit 5 |
| Pin 39 | RD6/PSP6 — I/O port D6 / parallel slave port bit 6 |
| Pin 40 | RD7/PSP7 — I/O port D7 / parallel slave port bit 7 |
| Pin 41 | C1TX — ECAN module transmit output |
| Pin 42 | C1RX — ECAN module receive input |
| Pin 43 | MCLR/VPP — Master clear (reset, active low) / programming voltage |
| Pin 44 | VDD — Positive supply (2.0V-5.5V) |
Typical Applications
PIC18LF4585-I/PT is suitable for 6 applications: Industrial CAN Bus Node, Automotive Body & Comfort ECU, Battery-Powered Data Logger, Medical Instrumentation, Building Automation HVAC Controller, Motor Control Commutation Board.
Industrial CAN Bus Node
The PIC18LF4585-I/PT is an excellent fit for industrial CAN nodes (CANopen / DeviceNet) thanks to its integrated ECAN 2.0B controller with hardware acceptance filtering. With 48 KB Flash and 3,328 bytes RAM the device holds the full CANopen stack plus application code without external memory, while the 11-channel 10-bit ADC reads multiple analog sensors directly. Operating from 2.0 V to 5.5 V lets the same hardware interface to 3.3 V sensors and 5 V industrial transceivers; the wide -40 C to +85 C range covers factory floor temperature. Real-world consideration: at 1 Mbps CAN bit rate, the ECAN interrupt rate can reach several kHz - ensure no single CAN ISR execution path exceeds the worst-case interrupt latency budget. Compared to CAN-less PIC18F4580, the LF4585 saves an external MCP2515 CAN controller (~$1.50 BOM reduction).
Recommended
Automotive Body & Comfort ECU
The PIC18LF4585-I/PT is widely used in automotive body and comfort ECUs such as door modules, seat controllers, and HVAC slave nodes. The ECAN module connects to the vehicle CAN bus, while 36 GPIO pins drive relays, LEDs, and switches with 25 mA source/sink capability - eliminating the need for external buffers. The 1 KB on-chip EEPROM is ideal for non-volatile storage of seat position memory, calibration values, and diagnostic trouble codes (DTCs). The 40 MHz / 10 MIPS core handles LIN-to-CAN gateway translation comfortably. Design note: this is the industrial -40 C to +85 C grade; for under-hood environments above 85 C, the PIC18F4585 automotive variant (AEC-Q100 qualified) is required. Compared to PIC18LF4580, the integrated ECAN eliminates an external MCP2515 chip.
Recommended
Battery-Powered Data Logger
The PIC18LF4585-I/PT excels in battery-powered data loggers because of its low-voltage 2.0 V operation, microamp sleep currents, and 1 KB EEPROM for non-volatile parameter storage. Running from 2x AA cells (3.0 V nominal), the MCU can spend most of its time in sleep mode, waking periodically to sample sensors via the 11-channel 10-bit ADC and write logs to external EEPROM or FRAM. The 48 KB Flash accommodates sophisticated power-management and compression algorithms. Real-world consideration: at 2.0 V VDD the maximum FOSC derates to ~25 MHz; below 2.5 V the ECAN module is unavailable. Compared to PIC18LF4580, the LF4585's wider VDD margin extends usable battery lifetime by an estimated 15-20 percent.
Recommended
Medical Instrumentation
The PIC18LF4585-I/PT is suitable for low-risk medical instruments such as handheld patient monitors, infusion pump controllers, and laboratory analyzers requiring reliable CAN bus connectivity and analog signal capture. The 11-channel 10-bit ADC provides adequate resolution for thermistor, pressure, and flow sensor inputs, while the ECAN interface links to a bedside monitoring CAN bus for central logging. The 1 KB EEPROM stores calibration coefficients and audit logs. Operational advantage: deterministic PIC18 interrupt latency (200 ns instruction cycle at 40 MHz) ensures predictable response to sensor events critical for IEC 60601-1-8 alarm-tone timing. Compared to higher-end 32-bit MCUs, the LF4585 keeps BOM cost under $10 USD in production volumes.
Recommended
Building Automation HVAC Controller
The PIC18LF4585-I/PT is a strong choice for building automation HVAC controllers distributed across a CANopen network. The ECAN 2.0B module handles up to 1 Mbps peer-to-peer communication, while 36 high-drive GPIO pins drive triacs, relays, and 7-segment displays directly. The 11-channel 10-bit ADC reads thermistor temperature sensors, humidity probes, and airflow pressure. The industrial -40 C to +85 C range covers plenum-rated enclosure environments, and the 48 KB Flash accommodates the full BACnet/CANopen application stack. Compared to PIC18LF4580, the integrated ECAN reduces BOM cost by approximately $1.50 (MCP2515 saving) per HVAC controller node.
Recommended
Motor Control Commutation Board
The PIC18LF4585-I/PT is widely used in BLDC and brushed DC motor commutation boards where CAN bus feedback to a master controller is needed. Five 16-bit timers provide PWM generation for 3-phase motor drives, while the ECAN module streams rotor position and current telemetry back to the system controller at up to 1 Mbps. The 11-channel 10-bit ADC reads phase currents via shunt amplifiers and position feedback from Hall sensors. The 48 KB Flash holds full FOC (field-oriented control) or trapezoidal commutation algorithms. Real-world consideration: at 40 MHz the LF4585 handles commutation at speeds up to approximately 60,000 RPM with a 4-pole motor; faster motors may require higher-end dsPIC33 devices.
Recommended
Recommended Products Summary
Engineering reference data for PIC18LF4585-I/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F4585-I/PT | PIC18LF4580-I/PT | PIC18LF448-I/PT | PIC18LF4480-I/PT | PIC18LF4523-I/PT | PIC18F4580-I/PT |
|---|---|---|---|---|---|---|---|
| Package | 44-pin TQFP (10x10 mm) | 44-pin TQFP (10x10 mm) - same | 44-pin TQFP (10x10 mm) - same | 44-pin TQFP (10x10 mm) - same | 44-pin TQFP (10x10 mm) - same | 44-pin TQFP (10x10 mm) - same | 44-pin TQFP (10x10 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Program Memory | 48 KB | 48 KB | 32 KB | 32 KB | 16 KB | 32 KB | 32 KB |
| RAM | 3,328 bytes | 3,328 bytes | 1,536 bytes | 1,536 bytes | 768 bytes | 1,536 bytes | 1,536 bytes |
| ECAN Module | Yes (CAN 2.0B) | Yes (CAN 2.0B) | No | Yes (CAN 2.0B) | No | No | No |
| Operating Voltage | 2.0 V to 5.5 V | 4.2 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 2.0 V to 5.5 V | 4.2 V to 5.5 V |
| Max CPU Frequency | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz |
| I/O Pins | 36 | 36 | 36 | 36 | 36 | 36 | 36 |
| Operating Temperature | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) |
Key Differentiators
- Integrated ECAN 2.0B controller with hardware filtering (vs PIC18LF4580-I/PT)
- Wide 2.0 V to 5.5 V VDD range covers 3.3V battery and 5V rails (vs PIC18F4585-I/PT)
- 48 KB Flash is largest in PIC18LF458x family (vs PIC18LF448-I/PT)
Design Notes
Estimated: at 40 MHz clock with all peripherals active the PIC18LF4585-I/PT typically draws 15-22 mA from VDD. Place a 100 nF ceramic decoupling capacitor within 5 mm of each VDD pin (pins 11 and 44) and a bulk 10 uF tantalum or ceramic capacitor at the MCU side of the regulator. For battery-powered designs using the 2.0 V minimum VDD, route the VDD plane directly to the battery output through a low-DCR ferrite bead to suppress switching noise.
Use a 4-layer PCB stackup with continuous ground plane beneath the TQFP. Route the AVSS pin (pin 26) as a separate analog ground island tied to VSS at a single point near the MCU; this prevents digital switching currents from corrupting ADC measurements. Place the ECAN C1TX/C1RX traces (pins 41/42) as a matched-length differential pair (within 5 mm length matching) and keep them isolated from switching traces by at least 3 mm. Keep MCLR (pin 43) trace short to avoid spurious resets.
Do not exceed 5.5 V on VDD - permanent damage will occur. Ensure MCLR has a 10 kohm pull-up to VDD for normal operation (the /PT suffix means industrial -40 to +85 C, NOT extended); the LF prefix denotes low-voltage 2.0-5.5 V, do not confuse with the 5V-only PIC18F variant. When migrating code from PIC18F4585, the LF4585 requires no changes other than ensuring VDD stays above 2.0 V - the instruction set, SFR map, and pinout are identical.
Estimated: the ECAN module's TX output slew rate is configurable; for 1 Mbps CAN, use the high-speed slew rate setting. Add a 120 ohm termination resistor at each end of the CAN bus differential pair, not at every node. Place the CAN transceiver (e.g. MCP2551) within 50 mm of the MCU C1TX/C1RX pins. For long CAN bus cables (>10 m), add TVS protection such as PESD1CAN near the bus connector.
Compliance Information
RoHS and REACH compliant per Microchip environmental declaration. Industrial grade -40C to +85C (I-temp suffix). Not AEC-Q100 qualified - for automotive applications, use the PIC18F4585-I/PT automotive-graded variant. Lead-free matte-tin plating on 44-pin TQFP.