PIC18F6585-E/L - 48KB Flash 8-bit MCU 52 I/O PLCC-68 | Microchip
MPN: PIC18F6585-E/L ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $8.1 | $8.10 |
| 10 | $7.42 | $74.20 |
| 100 | $6.63 | $663.00 |
| 500 | $5.94 | $2,970.00 |
| 1,000 | $5.25 | $5,250.00 |
PIC18F6585-E/L Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, program memory (Flash/ROM), data memory (RAM), non-volatile storage (EEPROM), and a rich set of peripherals on a single die. PIC18F devices belong to the enhanced PIC18 family and offer hardware multiplier, 16-bit instructions, and C-friendly architecture. They sit in the microcontroller taxonomy as follows: MCU -> 8-bit MCU -> PIC MCU -> PIC18F family -> PIC18F6x8x series, and are widely used in cost-sensitive embedded designs where deterministic interrupt response and a robust peripheral set are required.
Key features include 10 MIPS performance from the 40 MHz oscillator, two USART modules, MSSP I2C/SPI, two CCP/ECCP modules, a 12-bit 8-channel ADC, two 8-bit timers plus three 16-bit timers, a 16-bit comparator pair, and dual analog comparators with programmable voltage reference. The integrated CAN 2.0B module makes this part distinctive for industrial networking.
Architecturally, the PIC18F6585 uses a Harvard RISC design with separate program and data buses, a hardware 8x8 multiplier, and a C-callable interrupt controller supporting priority levels. Its 75 instructions are mostly single-cycle, and the 16-bit instruction width simplifies C compiler code generation while keeping the deterministic timing favored in real-time control loops.
Typical applications include industrial CAN node controllers, automotive body and HVAC modules, building automation gateways, motor control front-ends, and instrument panels. Designers select this MCU when a CAN node with on-chip protocol handling, ample code space, and a 5 V-tolerant GPIO budget is required.
When designing with the PIC18F6585-E/L, place VDD/VSS decoupling capacitors within 3 mm of every supply pin, route the 40 MHz crystal traces symmetrically with grounded guard rings, and ensure CANH/CANL are routed as a 120 Ω-impedance differential pair to the MCP2551 or MCP2561 transceiver.
This page consolidates distributor inventory, parametric drop-in alternatives, and practical design notes not found in the manufacturer datasheet, including a side-by-side comparison with PIC18F6680 and PIC18F8585 family members to help engineers migrate code and PCB layouts.
Drop-in alternatives for PIC18F6585-E/L — 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 PIC18F6585-E/L (same form factor and footprint) — differing in ADC, Data EEPROM, Operating Temperature, Digital I/O Pins, Mounting Type.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F6680-E/L
✅ Drop-In✓ In Stock
$5.72 / Unit
View Datasheet →PIC18F6585-I/L
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F8585-E/L
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F6585-E/L Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18F 8-bit RISC |
| Program Memory (Flash) | 48 KB (24K x 16) |
| Data RAM | 3,328 bytes |
| Data EEPROM | 1,024 bytes |
| Maximum Clock Speed | 40 MHz |
| Instruction Throughput | 10 MIPS |
| Supply Voltage | 4.2 V to 5.5 V |
| I/O Pins | 52 |
| ADC | 10-bit, 12 channels |
| Timers | Two 8-bit, three 16-bit |
| Communication | 2x USART, MSSP (I2C/SPI), CAN 2.0B |
| CCP Modules | 2x CCP, 1x ECCP |
| Operating Temperature | -40 °C to +125 °C (Extended, -E suffix) |
| Package | 68-pin PLCC (J-Lead) |
| Mounting Type | Surface Mount |
| MSL Level | 3 (168 hours) |
| RoHS Status | Compliant |
| Lead-Free | Yes |
PIC18F6585-E/L Pin Configuration
| Pin 1 | MCLR — Master Clear (Reset) input, active low |
| Pin 2 | RA0/AN0 — PORTA bit 0 / Analog input 0 |
| Pin 3 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| Pin 4 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / VREF- |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / VREF+ |
| Pin 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pin 7 | RA5/AN4/SS — PORTA bit 5 / Analog input 4 / SPI Slave Select |
| Pin 8 | RE0/RD/AN5 — PORTE bit 0 / Read control for parallel slave port / Analog input 5 |
| Pin 9 | RE1/WR/AN6 — PORTE bit 1 / Write control for PSP / Analog input 6 |
| Pin 10 | RE2/CS/AN7 — PORTE bit 2 / Chip select for PSP / Analog input 7 |
| Pin 11 | VDD — Positive supply for digital logic |
| Pin 12 | VSS — Ground reference for digital logic |
| Pin 13 | OSC1/CLKIN — Oscillator crystal input or external clock in |
| Pin 14 | OSC2/CLKOUT — Oscillator crystal output / clock out |
| Pin 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator out / Timer1 clock in |
| Pin 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator in / CCP2 |
| Pin 17 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| Pin 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pin 19 | RD0/PSP0/C1IN+ — PORTD bit 0 / PSP data 0 / Comparator 1 non-inverting input |
| Pin 20 | RD1/PSP1/C1IN- — PORTD bit 1 / PSP data 1 / Comparator 1 inverting input |
| Pin 21 | RD2/PSP2/C2IN+ — PORTD bit 2 / PSP data 2 / Comparator 2 non-inverting input |
| Pin 22 | RD3/PSP3/C2IN- — PORTD bit 3 / PSP data 3 / Comparator 2 inverting input |
| Pin 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pin 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pin 25 | RC6/TX/CK — PORTC bit 6 / USART TX / USART synchronous clock |
| Pin 26 | RC7/RX/DT — PORTC bit 7 / USART RX / USART synchronous data |
| Pin 27 | RD4/PSP4/ECCP1 — PORTD bit 4 / PSP data 4 / ECCP1 PWM output |
| Pin 28 | RD5/PSP5 — PORTD bit 5 / PSP data 5 |
| Pin 29 | RD6/PSP6 — PORTD bit 6 / PSP data 6 |
| Pin 30 | RD7/PSP7 — PORTD bit 7 / PSP data 7 |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply for digital logic |
| Pin 33 | RB0/INT0 — PORTB bit 0 / External interrupt 0 |
| Pin 34 | RB1/INT1 — PORTB bit 1 / External interrupt 1 |
| Pin 35 | RB2/INT2/CANTX — PORTB bit 2 / External interrupt 2 / CAN bus transmit |
| Pin 36 | RB3/CANRX — PORTB bit 3 / CAN bus receive |
| Pin 37 | RB4 — PORTB bit 4 |
| Pin 38 | RB5 — PORTB bit 5 |
| Pin 39 | RB6/PGC — PORTB bit 6 / In-circuit debugger clock |
| Pin 40 | RB7/PGD — PORTB bit 7 / In-circuit debugger data |
| Pin 41 | AVSS — Analog ground reference |
| Pin 42 | AVDD — Analog positive supply |
| Pin 43 | RF0 — PORTF bit 0 |
| Pin 44 | RF1 — PORTF bit 1 |
| Pin 45 | RF2 — PORTF bit 2 |
| Pin 46 | RF3 — PORTF bit 3 |
| Pin 47 | RF4 — PORTF bit 4 |
| Pin 48 | RF5 — PORTF bit 5 |
| Pin 49 | RF6 — PORTF bit 6 |
| Pin 50 | RF7 — PORTF bit 7 |
| Pin 51 | RG0 — PORTG bit 0 |
| Pin 52 | RG1 — PORTG bit 1 |
| Pin 53 | RG2 — PORTG bit 2 |
| Pin 54 | RG3 — PORTG bit 3 |
| Pin 55 | RG4 — PORTG bit 4 |
| Pin 56 | RG5 — PORTG bit 5 |
| Pin 57 | RA6 — PORTA bit 6 |
| Pin 58 | RA7 — PORTA bit 7 |
| Pin 59 | RJ0 — PORTJ bit 0 |
| Pin 60 | RJ1 — PORTJ bit 1 |
| Pin 61 | RJ2 — PORTJ bit 2 |
| Pin 62 | RJ3 — PORTJ bit 3 |
| Pin 63 | RJ4 — PORTJ bit 4 |
| Pin 64 | RJ5 — PORTJ bit 5 |
| Pin 65 | RJ6 — PORTJ bit 6 |
| Pin 66 | RJ7 — PORTJ bit 7 |
| Pin 67 | RH0 — PORTH bit 0 |
| Pin 68 | RH1 — PORTH bit 1 |
Typical Applications
PIC18F6585-E/L is suitable for 6 applications: Industrial CAN Node Controller, Automotive Body and HVAC Module, Building Automation Gateway, Industrial Motor Control Front-End, Instrument Panel and HMI Controller, Security and Access Control Panel.
Industrial CAN Node Controller
The PIC18F6585-E/L is purpose-built for industrial CAN nodes thanks to its integrated CAN 2.0B controller, 48 KB of Flash for protocol stacks like CANopen or DeviceNet, and 52 I/O for sensor aggregation. Its hardware acceptance filters reduce firmware overhead when running a CANopen slave stack, and the 10 MIPS throughput comfortably handles 1 Mbit/s bus traffic with headroom for application code. The 4.2 V to 5.5 V supply range aligns with industrial 24 V rails stepped down to 5 V, while the -40 °C to +125 °C extended grade supports outdoor cabinets and machine shops. Designers typically pair it with an MCP2551 or MCP2561 transceiver, route CANH/CANL as a 120 Ω differential pair, and terminate both ends to meet ISO 11898.
Recommended
Automotive Body and HVAC Module
The -E extended temperature grade and on-chip CAN make the PIC18F6585-E/L a strong fit for automotive body and HVAC controllers operating at 12 V nominal with load-dump transients. Its 52 I/O handle HVAC damper actuators, blower motor PWM control via the ECCP module, and multiplexed switch inputs, while the 10-bit 12-channel ADC reads temperature sensors and pressure transducers. The 40 MHz core supports a real-time HVAC control loop in single-cycle instructions, and the 48 KB Flash accommodates a CAN-based body control stack. Designers commonly add a TJA1050 or MCP2561 CAN transceiver, a TVS diode for load-dump, and an LDO such as the MCP1790 for the 5 V rail.
Recommended
Building Automation Gateway
The PIC18F6585-E/L is a strong building automation gateway MCU because it bridges CAN-based HVAC or elevator nodes to BACnet MS/TP or Modbus RTU via the on-chip USART and MSSP. The 48 KB Flash accommodates a complete BACnet stack, scheduling logic, and I/O handling, while 3,328 bytes of RAM provide buffer space for incoming telegrams. The 52 I/O integrate digital inputs from limit switches and outputs to relay drivers, and the 12-channel ADC reads analog sensors such as temperature and humidity. The extended -40 °C to +125 °C grade is critical for rooftop equipment, and the 5 V operation aligns with industrial control cabinets powered by 24 V DIN-rail supplies.
Recommended
Industrial Motor Control Front-End
The PIC18F6585-E/L serves as a robust motor control front-end for low-voltage BLDC or stepper drives thanks to its 16-bit timers, ECCP module with hardware PWM, and 52 I/O for Hall sensors and FET drivers. The 10 MIPS throughput executes field-oriented control loops at moderate PWM rates, while the 10-bit ADC samples phase currents and back-EMF for sensorless commutation. The CAN peripheral reports motor status to a master PLC in industrial networks, and the -E grade supports high-ambient factory enclosures. Pair the PIC18F6585-E/L with an IR2104 or FAN7888 gate driver and an MCP2551 CAN transceiver for a complete CAN-connected motor drive.
Recommended
Instrument Panel and HMI Controller
The PIC18F6585-E/L is widely used in instrument panels where 52 I/O drive LED matrices, segment LCDs, and keypads while the CAN interface links to vehicle or machine data. Its 48 KB Flash holds graphic tables, character sets, and fault logging, and 3,328 bytes of RAM buffer incoming CAN frames for screen refresh. The MSSP drives SPI-based TFT displays or I2C-based GPIO expanders, and the ECCP module generates the backlight PWM. Designers combine this MCU with an MCP2515 external CAN controller if more CAN channels are needed, and pair it with a CAT93C46 EEPROM for nonvolatile user settings.
Recommended
Security and Access Control Panel
The PIC18F6585-E/L fits access control panels because its CAN bus links multiple door readers and electric locks while the 52 I/O read keypads, card readers, and reed switches, and drive relays for door strikes. The 48 KB Flash stores credential tables, event logs, and the CANopen stack, and 3,328 bytes of RAM buffer real-time events. The -E temperature grade supports outdoor gate controllers in extreme climates, and the 5 V operation accepts standard 12 V door-power supplies via a simple LDO. Designers add an MCP2551 for CAN communication, a MAX485 for RS-485 backup, and a 32 kHz crystal for timekeeping.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F6585-E/L — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F6680-E/L | PIC18F6585-I/L | PIC18F8585-E/L |
|---|---|---|---|---|
| Package | 68-PLCC (J-Lead) | 68-PLCC (J-Lead) - same | 68-PLCC (J-Lead) - same | 68-PLCC (J-Lead) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 48 KB | 96 KB | 48 KB | 48 KB |
| RAM | 3,328 bytes | 3,840 bytes | 3,328 bytes | 3,328 bytes |
| Max Clock | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS | 40 MHz / 10 MIPS |
| I/O Pins | 52 | 52 | 52 | 52 |
| CAN Module | CAN 2.0B | CAN 2.0B | CAN 2.0B | CAN 2.0B |
| Operating Temperature | -40 to +125 °C (Extended) | -40 to +125 °C | -40 to +85 °C (Industrial) | -40 to +125 °C |
Key Differentiators
- Doubles Flash memory at same pin footprint (vs PIC18F6585-I/L)
- Extended temperature grade for industrial/automotive (vs PIC18F6585-I/L)
- On-chip CAN 2.0B hardware controller (vs PIC18F4585-I/P)
Design Notes
Place a 100 nF decoupling capacitor within 3 mm of every VDD/VSS pin pair on the 68-pin PLCC, and add a 10 uF bulk capacitor on the board supply rail. Separate analog AVDD/AVSS filtering with a ferrite bead and 100 nF + 10 uF cap is mandatory for ADC accuracy. Brown-out reset (BOR) must be enabled in configuration bits to ensure predictable startup in industrial 24 V bus environments.
Route the 40 MHz crystal traces (OSC1/OSC2) as short, symmetric traces guarded by grounded copper pour on both sides. Keep the crystal within 5 mm of the MCU, avoid routing signal traces under it, and place load capacitors (per crystal manufacturer, typically 15-33 pF) directly between OSC1/OSC2 and ground. For CAN bus, route CANH/CANL as a 120 Ω differential pair with characteristic impedance matched to the transceiver; keep stubs shorter than 3 mm.
Estimated: at ambient +25 °C with the MCU drawing 75 mA at 5 V (375 mW) the 68-PLCC theta_JA is roughly 45-50 C/W, giving a junction rise of about 17-19 °C. Always verify with a thermocouple in your enclosure; the -40 to +125 °C operating range is the silicon rating, not a guaranteed continuous ambient, and high-density PLCC boards in sealed cabinets can easily exceed 85 °C without forced airflow.
Do not leave the MCLR pin floating - tie it to VDD through a 10 kΩ pull-up and provide a manual reset button to ground. Forgetting this is the most common reason prototype PIC18F designs fail to start. Configure the watchdog timer (WDT) with a postscaler appropriate to your control loop; an unconfigured WDT with too-short timeout will reset the MCU inside legitimate interrupt routines.
Compliance Information
RoHS compliant per Microchip product page; not AEC-Q100 qualified. PIC18F6585-E/L is the extended temperature grade (-40 to +125 °C) but does not carry automotive Q-100 certification - use PIC18F6680-I/PT or PIC18F46K80 with Q-100 suffix for automotive.