PIC18F4585-E/PT - 8-bit 40MHz 48KB Flash MCU w/ ECAN | Microchip
料号: PIC18F4585-E/PT ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 1 | $11.78 | $11.78 |
| 10 | $10.6 | $106.00 |
| 100 | $9.43 | $943.00 |
| 500 | $8.49 | $4,245.00 |
| 1,000 | $7.54 | $7,540.00 |
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 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC18F4585-E/PT (相同外形与封装尺寸) ——差异在于 Package, ADC, Operating Temperature, Timers, Core Architecture.
快速对比工具——选择替代料号进行并排对比:
PIC18F4585-I/PT
✅ 直接替换✓ 有现货
$5.73 / 个
查看数据手册 →PIC18F4585T-I/PT
✅ 直接替换✓ 有现货
$5.45 / 个
查看数据手册 →PIC18LF4585-I/PT
✅ 直接替换✓ 有现货
$6.34 / 个
查看数据手册 →PIC18F4580-I/PT
✅ 直接替换📋 参考替代料(不在目录中)
PIC18F4480-I/PT
✅ 直接替换✓ 有现货
$4.85 / 个
查看数据手册 →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.