PIC18F2680-E/SP - 64KB Flash 8-bit MCU w/ECAN | Microchip
MPN: PIC18F2680-E/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $11.5 | $11.50 |
| 10 | $10.35 | $103.50 |
| 100 | $9.2 | $920.00 |
| 500 | $8.45 | $4,225.00 |
| 1,000 | $7.75 | $7,750.00 |
PIC18F2680-E/SP Overview
An 8-bit microcontroller (MCU) is a single-chip computer that combines an 8-bit CPU, program memory (flash/ROM), data memory (RAM), and programmable I/O peripherals on one silicon die. The PIC18 family is Microchip's high-end 8-bit architecture, sitting in the broader taxonomy: 8-bit MCU -> microcontroller -> embedded processor -> semiconductor. Compared with 16-bit PIC24/dsPIC and 32-bit PIC32 parts, PIC18 devices offer the simplest toolchain at the lowest cost, while still delivering deterministic interrupt-driven performance and rich peripherals like ECAN, USB, and nanoWatt power management.
Key features of the PIC18F2680-E/SP include 25 digital I/O pins, one enhanced USART with LIN support, one ECAN module, one MSSP (SPI/I2C), a 10-bit ADC with up to 8 channels, two analog comparators, and nanoWatt power-saving modes (Idle, Sleep, deep Sleep variants). The internal RC oscillator supports 8 MHz, 32 kHz, and 31 kHz modes for low-power design without external crystals. Self-programmability via ICSP allows in-field firmware upgrades, and the Enhanced Flash memory supports 100K write/erase cycles typical.
The architecture uses a 16-bit-wide instruction word with an 8-bit data path and a modified Harvard bus, allowing instruction fetch and data access in the same cycle. The CPU is RISC-style with 75+ instructions and 8 x 8 hardware multiply. The ECAN module provides hardware-accelerated CAN 2.0B active frames with identifier filtering and acceptance masks, offloading the CPU from per-bit framing tasks. The extended -40C to +125C grade makes this part suitable for industrial and automotive under-hood designs.
Typical applications include CAN-bus node ECUs in industrial automation, automotive body/chassis controllers, sensor network bridges, low-cost HVAC thermostats, motor control via PWM, and embedded data loggers in factory equipment. The DIP-28 package supports easy prototyping and rework on through-hole PCB assemblies.
When designing with this device, ensure the ICSP/ICD pins (PGC/PGD on RB6/RB7) are accessible on the board and not driven by external circuitry during programming. Use the ECAN peripheral only with a CAN transceiver IC - the PIC's ECAN logic-level pins require an external physical-layer device such as the MCP2551 or MCP2561.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone.
Drop-in alternatives for PIC18F2680-E/SP — 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 PIC18F2680-E/SP (same form factor and footprint) — differing in Package, Mounting Type, Timers, ADC, RoHS Status.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F2585-E/SP
✅ Drop-In✓ In Stock
$5.02 / Unit
View Datasheet →PIC18F4585-E/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4680-E/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F2680-I/SP
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F2680-E/SP Maximum Ratings & Electrical Characteristics
| Architecture | 8-bit PIC18 RISC (modified Harvard) |
| Program Memory Type | Flash (self-programmable) |
| Program Memory Size | 64 KB (32K x 16 words) |
| RAM (SRAM) | 3328 bytes |
| Data EEPROM/HEF | 1024 bytes |
| Maximum CPU Speed | 25 MHz (10 MIPS) |
| Operating Voltage Range | 4.2 V to 5.5 V |
| Operating Temperature Range | -40C to +125C (extended "-E" grade) |
| Digital I/O Pins | 25 |
| ADC | 10-bit, up to 8 channels |
| Analog Comparators | 2 |
| Communication Peripherals | 1x ECAN (CAN 2.0B active), 1x EUSART (LIN), 1x MSSP (SPI/I2C) |
| PWM Channels | Capture/Compare/PWM (CCP/ECCP) |
| Internal Oscillator | Yes (8 MHz / 32 kHz / 31 kHz modes) |
| Package | 28-SPDIP (Skinny Plastic DIP), 0.300" / 7.62 mm row spacing |
| Mounting Type | Through-Hole (THT) |
| RoHS Status | Compliant per distributor listings |
| ICSP/ICD Pins | PGC/PGD on RB6/RB7 |
PIC18F2680-E/SP Pin Configuration
| Pin 1 | RA0/AN0 — PORTA bit 0 / Analog input 0 |
| Pin 2 | RA1/AN1 — PORTA bit 1 / Analog input 1 |
| Pin 3 | RA2/AN2/CVREF — PORTA bit 2 / Analog input 2 / CVREF output |
| Pin 4 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input 3 / ADC VREF+ |
| Pin 5 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pin 6 | RA5/AN4/LVDIN — PORTA bit 5 / Analog input 4 / LVD input |
| Pin 7 | VSS — Ground |
| Pin 8 | OSC1/RA7 — Crystal/Resonator input or PORTA bit 7 |
| Pin 9 | OSC2/RA6 — Crystal/Resonator output or PORTA bit 6 |
| Pin 10 | RC0/T1CKI — PORTC bit 0 / Timer1 clock input |
| Pin 11 | RC1/CCP2 — PORTC bit 1 / CCP2 input/output |
| Pin 12 | RC2/CCP1 — PORTC bit 2 / ECCP1 output |
| Pin 13 | RC3/SCL/SCK — PORTC bit 3 / I2C SCL or SPI SCK |
| Pin 14 | RC4/SDA/SDI — PORTC bit 4 / I2C SDA or SPI SDI |
| Pin 15 | RC5/SDO — PORTC bit 5 / SPI SDO |
| Pin 16 | RC6/TX/CK — PORTC bit 6 / EUSART TX or clock |
| Pin 17 | RC7/RX/DT — PORTC bit 7 / EUSART RX or data |
| Pin 18 | RB0/INT0 — PORTB bit 0 / External interrupt 0 |
| Pin 19 | RB1/INT1 — PORTB bit 1 / External interrupt 1 |
| Pin 20 | RB2/CANTX — PORTB bit 2 / ECAN CANTX output |
| Pin 21 | RB3/CANRX — PORTB bit 3 / ECAN CANRX input |
| Pin 22 | RB4 — PORTB bit 4 (interrupt-on-change) |
| Pin 23 | RB5 — PORTB bit 5 (interrupt-on-change) |
| Pin 24 | RB6/PGC — PORTB bit 6 / ICSP PGC (clock) |
| Pin 25 | RB7/PGD — PORTB bit 7 / ICSP PGD (data) |
| Pin 26 | VSS — Ground (duplicate pin for SPDIP) |
| Pin 27 | VDD — Positive supply (4.2V-5.5V) |
| Pin 28 | VDD — Positive supply (4.2V-5.5V, duplicate pin) |
Typical Applications
PIC18F2680-E/SP is suitable for 6 applications: Industrial CAN-Bus Network Node, Automotive Body Controller (Under-Hood / Industrial Cabinets), Building Automation and HVAC Sensor Bridge, Embedded Data Logger with CAN Capture, Motor Control and PWM Driver (Small BLDC / Stepper), Low-Power Remote Sensor Node (Battery-Powered).
Industrial CAN-Bus Network Node
The PIC18F2680-E/SP is purpose-built for industrial CAN-bus network nodes where its on-chip ECAN module eliminates the firmware overhead of bit-banging the CAN protocol. In a typical CANopen or DeviceNet slave node, the ECAN hardware handles 11-bit and 29-bit ID filtering, acceptance masking, and hardware time-stamping autonomously, freeing CPU cycles for the application layer (PDO/SDO processing or sensor polling). The 64 KB flash is sufficient to host a CANopen stack such as CanFestival (~30 KB) plus user application logic; the 3328 B SRAM comfortably buffers full CAN frames. With ECAN connected to a Microchip MCP2551 or TJA1050 physical-layer transceiver, the node connects to a 1 Mbps CAN bus; the 25 MHz / 10 MIPS throughput supports polling rates well above the typical 100 Hz sensor refresh cycle.
Recommended
Automotive Body Controller (Under-Hood / Industrial Cabinets)
The PIC18F2680-E/SP "-E" extended temperature grade (-40C to +125C) qualifies the device for under-hood automotive body controllers and unconditioned industrial cabinets where the ambient temperature can exceed +85C. Combined with its ECAN module, it is well suited to seat controllers, mirror controllers, HVAC flap actuators, and lighting modules that need to communicate on the vehicle CAN network. The through-hole 28-SPDIP package supports robust automotive wiring-harness assemblies with locking sockets, retaining field-replacement ease. The nanoWatt modes (Idle, Sleep, deep Sleep with 31 kHz oscillator) allow quiescent currents in single-digit microamperes for key-off battery-savings budgets typical of body-electronics ECUs.
Recommended
Building Automation and HVAC Sensor Bridge
In building automation, the PIC18F2680-E/SP serves as a CAN-bus sensor bridge that aggregates signals from temperature, humidity, and CO2 sensors and publishes them as CANopen or BACnet MS/TP frames. Its 10-bit ADC can digitize analog sensors directly, while the MSSP peripheral reads digital temperature/humidity sensors over I2C. The ECAN module then forwards the data to a building controller at 125 kbps or 250 kbps, the typical CAN baud rates for building automation. The 64 KB flash comfortably runs the application plus a CANopen slave dictionary; the 1024 B EEPROM stores node configuration and calibration constants that survive power cycles. The -40C/+125C range handles rooftop equipment enclosures.
Recommended
Embedded Data Logger with CAN Capture
Data loggers for automotive diagnostics, fleet telematics, and industrial test stands rely on the PIC18F2680-E/SP to capture CAN frames over extended periods. The ECAN hardware timestamps each received frame and the 3328 B SRAM can buffer bursts of incoming frames until the application firmware encodes them to external storage (typically an SPI flash or SD card via MSSP). The 10-bit ADC additionally captures analog sensor channels such as battery voltage or temperature. Self-programmability means firmware in the field can be updated to add new CAN-message decoders without hardware rework; the 1024 B EEPROM preserves diagnostic counters across power cycles. Operation from 4.2-5.5 V is compatible with regulated 5V rails fed from a USB car charger or external DC adapter.
Recommended
Motor Control and PWM Driver (Small BLDC / Stepper)
Small BLDC fans, stepper motor drivers, and brushed DC motor controllers in HVAC and appliance applications use the PIC18F2680-E/SP's ECCP (Enhanced Capture/Compare/PWM) module to generate center-aligned PWM at up to ~78 kHz, more than enough for 20 kHz ultrasonic-inaudible motor drives. The ECAN module accepts speed commands over the CAN bus while the analog comparators provide hardware overcurrent protection that latches PWM outputs without CPU intervention. The 64 KB flash is sufficient to host PID loops plus CANopen or J1939 stack; the 3328 B SRAM provides comfortable stack depth for high-rate control loops at 1 kHz. The extended temperature grade supports proximity to motor windings in compact assemblies.
Recommended
Low-Power Remote Sensor Node (Battery-Powered)
Battery-powered remote sensor nodes that wake, sample, transmit over CAN, and sleep again rely on the PIC18F2680-E/SP's nanoWatt modes to minimize quiescent current. In Sleep mode with the ECAN module disabled and the 31 kHz internal oscillator selected, the device draws single-digit microamperes while still offering timer-driven wake-up. At periodic wake, the ADC samples analog sensors, MSSP reads I2C devices, and ECAN transmits a single frame before returning to Sleep. The 64 KB flash supports application plus CANopen stack in such nodes; the 1024 B EEPROM stores calibration across battery-replacement cycles. The -40C/+125C grade handles outdoor enclosures in industrial environments.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F2680-E/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F2585-E/SP | PIC18F4585-E/SP | PIC18F4680-E/SP |
|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SPDIP | 28-SPDIP - same | 28-SPDIP - same | 28-SPDIP - same |
| Program Flash | 64 KB | 32 KB (-50%) | 48 KB (-25%) | 64 KB (same) |
| RAM | 3328 bytes | 3328 bytes | 3328 bytes | 3328 bytes |
| Data EEPROM | 1024 bytes | 1024 bytes | 1024 bytes | 1024 bytes |
| Max Clock | 25 MHz | 25 MHz | 40 MHz (+60%) | 40 MHz (+60%) |
| ECAN Module | Yes (1x ECAN) | Yes (1x ECAN) | Yes (1x ECAN) | Yes (1x ECAN) |
| Operating Temperature | -40C to +125C (E grade) | -40C to +125C (E grade) | -40C to +125C (E grade) | -40C to +125C (E grade) |
| Operating Voltage | 4.2V - 5.5V | 4.2V - 5.5V | 4.2V - 5.5V | 4.2V - 5.5V |
Key Differentiators
- Higher flash memory than PIC18F2585-E/SP (vs PIC18F2585-E/SP)
- Extended temperature grade matches upper-tier PIC18F4680-E/SP (vs PIC18F4680-E/SP)
- Full-speed match to PIC18F4585-E/SP at lower cost in memory (vs PIC18F4585-E/SP)
Design Notes
Place a 100 nF ceramic decoupling capacitor within 1 cm of each VDD pin (pins 27 and 28 on the 28-SPDIP), plus a 10 uF bulk Tantalum or X7R ceramic at the board entry. The PIC18F2680-E/SP has two VDD pins; both must be connected or the device will reset intermittently. The internal 8 MHz oscillator draws substantially more current (~2 mA) than the 31 kHz mode (~20 uA) - choose the lowest-frequency mode that meets the application timing requirement when in battery-powered designs.
PIC18F2680-E/SP ECAN logic-level pins (CANTX on RB2, CANRX on RB3) cannot drive a CAN bus directly; an external transceiver IC is mandatory. Recommended: MCP2551 (5V CAN 2.0B) for industrial applications, or MCP2561 / TJA1050 for automotive. The CAN bus must be terminated with 120 ohm resistors at each end; missing termination causes bit-error rates above 1% and intermittent bus-off conditions. Configure the ECAN clock source via the BRGCON register to match the oscillator frequency (FOSC); for 25 MHz FOSC and 125 kbps CAN, set SJW=1, BRP=4, PHSEG1=5, PHSEG2=2, PRSEG=1.
Do not connect external driver circuitry directly to PGC (RB6) or PGD (RB7) without isolating it during programming - many production failures occur because a downstream buffer IC tries to drive the programming lines during ICSP. Use a series resistor (typically 4.7 kohm) between RB7/RB6 and external circuitry, or a MUX switch. Also, configuration bits (CONFIG1H, CONFIG1L) must be set BEFORE first power-on; if left unprogrammed the device may run from an unsupported oscillator mode and fail to start.
Compliance Information
RoHS compliance per Microchip product page and distributor listings. Extended -40C to +125C temperature grade -E supports industrial and some automotive use cases, but PIC18F2680-E/SP itself is NOT AEC-Q100 qualified (no automotive qualification suffix); check the PIC18F2680-Q1 variant for AEC-Q100 grades. Lead-free (Pb-free) per the part number suffix convention.