PIC18F4680-H/P - 8-bit MCU, 64KB Flash, ECAN, PDIP-40 | Microchip
MPN: PIC18F4680-H/P ✓ פעילPIC18F4680-H/P סקירה
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.
חלופות תחליף ישיר עבור PIC18F4680-H/P — אותו מארז, תואם פין-לפין. חלקים במארז שונה הדורשים עיבוד מחדש של ה-PCB אינם נכללים.
וריאנטים בסדרה זו
דגמים מאותה סדרה התואמים Drop-in עם PIC18F4680-H/P (אותו גורם צורה וטביעת רגל) — שונים ב Operating Temperature, Package, Mounting Type, ADC, Program Memory (Flash).
PIC18F4680-I/P
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18F4680-E/P
✅ Drop-In📋 חלופה להתייחסות (לא בקטלוג)
PIC18F4685-I/P
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18F4585-I/PT
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18F4480-I/P
✅ Drop-Inצור קשר לקבלת מחיר
הצג גיליון נתונים ←PIC18F4680-H/P דירוגים מרביים ומאפיינים חשמליים
| Family | PIC18F |
| Core | PIC18 8-bit RISC |
| Program Memory (Flash) | 64 KB (32K x 16) |
| Data RAM | 3328 bytes |
| Data EEPROM | 1024 bytes |
| תדר שעון מקסימלי | 40 MHz |
| CPU Speed (MIPS) | 25 MIPS at 5 V |
| מתח אספקה פעיל | 4.2 V to 5.5 V |
| טמפרטורת פעולה | -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 |
| מארז | PDIP-40 (0.600 in / 15.24 mm) |
| סוג הרכבה | Through Hole |
| Packaging | Tube |
| Instruction Set | PIC18 enhanced 16-bit instructions |
תצורת פינים של PIC18F4680-H/P
| פין 1 | MCLR — Master Clear (reset) input, programming voltage entry |
| פין 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 / ADC VREF- |
| פין 5 | RA3/AN3/VREF+ — PORTA bit 3 / analog input 3 / ADC 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 — PORTE bit 0 / CAN read signal |
| פין 9 | RE1/WR — PORTE bit 1 / CAN write signal |
| פין 10 | RE2/CS — PORTE bit 2 / CAN chip select |
| פין 11 | VDD — Positive power supply (4.2 V - 5.5 V) |
| פין 12 | VSS — Ground reference |
| פין 13 | OSC1/CLKI — Crystal oscillator input / external clock input |
| פין 14 | OSC2/CLKO — Crystal oscillator output / clock output |
| פין 15 | RC0/T1OSO/T13CKI — PORTC bit 0 / Timer1 oscillator output / Timer1/3 clock |
| פין 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 |
| פין 17 | RC2/CCP1 — PORTC bit 2 / Capture/Compare/PWM 1 |
| פין 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| פין 19 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| פין 20 | RC5/SDO — PORTC bit 5 / SPI data out |
| פין 21 | RC6/TX/CK — PORTC bit 6 / EUSART TX / clock |
| פין 22 | RC7/RX/DT — PORTC bit 7 / EUSART RX / data |
| פין 23 | RB0/INT0 — PORTB bit 0 / external interrupt 0 |
| פין 24 | RB1/INT1 — PORTB bit 1 / external interrupt 1 |
| פין 25 | RB2/INT2 — PORTB bit 2 / external interrupt 2 |
| פין 26 | RB3/CCP2 — PORTB bit 3 / Capture/Compare/PWM 2 |
| פין 27 | RB4 — PORTB bit 4 |
| פין 28 | RB5 — PORTB bit 5 |
| פין 29 | RB6/PGC — PORTB bit 6 / ICSP clock |
| פין 30 | RB7/PGD — PORTB bit 7 / ICSP data |
| פין 31 | VSS — Ground reference |
| פין 32 | VDD — Positive power supply (4.2 V - 5.5 V) |
| פין 33 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| פין 34 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| פין 35 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| פין 36 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| פין 37 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| פין 38 | RD5/PSP5/CANTX — PORTD bit 5 / PSP bit 5 / ECAN TX |
| פין 39 | RD6/PSP6/CANRX — PORTD bit 6 / PSP bit 6 / ECAN RX |
| פין 40 | RD7/PSP7 — PORTD bit 7 / Parallel Slave Port bit 7 |
יישומים טיפוסיים
PIC18F4680-H/P מתאים עבור 7 יישוםs: 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.
מומלץ
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.
מומלץ
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.
מומלץ
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.
מומלץ
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.
מומלץ
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.
מומלץ
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.
מומלץ
סיכום מוצרים מומלצים
נתוני עזר הנדסיים עבור PIC18F4680-H/P — השוואה, הנחיות תכנון ומידע על תאימות.
מדריך בחירה
השוואה עם חלופות
| פרמטר | מוצר זה | 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 |
מבדילים עיקריים
- Highest temperature grade in the 4680 family (לעומתPIC18F4680-I/P)
- Twice the code space of the PIC18F4585 (לעומתPIC18F4585-I/P)
- Doubled RAM and Flash versus the PIC18F4480 (לעומתPIC18F4480-I/P)
הערות תכנון
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 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.