PIC18F4585-E/P - 8-bit MCU 48KB Flash ECAN 40-PDIP | Microchip
N.º da peça: PIC18F4585-E/P ✓ Ativo| Qtd. | Preço unitário | Total |
|---|---|---|
| 1 | $7.92 | $7,92 |
| 10 | $7.13 | $71,30 |
| 100 | $6.34 | $634,00 |
| 500 | $5.71 | $2.855,00 |
| 1.000 | $5.07 | $5.070,00 |
PIC18F4585-E/P Visão geral
A PIC18 microcontroller is an 8-bit RISC (Reduced Instruction Set Computer) MCU family built around Microchip's Harvard architecture. PIC18 devices sit in the hierarchy: microcontroller -> 8-bit MCU -> embedded controller -> semiconductor. They are widely used in industrial, automotive, and consumer applications that need deterministic performance, low power, and mature development tooling (MPLAB X IDE, XC8 compiler, MPLAB ICD debug probes).
Key features of the PIC18F4585-E/P include 36 general-purpose digital I/O pins, an enhanced CAN bus module (ECAN), a 10-bit ADC with up to 13 input channels, multiple timer modules (Timer0/1/2/3), two USART modules, an MSSP (Master Synchronous Serial Port) for SPI/I2C, nanoWatt power management for low-power operation, and an extended operating temperature range of -40C to +125C thanks to its 'E' (Extended) temperature grade designation. The 40-pin PDIP package supports easy prototyping and through-hole assembly.
Technically, the PIC18F4585 implements a modified Harvard architecture with a 16-bit instruction word and 8-bit data path, executes most instructions in 4 clock cycles, and provides hardware multiply support. Its ECAN peripheral supports CAN 2.0B active with multiple acceptance filters and masks, and the nanoWatt technology reduces quiescent current to microampere levels in sleep modes.
Typical applications include industrial CAN-bus sensor nodes, automotive body and chassis ECUs, building automation gateways, HVAC controllers, and any embedded design that requires deterministic 8-bit processing with on-chip CAN connectivity. Pairing the ECAN module with general-purpose I/O and ADC channels allows a single IC to handle both communication and analog acquisition.
When designing with this part, ensure VDDIFW stays within 4.2V-5.5V and provide proper decoupling near each VDD pin. The 'E' (Extended) temperature grade makes the part suitable for industrial and automotive under-hood environments, but designers should still validate thermal margins in enclosed housings.
This page synthesizes distributor pricing, drop-in PIC18F4585 alternatives, and practical design notes not found in the manufacturer datasheet, including how the part compares against PIC18F4680 and PIC18F458 in the same 40-PDIP pinout.
Alternativas drop-in para PIC18F4585-E/P — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.
Variantes desta série
Modelos da mesma série compatíveis como drop-in com PIC18F4585-E/P (mesmo formato e footprint) — diferindo em Package, Operating Temperature, Mounting Type, Program Memory (Flash), Core Architecture.
Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:
PIC18F4585-I/P
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC18F4680-E/P
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC18F458-E/P
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC18F448-E/P
✅ Drop-In✓ Em estoque
$5.8 / unidade
Ver ficha técnica →PIC18F4525-I/PT
✅ Drop-In✓ Em estoque
$4.18 / unidade
Ver ficha técnica →PIC18F4585-E/P Classificações máximas e características elétricas
| Core Architecture | PIC 8-bit RISC (Harvard) |
| Program Memory (Flash) | 48 KB (24K x 16 words) |
| Data RAM | 3328 bytes |
| Data EEPROM | 1024 bytes |
| Maximum CPU Clock | 40 MHz (10 MIPS) |
| Supply Voltage (VDD) | 4.2 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 10-bit, up to 13 channels |
| CAN Module | ECAN (CAN 2.0B active) |
| Communication Peripherals | 2x USART, MSSP (SPI/I2C) |
| Timers | Timer0/1/2/3 |
| Temperatura de operação | -40C to +125C (Extended 'E' grade) |
| Encapsulamento | 40-pin PDIP (P) |
| Tipo de montagem | Through-Hole |
| Instruction Set | PIC18 enhanced (16-bit opcode, 8-bit data path) |
| Power-Saving Modes | nanoWatt (sleep, idle, doze modes) |
| Status RoHS | Compliant (lead-free) |
| Nível MSL | 1 (not moisture-sensitive for PDIP) |
Configuração de pinos do PIC18F4585-E/P
| Pino 1 | MCLR — Master Clear (reset) input, active low |
| Pino 2 | RA0/AN0 — Digital I/O / Analog input channel 0 |
| Pino 3 | RA1/AN1 — Digital I/O / Analog input channel 1 |
| Pino 4 | RA2/AN2/VREF- — Digital I/O / Analog input 2 / ADC VREF- |
| Pino 5 | RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC VREF+ |
| Pino 6 | RA4/T0CKI — Digital I/O / Timer0 clock input |
| Pino 7 | RA5/AN4/SS — Digital I/O / Analog input 4 / SPI slave select |
| Pino 8 | RE0/RD/AN5 — Digital I/O / Parallel port read control |
| Pino 9 | RE1/WR/AN6 — Digital I/O / Parallel port write control |
| Pino 10 | RE2/CS/AN7 — Digital I/O / Parallel port chip select |
| Pino 11 | VDD — Positive supply voltage |
| Pino 12 | VSS — Ground reference |
| Pino 13 | OSC1/CLKI — Crystal oscillator input / external clock in |
| Pino 14 | OSC2/CLKO — Crystal oscillator output / clock out |
| Pino 15 | RC0/T1OSO/T1CKI — Digital I/O / Timer1 oscillator output or clock in |
| Pino 16 | RC1/T1OSI/CCP2 — Digital I/O / Timer1 oscillator input / CCP2 |
| Pino 17 | RC2/CCP1 — Digital I/O / Capture/Compare/PWM 1 |
| Pino 18 | RC3/SCK/SCL — Digital I/O / SPI clock / I2C clock |
| Pino 19 | RD0/C1IN+/C2IN+ — Digital I/O / Comparator inputs |
| Pino 20 | RD1/C1IN-/C2IN- — Digital I/O / Comparator inputs |
| Pino 21 | RD2/C1OUT — Digital I/O / Comparator 1 output |
| Pino 22 | RD3/C2OUT — Digital I/O / Comparator 2 output |
| Pino 23 | RC4/SDI/SDA — Digital I/O / SPI data in / I2C data |
| Pino 24 | RC5/SDO — Digital I/O / SPI data out |
| Pino 25 | RC6/TX/CK — Digital I/O / USART TX / clock |
| Pino 26 | RC7/RX/DT — Digital I/O / USART RX / data |
| Pino 27 | RD4/ECANRX — Digital I/O / ECAN RX |
| Pino 28 | RD5/ECANTX — Digital I/O / ECAN TX |
| Pino 29 | RD6 — Digital I/O |
| Pino 30 | RD7 — Digital I/O |
| Pino 31 | VSS — Ground reference |
| Pino 32 | VDD — Positive supply voltage |
| Pino 33 | RB0/INT0 — Digital I/O / External interrupt 0 |
| Pino 34 | RB1/INT1 — Digital I/O / External interrupt 1 |
| Pino 35 | RB2/INT2 — Digital I/O / External interrupt 2 |
| Pino 36 | RB3/INT3/CCP2 — Digital I/O / External interrupt 3 / CCP2 |
| Pino 37 | RB4 — Digital I/O |
| Pino 38 | RB5 — Digital I/O |
| Pino 39 | RB6/PGC — Digital I/O / ICSP clock (ICD) |
| Pino 40 | RB7/PGD — Digital I/O / ICSP data (ICD) |
Aplicações típicas
PIC18F4585-E/P é adequado para 7 aplicaçãos: Industrial CAN-bus Sensor Nodes, Automotive Body and Chassis ECUs, Building Automation Gateways, HVAC Climate Controllers, Industrial Pumps and Motor Drives (Auxiliary Logic), Medical Device Control Boards, Consumer Appliance Controllers.
Industrial CAN-bus Sensor Nodes
The PIC18F4585-E/P fits industrial CAN-bus sensor nodes because its integrated ECAN module implements CAN 2.0B active with hardware acceptance filters and masks, eliminating any external CAN controller IC. With 48 KB Flash (24K x 16), 3328 bytes RAM, and a 10-bit ADC with up to 13 input channels, the device can sample multiple analog sensors (temperature, pressure, flow) and publish CAN frames at 1 Mbps on a CANopen or DeviceNet bus. The 'E' (Extended) temperature grade of -40C to +125C allows deployment in factory-floor enclosures where ambient temperatures exceed 70C. Power-supply requirement of 4.2V to 5.5V aligns with 24V industrial rails post-regulated to 5V, and nanoWatt power-saving modes keep quiescent current in microampere ranges during sleep.
Recomendado
Automotive Body and Chassis ECUs
The PIC18F4585-E/P serves automotive body and chassis ECUs such as HVAC controllers, seat controllers, lighting modules, and door modules. Its ECAN peripheral enables seamless integration with a vehicle CAN bus backbone, and the 10-bit ADC with 13 channels provides ample analog input for sensor monitoring (NTC temperature, potentiometer position, current shunt). At -40C to +125C the part meets under-hood and cabin operating requirements, while the 40-PDIP package supports through-hole assembly favored in automotive aftermarket ECU designs. Compared with bare CAN controllers plus a separate MCU, the integrated solution cuts BOM cost, simplifies PCB layout, and frees firmware cycles because the ECAN DMA-style buffer management handles bus traffic without CPU intervention.
Recomendado
Building Automation Gateways
The PIC18F4585-E/P can serve as a building automation gateway node bridging sensor networks and HVAC controllers. The two USART modules allow simultaneous RS-485 to BACnet or Modbus RTU master communication and a secondary debug or modem link, while the MSSP peripheral supports SPI or I2C sensor expansion. With 48 KB Flash the part hosts a full BACnet/Modbus stack plus application code, and the 10 MIPS execution speed at 40 MHz keeps deterministic response times for control loops. The 'E' temperature rating supports rooftop equipment enclosures that hit 100C+ in summer sun. The 40-PDIP form factor also enables hand-solderable prototype boards used by integration installers and field engineers.
Recomendado
HVAC Climate Controllers
The PIC18F4585-E/P is a fit for HVAC climate controllers that drive fans, valves, and triac-controlled loads. The 10-bit ADC samples thermistor temperature sensors and airflow feedback, while the timer modules generate zero-cross detection for triac phase-angle control. The 48 KB Flash supports a real-time scheduling algorithm with adaptive temperature setpoints, and 1024 bytes of EEPROM stores user-set parameters (setpoint, fan speed, schedule) across power cycles. The 'E' (Extended) grade handles outdoor unit electronics that range from -40C winter to +70C summer, all in a 40-PDIP package that simplifies field service and module replacement. Compared with 32-bit ARM Cortex alternatives, the PIC18 keeps BOM cost low for cost-sensitive HVAC SKUs.
Recomendado
Industrial Pumps and Motor Drives (Auxiliary Logic)
The PIC18F4585-E/P works as auxiliary control logic for industrial pumps, variable-frequency drives, and motor starters. The ECAN peripheral reports pump status (speed, current, fault codes) to a centralized PLC or SCADA system, while general-purpose I/O pins handle discrete signals (start/stop, run/perm fault, low-water cutoff). The 10-bit ADC reads 4-20 mA loopback from motor current sensors, and the timers generate PWM for soft-start ramp profiles. At -40C to +125C the device tolerates cabinet temperatures next to motor drives, and the 40-PDIP package allows retrofit assembly into legacy pump-control boards. Designers can rely on Microchip's MPLAB XC8 compiler and Code Configurator to reduce firmware development time.
Recomendado
Medical Device Control Boards
The PIC18F4585-E/P fits Class I/II medical device control boards such as laboratory analyzers, infusion pump monitors, and patient warming systems. The ECAN module provides a reliable communications backbone in networked medical carts, while the 10-bit ADC ensures precise analog measurement of sensor inputs (pressure, flow, temperature). The 1024-byte EEPROM stores non-volatile calibration constants and audit logs critical for medical compliance. The Extended temperature grade supports devices sterilized via autoclave-style thermal cycling or used in cold-chain logistics. Compared with 16-bit DSP alternatives, the PIC18 lowers BOM cost while delivering deterministic interrupt response - critical for safety-critical medical subsystems that require IEC 60601-1 system-level compliance.
Recomendado
Consumer Appliance Controllers
The PIC18F4585-E/P serves consumer appliance controllers (washers, dishwashers, induction cooktops) where CAN-bus connectivity between sub-boards simplifies harness routing and enables diagnostic feedback to a main controller. The 48 KB Flash stores the full appliance state machine plus user interface logic, and the nanoWatt technology keeps standby power well under 0.5 W to meet ENERGY STAR requirements. The Extended temperature grade handles appliance compartments that reach 90C+ during operation, and the 40-PDIP package fits legacy through-hole PCB designs used by global appliance OEMs. Compared with an 8-bit 8051 alternative, the PIC18's C-compiler support and modern peripherals shorten firmware development.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para PIC18F4585-E/P — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | PIC18F4585-I/P | PIC18F4680-E/P | PIC18F458-E/P | PIC18F448-E/P | PIC18F4525-I/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 40-PDIP | 40-PDIP - same | 40-PDIP - same | 40-PDIP - same | 40-PDIP - same | 40-PDIP - same |
| Program Memory (Flash) | 48 KB | 48 KB | 64 KB | 32 KB | 16 KB | 48 KB |
| Data RAM | 3328 bytes | 3328 bytes | 3328 bytes | 1536 bytes | 768 bytes | 3328 bytes |
| Data EEPROM | 1024 bytes | 1024 bytes | 1024 bytes | 256 bytes | 256 bytes | 1024 bytes |
| Maximum Clock | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz |
| ECAN Module | Yes (ECAN) | Yes (ECAN) | Yes (ECAN) | Yes (ECAN) | Yes (ECAN) | No (CAN removed) |
| Operating Temperature | -40C to +125C (E) | -40C to +85C (I) | -40C to +125C (E) | -40C to +125C (E) | -40C to +125C (E) | -40C to +85C (I) |
| I/O Pins | 36 | 36 | 36 | 36 | 36 | 36 |
Principais diferenciais
- Extended -40C to +125C operating temperature grade (vs PIC18F4585-I/P)
- On-chip ECAN peripheral eliminates external CAN controller IC (vs PIC18F4525-I/P (no ECAN))
- Larger data EEPROM for non-volatile parameter storage (vs PIC18F458-E/P)
Notas de projeto
The PIC18F4585-E/P operates from 4.2V to 5.5V on VDD, with two VDD pins (11 and 32) and two VSS pins (12 and 31) on the 40-PDIP package. Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pair, plus a bulk 10 uF tantalum or ceramic on the supply rail. The device can be powered from a 5V LDO fed by a 12V or 24V system rail (e.g., LM7805 or Microchip MCP1700 for low-quiescent). Never allow VDD to exceed 7V absolute maximum or fall below 4.2V during operation, since Flash corruption and ADC reference errors occur outside this window.
Although the 40-PDIP package has higher thermal resistance than surface-mount variants, the PIC18F4585-E/P typically dissipates well under 0.5 W in normal use, so a heatsink is not required. The 'E' (Extended) temperature grade ensures operation from -40C to +125C junction temperature. In enclosed housings near power devices, validate the junction rise by measuring ambient under worst-case operating conditions. Avoid placing the MCU directly next to heatsinked MOSFETs or transformers; allow at least 10 mm clearance for convection cooling. The nanoWatt power-saving modes reduce current to microampere ranges in Sleep, helping thermal margins in sealed enclosures.
Route the ICSP signals (RB6/PGC and RB7/PGD) with short, parallel traces kept away from switching signals like PWM outputs or ECANTX. Add 4.7 kohm pull-ups on SDA/SCL if I2C peripherals are present, and place the MCP2551 (or equivalent) CAN transceiver within 25 mm of the MCU's ECANRX/ECANTX pins to keep stub lengths short. Use a ground plane on the bottom layer to provide low-impedance return paths for the high-frequency ECAN signals; this is essential for EMC compliance. Place the decoupling caps on the same layer as the IC with via-to-ground connections under the VSS pins. Keep the crystal (or resonator) traces short and surrounded by ground pour for oscillator stability.
Common pitfalls include: (1) Forgetting that MCLR must be pulled high via a 10 kohm resistor for normal operation; an external reset supervisor is recommended for noise-sensitive applications. (2) Failing to configure the CONFIG bits (oscillator selection, watchdog timer, brown-out detect, low-voltage programming) before Flash programming - leaving them blank can lock the part in an unprogrammed state. (3) Using the analog pins as digital I/O without first disabling the ADC to avoid parasitic current draw. (4) Forgetting the AVSS/AVDD supply pins (RE0/RE1/RE2 region) must have their analog supply connected even if ADC is unused. (5) Programming the Flash write/erase sequence without the proper unlock keys, which can permanently lock the device.
The ECAN bus requires impedance-controlled routing (typically 120 ohm differential) with termination resistors at each end of the bus. Keep the CAN traces short and matched in length; any mismatch above 5 mm can cause reflections that disrupt CAN frames at 1 Mbps. Place a common-mode choke and TVS diode array (e.g., PESD1CAN) near the CAN connector for ESD and transient protection. For the 10-bit ADC, place a small RC filter (100 ohm + 100 nF) on analog inputs to reduce switching noise pickup; sample-and-hold timing must follow the datasheet Acquisition Time guidelines per source impedance.
Informações de conformidade
RoHS and REACH compliant per Microchip product page. AEC-Q100 status not explicitly stated; the 'E' temperature grade refers to operating temperature, not automotive qualification. For AEC-Q100-qualified PIC18 CAN parts, designers should review PIC18F2585/4585 Q1 variants or PIC18F66K80 family.