PIC18F4585-E/PT - 8-bit 40MHz 48KB Flash MCU w/ ECAN | Microchip
MPN: PIC18F4585-E/PT ✓ פעילPIC18F4585-E/PT סקירה
A microcontroller (MCU) is a single-chip computer containing a CPU core, program and data memory, and programmable peripheral interfaces. Within the embedded hierarchy, the PIC18 family occupies the mid-range 8-bit tier between baseline PIC10/12/16 parts and the 16-bit PIC24/dsPIC families, offering C-friendly architecture, hardware multipliers, and CAN peripherals for networked embedded designs. The PIC18F4585 belongs to the PIC18F4580/4585 family of Enhanced Flash Microcontrollers with ECAN, sharing the 28/40/44-pin footprint options.
Key features include 40MHz maximum clock (10MIPS), 10-bit ADC with up to 11 channels, hardware ECAN 2.0B controller, two capture/compare/PWM modules, an 8-bit parallel port, and nanoWatt technology for sleep currents under 100nA. The integrated ECAN module implements CAN 2.0A/B with acceptance filters, bit timing compliant with ISO 11898, and DeviceNet/ CANopen-friendly bit rate presets - features rarely bundled in 8-bit microcontrollers at this price point.
The architecture combines a 16-bit instruction word with an 8-bit data path, an 8x8 hardware multiplier, and a 31-level hardware stack. The ECAN controller handles bus arbitration, error detection (CRC, ack, form, stuff, bit), and acceptance masking autonomously from the CPU, freeing MIPS for application code. The nanoWatt technology provides multiple idle/sleep modes with on-the-fly oscillator switching.
Typical applications include automotive CAN nodes (body controllers, instrument clusters, sensor networks), industrial control (Modbus/CANopen gateways, PLC I/O expansion, motor drives), and consumer/home appliances with networking requirements. The 36 I/O pins and dual serial interfaces make it suitable for keypad scanners, graphical LCD controllers, and small protocol bridges.
When designing, ensure the supply voltage stays within 4.2V to 5.5V, place a 100nF decoupling capacitor within 5mm of each VDD/VSS pair, and use the ICSP programming header with a 10k pull-up on MCLR. The ECAN bus requires a TJA1050 or MCP2551 transceiver between the MCU and the physical CAN bus, with 120 ohm termination resistors at each bus end.
This page synthesizes distributor pricing, parametric drop-in alternatives, ECAN bus design considerations, and practical firmware notes not consolidated in the manufacturer datasheet - useful for engineers selecting parts during BOM freeze.
חלופות תחליף ישיר עבור PIC18F4585-E/PT — אותו מארז, תואם פין-לפין. חלקים במארז שונה הדורשים עיבוד מחדש של ה-PCB אינם נכללים.
וריאנטים בסדרה זו
דגמים מאותה סדרה התואמים Drop-in עם PIC18F4585-E/PT (אותו גורם צורה וטביעת רגל) — שונים ב Package, ADC, Operating Temperature, Timers, Core Architecture.
PIC18F4585-I/PT
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18F4585T-I/PT
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18LF4585-I/PT
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18F4580-I/PT
✅ Drop-In📋 חלופה להתייחסות (לא בקטלוג)
PIC18F4480-I/PT
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18F4585-E/PT דירוגים מרביים ומאפיינים חשמליים
| Family | PIC18F |
| Core | PIC 8-bit RISC |
| Program Memory Size | 48 KB (24K x 16) Flash |
| RAM Size | 3328 bytes |
| EEPROM Size | 1024 bytes |
| Maximum Clock Speed | 40 MHz |
| MIPS | 10 MIPS |
| מתח אספקה פעיל | 4.2 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 10-bit, up to 11 channels |
| Communication Interfaces | ECAN 2.0B, I2C, SPI, USART (2 serial ports) |
| Timers | 1 x 8-bit, 3 x 16-bit |
| CCP/ECCP Modules | 2 CCP |
| מארז | TQFP-44 (PT) 10x10 mm |
| סוג הרכבה | Surface Mount |
| טמפרטורת פעולה | -40C to +125C (Extended, "E" grade) |
| סטטוס RoHS | Compliant |
| Lead-Free | Yes |
| Program Memory Type | Flash |
תצורת פינים של PIC18F4585-E/PT
| פין 1 | MCLR — Master Clear (Reset, active low) |
| פין 2 | RA0/AN0 — PORTA bit 0 / Analog input 0 |
| פין 3 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| פין 4 | RA2/AN2/VREF- — PORTA bit 2 / Analog input 2 / VREF- |
| פין 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / VREF+ |
| פין 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| פין 7 | RA5/AN4/SS — PORTA bit 5 / Analog input 4 / SPI Slave Select |
| פין 8 | RE0/RD/AN5 — PORTE bit 0 / Parallel-port RD / Analog input 5 |
| פין 9 | RE1/WR/AN6 — PORTE bit 1 / Parallel-port WR / Analog input 6 |
| פין 10 | RE2/CS/AN7 — PORTE bit 2 / Parallel-port CS / Analog input 7 |
| פין 11 | VDD — Positive supply voltage (4.2V to 5.5V) |
| פין 12 | VSS — Ground reference |
| פין 13 | OSC1/CLKI — Oscillator crystal input / external clock input |
| פין 14 | OSC2/CLKO — Oscillator crystal output / clock output |
| פין 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator out / Timer1 clock in |
| פין 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator in / CCP2 |
| פין 17 | RC2/CCP1 — PORTC bit 2 / CCP1 (PWM/capture/compare) |
| פין 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| פין 19 | RD0/C1IN+/PSP0 — PORTD bit 0 / Comparator1 in+ / Parallel Slave Port 0 |
| פין 20 | RD1/C1IN-/PSP1 — PORTD bit 1 / Comparator1 in- / PSP1 |
| פין 21 | RD2/C2IN+/PSP2 — PORTD bit 2 / Comparator2 in+ / PSP2 |
| פין 22 | RD3/C2IN-/PSP3 — PORTD bit 3 / Comparator2 in- / PSP3 |
| פין 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| פין 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| פין 25 | RC6/TX/CK — PORTC bit 6 / USART TX / USART clock |
| פין 26 | RC7/RX/DT — PORTC bit 7 / USART RX / USART data |
| פין 27 | RD4/ECANRX/PSP4 — PORTD bit 4 / ECAN receive / PSP4 |
| פין 28 | RD5/ECANTX/PSP5 — PORTD bit 5 / ECAN transmit / PSP5 |
| פין 29 | RD6/TX2/PSP6 — PORTD bit 6 / USART2 TX / PSP6 |
| פין 30 | RD7/RX2/PSP7 — PORTD bit 7 / USART2 RX / PSP7 |
| פין 31 | VSS — Ground reference |
| פין 32 | VDD — Positive supply voltage |
| פין 33 | RB0/INT0 — PORTB bit 0 / External interrupt 0 |
| פין 34 | RB1/INT1 — PORTB bit 1 / External interrupt 1 |
| פין 35 | RB2/INT2 — PORTB bit 2 / External interrupt 2 |
| פין 36 | RB3/INT3/ECCP2 — PORTB bit 3 / External interrupt 3 / Enhanced CCP2 |
| פין 37 | RB4/KBI0 — PORTB bit 4 / Keyboard interrupt 0 |
| פין 38 | RB5/KBI1 — PORTB bit 5 / Keyboard interrupt 1 |
| פין 39 | RB6/KBI2/PGC — PORTB bit 6 / KBI2 / ICSP clock |
| פין 40 | RB7/KBI3/PGD — PORTB bit 7 / KBI3 / ICSP data |
| פין 41 | NC — Not connected (per datasheet) |
| פין 42 | NC — Not connected (per datasheet) |
| פין 43 | NC — Not connected (per datasheet) |
| פין 44 | NC — Not connected (per datasheet) |
יישומים טיפוסיים
PIC18F4585-E/PT מתאים עבור 6 יישוםs: Automotive CAN Node (Body Controller), Industrial CANopen / DeviceNet Slave, Modbus RTU Gateway to CAN Bridge, Sensor Hub with CAN Reporting, HVAC Control Board with CAN Backbone, Small Graphic LCD / Keypad Controller.
Automotive CAN Node (Body Controller)
The PIC18F4585-E/PT is well-suited for automotive body controllers because of its integrated hardware ECAN 2.0B controller, 48KB Flash for CAN stack plus application logic, and -40C to +125C extended temperature qualification. Placed behind an MCP2551 or TJA1050 CAN transceiver, it can run CANopen, SAE J1939, or DeviceNet protocols at up to 1 Mbit/s. Its 36 GPIO pins handle window/lock/light actuators and switch inputs without external I/O expanders, while the dual USART supports LIN or K-line diagnostics simultaneously.
מומלץ
Industrial CANopen / DeviceNet Slave
The PIC18F4585-E/PT's ECAN 2.0B module with acceptance filters and mask registers makes it ideal for CANopen or DeviceNet slave nodes on industrial machinery. The 48KB Flash holds the CIA 401/402/406 CANopen device profile libraries plus the application code, while the 3328-byte SRAM is sufficient for PDO/TPDO buffering. Its 10-bit ADC handles analog sensor inputs (pressure, temperature, flow), and the dual CCP/PWM modules drive proportional valves or motor control loops. Pair with an MCP2551 transceiver and 120-ohm terminated twisted-pair cable.
מומלץ
Modbus RTU Gateway to CAN Bridge
The PIC18F4585-E/PT's combination of dual USART (one for RS-485 Modbus RTU) plus hardware ECAN enables compact protocol bridges between industrial Modbus networks and CAN-based motor drives or sensors. The 48KB Flash accommodates both Modbus and CANopen protocol stacks, while the 40MHz CPU at 10 MIPS handles polling rates up to 200 Hz without CPU saturation. The 36 GPIO pins drive status LEDs, DIP switches for address selection, and digital outputs for relay control - no external logic needed.
מומלץ
Sensor Hub with CAN Reporting
The PIC18F4585-E/PT's 11-channel 10-bit ADC plus hardware ECAN make it a natural fit for distributed sensor hubs reporting pressure, temperature, flow, and level data over a CAN bus. The 1024-byte EEPROM stores calibration coefficients persistently across power cycles, while the 3328-byte SRAM buffers up to 64 CAN frames before transmission. The nanoWatt technology allows the MCU to drop below 100nA in sleep mode between sensor reads, enabling battery-backed or energy-harvested sensor nodes.
מומלץ
HVAC Control Board with CAN Backbone
The PIC18F4585-E/PT integrates USART for Modbus or BACnet MS-TP plus ECAN for inter-board communication, ideal for commercial HVAC controllers. Its 36 GPIO drive TRIAC outputs for compressor, fan, and damper actuators while monitoring thermistor inputs via the 10-bit ADC. The 48KB Flash holds the BACnet/Modbus object dictionaries plus the scheduling logic, and the -40C to +125C grade handles unconditioned rooftop or basement installations.
מומלץ
Small Graphic LCD / Keypad Controller
The PIC18F4585-E/PT's 36 GPIO and dual serial interfaces let it drive small graphic LCDs (e.g., 128x64) over SPI while polling matrix keypads, useful in industrial operator panels, scales, and bench instruments. The 48KB Flash fits graphics libraries and menu code; the 3328-byte SRAM is enough for frame buffers on smaller displays. Hardware ECAN provides connectivity to the host PLC, while the nanoWatt sleep modes drop panel current to microamps when idle.
מומלץ
סיכום מוצרים מומלצים
נתוני עזר הנדסיים עבור PIC18F4585-E/PT — השוואה, הנחיות תכנון ומידע על תאימות.
מדריך בחירה
השוואה עם חלופות
| פרמטר | מוצר זה | PIC18F4585-I/PT | PIC18F4585T-I/PT | PIC18LF4585-I/PT | PIC18F4580-I/PT | PIC18F4480-I/PT |
|---|---|---|---|---|---|---|
| Package | TQFP-44 (PT) | TQFP-44 (PT) - same | TQFP-44 (PT) - same | TQFP-44 (PT) - same | TQFP-44 (PT) - same | TQFP-44 (PT) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 48 KB | 48 KB | 48 KB | 48 KB | 32 KB | 16 KB |
| RAM | 3328 bytes | 3328 bytes | 3328 bytes | 3328 bytes | 1536 bytes | 768 bytes |
| EEPROM | 1024 bytes | 1024 bytes | 1024 bytes | 1024 bytes | 256 bytes | 256 bytes |
| ECAN 2.0B | Yes | Yes | Yes | Yes | Yes | No |
| Max Clock | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) |
| Operating Voltage | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 2.0 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V |
| Temperature Range | -40C to +125C (E) | -40C to +85C (I) | -40C to +85C (I) | -40C to +85C (I) | -40C to +85C (I) | -40C to +85C (I) |
מבדילים עיקריים
- Hardware ECAN 2.0B controller integrated (לעומתPIC18F4480-I/PT)
- Extended -40C to +125C temperature grade (E suffix) (לעומתPIC18F4585-I/PT)
- 3x larger Flash and 2x larger RAM than PIC18F4580 (לעומתPIC18F4580-I/PT)
הערות תכנון
Decoupling: place a 100nF ceramic capacitor within 5mm of each VDD/VSS pin pair (pins 11/12 and 31/32 on TQFP-44). Add a bulk 10uF tantalum or aluminum polymer capacitor at the board power entry. For ADC accuracy, decouple AVdd separately if used; the PIC18F4585 shares AVdd with VDD but allows VREF+/VREF- on RA3/RA2 for precision references. The nanoWatt sleep current drops below 100nA in Sleep mode with WDT and Timer1 disabled, but rises to microamps if the ECAN module is left enabled - always disable unused peripherals before Sleep.
TQFP-44 layout: use a 4-layer PCB with a continuous ground plane under the package to keep EMI low and provide thermal spreading. The 10mm x 10mm TQFP has a 0.8mm pitch and 0.45mm lead width - follow IPC-7351 nominal land patterns with 0.30mm pad width and 0.20mm toe extension. Route ECANTX/ECANRX (RD4/RD5) as a matched 100-ohm differential pair to the MCP2551 CAN transceiver, keeping traces < 50mm to avoid signal integrity issues. MCLR requires a 10k pull-up to VDD plus a 100nF cap to ground for ICSP programming robustness.
ECAN bus termination: install 120 ohm resistors at each END of the CAN bus (NOT at every node) to suppress ringing. Use shielded twisted pair or unshielded twisted pair per ISO 11898. Common pitfalls: (1) forgetting to configure the ECAN I/O pins (TRISDbits.TRISD5=0 for TX, TRISDbits.TRISD4=1 for RX), (2) leaving CANTX floating during reset (it goes to recessive and the bus appears idle), (3) not enabling the ECAN module in the CONFIG1H fuse, and (4) using the wrong oscillator mode - the ECAN module requires the PLL or an external 4x clock for 1 Mbit/s operation.
Oscillator design: at 40MHz, the HS oscillator mode with a fundamental-cut crystal (e.g., 10MHz) plus the 4x PLL is recommended for low EMI. Place the crystal within 10mm of OSC1/OSC2 (pins 13/14), with the load capacitors (typically 15-33pF) grounded to a quiet ground island. For noisy environments, switch to the EC oscillator mode with an external clock driver. The ADC analog inputs (AN0-AN7) require the digital I/O on those pins to be configured as inputs (TRISx=1) and the analog mode bit (PCFGx) cleared to avoid digital switching noise coupling into the ADC sample.
מידע על תאימות
RoHS and REACH compliant per Microchip product page. Not AEC-Q100 qualified; for AEC-Q100 automotive certification, review Microchip's PIC18F-K-series automotive-grade parts. Lead-free (Pb-free) reflow profile per JEDEC J-STD-020.