PIC18F4680-H/P - 8-bit MCU, 64KB Flash, ECAN, PDIP-40 | Microchip
MPN: PIC18F4680-H/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.95 | $9.95 |
| 10 | $9.2 | $92.00 |
| 100 | $8.4 | $840.00 |
| 500 | $7.55 | $3,775.00 |
| 1,000 | $6.95 | $6,950.00 |
PIC18F4680-H/P Overview
What is a PIC18 8-bit microcontroller? A PIC18F-series MCU is a Harvard-architecture RISC microcontroller from Microchip, belonging to the broader PIC microcontroller family within the 8-bit microcontrollers category. It executes one instruction per clock cycle (four clocks per instruction) and uses separate program and data buses, which lets the CPU fetch the next instruction while reading data. PIC18 devices add 16-bit instructions, a hardware multiplier, and a linear program/data memory map, making them suitable for embedded control, motor drive, and CAN-connected automotive/industrial networks where deterministic real-time response is required.
Key features of the PIC18F4680-H/P include 64 KB (32K x 16) of self-programmable Flash, 3328 bytes of data SRAM, 1024 bytes of EEPROM, an ECAN controller compliant with CAN 2.0B (up to 1 Mbps), two enhanced USART modules, two MSSP (SPI/I2C) peripherals, a 10-bit ADC with up to 11 channels, and nanoWatt power management for low-current sleep states. Three 16-bit timers/counters plus a watchdog timer and hardware ECCON-protected Flash access are also integrated.
The device is built on Microchip's enhanced flash process and uses the standard PIC18 instruction set, which simplifies migration across the family. The integrated ECAN module supports DeviceNet, CANopen, and J1939-style networks with hardware filtering, freeing the CPU from bit-banging the CAN protocol. Combined with 25 MIPS throughput and 64 KB code space, this enables gateways, sensor nodes, and motion-control peripherals to run full protocol stacks alongside application logic.
Typical applications include CAN-connected automotive body and chassis ECUs, industrial sensor hubs and motor-control peripherals, building-automation gateways, and IEC 61131-3-free programmable logic controllers. The wide 4.2 V to 5.5 V range and -40 °C to +150 °C operating envelope also make the device usable in solar inverters, oil/gas downhole telemetry, and heavy-equipment instrumentation.
When designing with this MCU, allocate decoupling per datasheet guidelines (typically 100 nF plus 10 uF bulk) close to VDD/AVDD pins, and connect the ECAN TX/RX pins through a CAN transceiver such as the MCP2551 or MCP2561 - the ECAN module does not include bus-side drivers. Use MPLAB XC8 or the legacy C18 compiler for firmware development with MPLAB X IDE and a PICkit 5 or ICD 5 programmer.
This page synthesizes distributor pricing, drop-in alternative MPNs, application notes, and design considerations not bundled in the manufacturer datasheet itself, giving procurement and firmware engineers a one-stop reference.
Drop-in alternatives for PIC18F4680-H/P — 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 PIC18F4680-H/P (same form factor and footprint) — differing in Operating Temperature, Package, Mounting Type, ADC, Program Memory (Flash).
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F4680-I/P
✅ Drop-In✓ In Stock
$5.78 / Unit
View Datasheet →PIC18F4680-E/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4685-I/P
✅ Drop-In✓ In Stock
$5.4 / Unit
View Datasheet →PIC18F4585-I/PT
✅ Drop-In✓ In Stock
$5.73 / Unit
View Datasheet →PIC18F4480-I/P
✅ Drop-In✓ In Stock
$6.62 / Unit
View Datasheet →PIC18F4680-H/P Maximum Ratings & Electrical Characteristics
| Family | PIC18F |
| Core | PIC18 8-bit RISC |
| Program Memory (Flash) | 64 KB (32K x 16) |
| Data RAM | 3328 bytes |
| Data EEPROM | 1024 bytes |
| Maximum Clock Frequency | 40 MHz |
| CPU Speed (MIPS) | 25 MIPS at 5 V |
| Operating Supply Voltage | 4.2 V to 5.5 V |
| Operating Temperature | -40 C to +150 C |
| Number of I/O Pins | 36 |
| ADC | 10-bit, up to 11 channels |
| CAN Module | ECAN (CAN 2.0B) |
| UART | 2x EUSART |
| SPI / I2C | 2x MSSP (SPI / I2C) |
| Timers | 3x 16-bit + WDT |
| Package | PDIP-40 (0.600 in / 15.24 mm) |
| Mounting Type | Through Hole |
| Packaging | Tube |
| Instruction Set | PIC18 enhanced 16-bit instructions |
PIC18F4680-H/P Pin Configuration
| Pin 1 | MCLR — Master Clear (reset) input, programming voltage entry |
| 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 / ADC VREF- |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog input 3 / ADC 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 — PORTE bit 0 / CAN read signal |
| Pin 9 | RE1/WR — PORTE bit 1 / CAN write signal |
| Pin 10 | RE2/CS — PORTE bit 2 / CAN chip select |
| Pin 11 | VDD — Positive power supply (4.2 V - 5.5 V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKI — Crystal oscillator input / external clock input |
| Pin 14 | OSC2/CLKO — Crystal oscillator output / clock output |
| Pin 15 | RC0/T1OSO/T13CKI — PORTC bit 0 / Timer1 oscillator output / Timer1/3 clock |
| Pin 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 |
| Pin 17 | RC2/CCP1 — PORTC bit 2 / Capture/Compare/PWM 1 |
| Pin 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pin 19 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pin 20 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pin 21 | RC6/TX/CK — PORTC bit 6 / EUSART TX / clock |
| Pin 22 | RC7/RX/DT — PORTC bit 7 / EUSART RX / data |
| Pin 23 | RB0/INT0 — PORTB bit 0 / external interrupt 0 |
| Pin 24 | RB1/INT1 — PORTB bit 1 / external interrupt 1 |
| Pin 25 | RB2/INT2 — PORTB bit 2 / external interrupt 2 |
| Pin 26 | RB3/CCP2 — PORTB bit 3 / Capture/Compare/PWM 2 |
| Pin 27 | RB4 — PORTB bit 4 |
| Pin 28 | RB5 — PORTB bit 5 |
| Pin 29 | RB6/PGC — PORTB bit 6 / ICSP clock |
| Pin 30 | RB7/PGD — PORTB bit 7 / ICSP data |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive power supply (4.2 V - 5.5 V) |
| Pin 33 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| Pin 34 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| Pin 35 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| Pin 36 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| Pin 37 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| Pin 38 | RD5/PSP5/CANTX — PORTD bit 5 / PSP bit 5 / ECAN TX |
| Pin 39 | RD6/PSP6/CANRX — PORTD bit 6 / PSP bit 6 / ECAN RX |
| Pin 40 | RD7/PSP7 — PORTD bit 7 / Parallel Slave Port bit 7 |
Typical Applications
PIC18F4680-H/P is suitable for 7 applications: Automotive CAN Body/Chassis ECUs, Industrial Sensor Hubs with CAN Bus, Building Automation Gateways, Motor Control Peripherals, Solar Inverter Monitoring, Oil & Gas Downhole Telemetry, Programmable Logic Controllers (PLCs).
Automotive CAN Body/Chassis ECUs
The PIC18F4680-H/P is a strong fit for automotive body and chassis ECUs because its integrated ECAN 2.0B controller hardware-handles standard frames at up to 1 Mbps, freeing the 25 MIPS CPU for diagnostics and actuation logic. With 64 KB of Flash the device can host a J1939 or CANopen stack plus application firmware without external program memory. The -40 to +150 C temperature envelope suits under-hood mounting where ambient temperatures exceed 85 C. Use the PIC18F4680-H/P with an MCP2561 CAN transceiver between the CANTX/CANRX pins and the bus; the example CAN API from MPLAB Code Configurator accelerates bring-up.
Recommended
Industrial Sensor Hubs with CAN Bus
In industrial sensor-hub applications the PIC18F4680-H/P aggregates analog and digital sensor data onto a CAN-bus trunk using its ECAN controller and 10-bit ADC (up to 11 channels). The 3328-byte SRAM buffer accommodates sampled sensor frames before CAN transmission, while the 36 digital I/Os handle limit switches and indicator LEDs. The 4.2 to 5.5 V supply aligns with 24 V industrial backplanes regulated down to 5 V, and the high-temperature grade tolerates cabinet interior temperatures up to +150 C. Pair with the MCP2561 transceiver and isolated 5 V DC-DC such as the TMV0505S for robust factory-floor communication.
Recommended
Building Automation Gateways
Building-automation gateways often bridge BACnet, Modbus, and proprietary CAN-based fieldbus networks, and the PIC18F4680-H/P supports this with its dual EUSARTs (one for RS-485 Modbus, one for debug), two MSSP peripherals for SPI sensors or I2C EEPROM expansion, and ECAN for the CAN-bus trunk. The 64 KB Flash accommodates full BACnet application layers and HTTP/Modbus-over-TCP gateway firmware. The wide 4.2 to 5.5 V supply simplifies integration with both 5 V and 3.3 V sensor subsystems using a single regulator. Industrial-grade noise immunity and 150 C tolerance extend service life in rooftop plant rooms.
Recommended
Motor Control Peripherals
The PIC18F4680-H/P serves as the supervisory MCU in motor-control peripherals where deterministic CAN feedback to a central inverter controller is required. Its three 16-bit timers drive PWM supervision, the 10-bit ADC samples motor currents, and ECAN reports torque/speed back to the master controller at 1 Mbps. The 150 C junction rating supports integration near the inverter power stage where ambient temperatures climb during peak torque operation. Using MPLAB X with the motor-control code configurator, designers can spin up sensorless FOC firmware on the same PIC18F4680-H/P silicon.
Recommended
Solar Inverter Monitoring
Solar-inverter monitoring boards benefit from the PIC18F4680-H/P because its 10-bit ADC multiplexes string voltages, currents, and temperatures onto a CAN link that feeds the inverter's master DSP. The 64 KB Flash stores MPPT calibration tables and fault history, while the 1024-byte EEPROM preserves configuration across power cycles. The 4.2 to 5.5 V operating range simplifies co-existence with 5 V gate-drive supplies, and the -40 to +150 C window tolerates the rooftop thermal envelope under full solar load. The integrated ECAN module scales easily to multi-string installations.
Recommended
Oil & Gas Downhole Telemetry
Downhole telemetry tools operating at extreme ambient temperatures (up to 150 C) are a sweet spot for the PIC18F4680-H/P. Its ECAN module lets engineers implement robust downhole communication buses such as CAN-based mud-pulse telemetry, while its 3328-byte SRAM buffers measurement samples between transmissions. The 5 V supply and 25 MIPS throughput support real-time pressure/temperature calculation, and the high-temperature grade matches the operating envelope of borehole instrumentation rated to 175 C Class. Use the PIC18F4680-H/P with a high-temperature CAN isolator for the tool string.
Recommended
Programmable Logic Controllers (PLCs)
Small-footprint PLCs use the PIC18F4680-H/P as their scan engine because the integrated ECAN controller, dual EUSART for RS-485, and dual MSSP for digital I/O expansion fit the typical PLC peripheral set without an external communication ASIC. The 64 KB Flash holds IEC 61131-3 runtime plus ladder-logic application code, and the 36 digital I/Os directly drive low-side relay drivers. The -40 to +150 C temperature rating supports DIN-rail cabinet-free installations such as solar combiner boxes and outdoor junction enclosures. Combined with the MPLAB Code Configurator, the PIC18F4680-H/P enables fast PLC firmware bring-up.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F4680-H/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F4680-I/P | PIC18F4680-E/P | PIC18F4685-I/P | PIC18F4585-I/P | PIC18F4480-I/P |
|---|---|---|---|---|---|---|
| Package | PDIP-40 (0.600 in) | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 64 KB | 64 KB | 64 KB | 96 KB | 48 KB | 32 KB |
| RAM | 3328 bytes | 3328 bytes | 3328 bytes | 3328 bytes | 3328 bytes | 1636 bytes |
| Operating Temperature | -40 to +150 C (H grade) | -40 to +85 C (I grade) | -40 to +125 C (E grade) | -40 to +85 C (I grade) | -40 to +85 C (I grade) | -40 to +85 C (I grade) |
| CAN Module | ECAN (CAN 2.0B) | ECAN (CAN 2.0B) | ECAN (CAN 2.0B) | ECAN (CAN 2.0B) | ECAN (CAN 2.0B) | ECAN (CAN 2.0B) |
| Maximum Clock Frequency | 40 MHz (25 MIPS) | 40 MHz (25 MIPS) | 40 MHz (25 MIPS) | 40 MHz (25 MIPS) | 40 MHz (25 MIPS) | 40 MHz (25 MIPS) |
| ADC | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 8 channels | 10-bit, 11 channels |
| Operating Voltage | 4.2 to 5.5 V | 4.2 to 5.5 V | 4.2 to 5.5 V | 4.2 to 5.5 V | 4.2 to 5.5 V | 4.2 to 5.5 V |
| I/O Pins | 36 | 36 | 36 | 36 | 36 | 36 |
Key Differentiators
- Highest temperature grade in the 4680 family (vs PIC18F4680-I/P)
- Twice the code space of the PIC18F4585 (vs PIC18F4585-I/P)
- Doubled RAM and Flash versus the PIC18F4480 (vs PIC18F4480-I/P)
Design Notes
Place a 100 nF ceramic decoupling capacitor as close as possible to each VDD/AVDD pin pair (pins 11/12 and 31/32 on the PDIP-40), plus a 10 uF bulk tantalum or ceramic on the VDD rail. For the AVDD reference pin, a 10 uH ferrite bead in series with AVDD plus a 100 nF/10 uF RC network on the AVSS pin reduces ADC reference noise. Estimated: at 25 MIPS with ECAN active, IDD peaks near 50 mA; the bulk cap must source this transient without dropping VDD below 4.2 V. Brown-out reset (BOR) is configured by CONFIG2L register and must be enabled for reliable startup.
Route the ECAN CANTX (RD5) and CANRX (RD6) lines as a short differential pair with characteristic impedance near 60 ohms; place the MCP2561 transceiver within 50 mm of the MCU and keep the bus stubs shorter than the bus one-tenth-bit propagation delay. The crystal traces on OSC1/OSC2 (pins 13/14) must be guarded by a ground ring and kept shorter than 10 mm to avoid stray capacitance shifting the oscillator. Use a four-layer PCB with a continuous ground plane beneath the MCU for thermal dissipation and EMI containment.
Do NOT connect the ECAN module directly to the CAN bus - it is a logic-level peripheral and requires an external CAN transceiver (MCP2561, MCP2551, or TJA1050) for bus-side differential drive and ESD protection. Avoid leaving the MCLR pin floating; tie it to VDD through a 10 kohm pull-up so the part does not randomly reset from noise. The ICSP pins RB6 (PGC) and RB7 (PGD) are shared with PORTB and must not be pulled low at startup or the device will enter programming mode - leave them as high-impedance inputs with weak pull-ups enabled in firmware.
Although the PIC18F4680-H/P is rated to +150 C junction, the PDIP-40 package has theta_JA of approximately 50 C/W. Estimated: at full CPU load (40 MHz, ECAN active, all I/O toggling) power dissipation is around 250 mW, raising junction temperature 12.5 C above ambient - well within budget for the 150 C ceiling. For continuous operation near the upper temperature limit, mount the part vertically for convective airflow or attach a small clip-on heatsink to the package top.
When using the ECAN module at 1 Mbps, ensure the CAN transceiver is configured for high-speed mode and the bus termination (120 ohms at each end) is matched to the cable characteristic impedance (typically twisted-pair 120 ohms). The CANTX pin drives a CMOS load and should be AC-coupled or DC-tied per the transceiver datasheet; never route CANTX across a connector or slot. For EMI-sensitive applications, place a common-mode choke on the CANH/CANL bus lines just outside the connector.
Compliance Information
Compliance fields are not present in the verified web data; Microchip typically labels PDIP-40 industrial parts as RoHS-compliant with a matte-tin finish, but this is not extracted from the supplied sources.