PIC18F2682-E/SO - 8-bit 40MHz 80KB Flash MCU 28-SOIC | Microchip
MPN: PIC18F2682-E/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $8.63 | $8.63 |
| 10 | $7.77 | $77.70 |
| 100 | $6.9 | $690.00 |
| 500 | $6.39 | $3,195.00 |
| 1,000 | $5.95 | $5,950.00 |
PIC18F2682-E/SO Overview
What is a microcontroller (MCU)? A microcontroller is a single-chip computer that integrates a CPU core, non-volatile program memory (Flash/ROM), volatile data memory (RAM), and a rich peripheral set (ADC, timers, communication modules) on one IC. Within the broader product hierarchy, the PIC18F2682 belongs to the 8-bit MCU family, which sits under the microcontroller hypernym, followed by integrated circuit and finally semiconductor. PIC18 devices execute one instruction per cycle (except branches) using a 16-bit instruction word and a Harvard architecture, delivering deterministic real-time response.
Key differentiating features include a built-in Enhanced CAN (ECAN) module for high-reliability serial networking, nanoWatt Technology for power-managed sleep modes, and self-programmability of Flash under firmware control for in-field upgrades. The integrated 10-bit ADC supports up to 12 channels of analog conversion for sensor interfacing, while two PWM modules and a Capture/Compare/PWM (CCP) section support motor and power-conversion control.
The PIC18F2682 uses a Harvard RISC core with an 8-bit data path and 16-bit program path, executing most instructions in one oscillator cycle for high code-density throughput. An integrated Phase-Locked Loop (PLL) allows the system clock to be derived from lower-frequency crystals, while the Enhanced Flash memory supports 100,000 erase/write cycles minimum, suiting products with long in-service lifetimes.
Typical applications include CAN-based industrial sensor hubs, automotive body and chassis node ECUs, HVAC control boards, and instrument clusters that need deterministic CAN communication and moderate analog channel counts. The wide -40C to +125C operating range and industrial-grade robustness allow deployment in harsh factory and vehicle environments without additional shielding.
One key design consideration is ensuring the CAN bus termination (typically 120 ohm at each end) and ESD protection (e.g., common-mode chokes or TVS arrays) are placed close to the transceiver, since the MCU itself does not include bus-side protection. Adequate decoupling (100 nF plus 4.7 uF bulk) is required near VDD to support ADC accuracy and PLL jitter performance.
This page synthesizes distributor pricing from nine sources, drop-in compatible PIC18 same-package alternatives, and practical design notes not found in the manufacturer datasheet alone.
Drop-in alternatives for PIC18F2682-E/SO — 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 PIC18F2682-E/SO (same form factor and footprint) — differing in Package, Timers, Program Memory (Flash), ADC, Operating Temperature.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F2685-E/SO
✅ Drop-In✓ In Stock
$5.8 / Unit
View Datasheet →PIC18F2682-I/SO
✅ Drop-In✓ In Stock
$5.02 / Unit
View Datasheet →PIC18F2680-I/SO
✅ Drop-In✓ In Stock
$6.95 / Unit
View Datasheet →PIC18F2480-I/SO
✅ Drop-In✓ In Stock
$4.13 / Unit
View Datasheet →PIC18F2585-I/SO
✅ Drop-In✓ In Stock
$4.35 / Unit
View Datasheet →PIC18F2682-E/SO Maximum Ratings & Electrical Characteristics
| Program Memory Type | Flash |
| Program Memory Size | 80 KB (40K x 16) |
| RAM Size | 3328 bytes |
| CPU Architecture | 8-bit PIC18 Harvard |
| Maximum CPU Speed | 40 MHz |
| Operating Voltage Range | 4.2 V to 5.5 V |
| Number of I/O Pins | 25 |
| ADC | 10-bit, multi-channel |
| Communication Modules | ECAN, 2x USART, SPI, I2C |
| PWM Modules | Yes (CCP/ECCP) |
| Timers | Yes (8-bit and 16-bit) |
| Package | 28-pin SOIC (SO) |
| Operating Temperature Range | -40C to +125C (extended) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC18F2682-E/SO Pin Configuration
| Pin 1 | MCLR — Master Clear (Reset) input; pulled low to reset device |
| Pin 2 | AN0/RA0 — Analog input 0 / PORTA bit 0 / digital I/O |
| Pin 3 | AN1/RA1 — Analog input 1 / PORTA bit 1 / digital I/O |
| Pin 4 | RA2 — PORTA bit 2 / digital I/O |
| Pin 5 | RA3 — PORTA bit 3 / digital I/O |
| Pin 6 | RA4 — PORTA bit 4 / digital I/O / Timer0 clock input |
| Pin 7 | RA5 — PORTA bit 5 / digital I/O / Timer1 clock input |
| Pin 8 | VSS — Ground reference |
| Pin 9 | OSC1/RA7 — Crystal oscillator input / PORTA bit 7 |
| Pin 10 | OSC2/RA6 — Crystal oscillator output / PORTA bit 6 |
| Pin 11 | RC0 — PORTC bit 0 / digital I/O |
| Pin 12 | RC1 — PORTC bit 1 / digital I/O |
| Pin 13 | RC2 — PORTC bit 2 / digital I/O |
| Pin 14 | RC3 — PORTC bit 3 / digital I/O / SPI clock |
| Pin 15 | RC4 — PORTC bit 4 / digital I/O / SPI data |
| Pin 16 | RC5 — PORTC bit 5 / digital I/O / SPI data |
| Pin 17 | RC6 — PORTC bit 6 / digital I/O / USART TX |
| Pin 18 | RC7 — PORTC bit 7 / digital I/O / USART RX |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply voltage (4.2 V to 5.5 V) |
| Pin 21 | RB0 — PORTB bit 0 / digital I/O / external interrupt |
| Pin 22 | RB1 — PORTB bit 1 / digital I/O |
| Pin 23 | RB2 — PORTB bit 2 / digital I/O |
| Pin 24 | RB3 — PORTB bit 3 / digital I/O / I2C SDA |
| Pin 25 | RB4 — PORTB bit 4 / digital I/O / I2C SCL |
| Pin 26 | RB5 — PORTB bit 5 / digital I/O |
| Pin 27 | RB6 — PORTB bit 6 / digital I/O / ICSP clock |
| Pin 28 | RB7 — PORTB bit 7 / digital I/O / ICSP data |
Typical Applications
PIC18F2682-E/SO is suitable for 6 applications: Industrial CAN Sensor Node, Automotive Body Control Module, Battery-Powered HVAC Controller, Medical Infusion Pump Front Panel, HVAC Network Gateway / Bridge, Industrial Instrument Cluster.
Industrial CAN Sensor Node
The PIC18F2682-E/SO's integrated Enhanced CAN 2.0B module makes it a strong fit for industrial CAN-based sensor hubs that poll 4-20 mA analog transmitters and broadcast scaled values over a CANopen or DeviceNet backbone. Its 10-bit ADC and 25 available I/O pins let a single MCU interface to 5-8 sensors while driving optocouplers for galvanic isolation. The -40C to +125C extended temperature grade supports deployment in factory-floor cabinets with no special cooling. A typical board uses 100 nF plus 4.7 uF decoupling, two termination resistors at the bus ends, and a CAN transceiver IC between the MCU and bus; the MCU's ECAN peripheral handles arbitration, error counters, and filtering. Compared with a bit-bang CAN stack, the integrated ECAN reduces CPU overhead by approximately 60 percent, freeing cycles for sensor averaging and diagnostics.
Recommended
Automotive Body Control Module
The PIC18F2682-E/SO's extended temperature range and 80 KB Flash support body control modules that aggregate window, mirror, lock, and lighting commands over a single CAN bus. Its 40 MHz core executes a small RTOS or interrupt-driven CAN stack, while two USART modules provide diagnostics and LIN master bridges to door or seat nodes. The 10-bit ADC handles ambient-light sensors for automatic headlamp dimming and thermistor inputs for HVAC multiplexing. Power consumption is kept low via nanoWatt Technology's idle/doze/sleep modes, helping meet quiescent-current budgets in parked vehicles. A typical design pairs the MCU with dual low-side driver ICs, a CAN transceiver, and a reverse-battery protection FET. The 28-SOIC package pinout is shared with the broader PIC18F2680/2685 family, allowing memory upgrades without board respins.
Recommended
Battery-Powered HVAC Controller
The PIC18F2682-E/SO suits battery-backed HVAC thermostat controllers that must last on a 24V AC or two-AA supply for multiple months. NanoWatt Technology's 100 nA sleep current (RTC mode) lets the controller stay in standby between user interactions, while its Wake-on-Change I/O pins bring it back to full speed. The PIC18F2682-E/SO's 10-bit ADC with internal reference reads temperature/humidity sensors, and the PWM module drives a small triac-driver stage for fan speed control. Compared with using a single high-performance ARM MCU, this PIC18 trades speed for predictability and ultra-low sleep power. Designs typically add a 32.768 kHz crystal for timekeeping, an SPI EEPROM for setpoint persistence, and a single-rail LDO for the 5V MCU supply.
Recommended
Medical Infusion Pump Front Panel
The PIC18F2682-E/SO's deterministic interrupt response and wide operating temperature range suit medical infusion pump front-panel controllers, where watchdog-safe code execution and reliable CAN connectivity to the main pump controller are required. Its 80 KB Flash capacity fits a control-state machine plus self-test firmware, while the 3328 bytes of SRAM handles menu stacks and pump-rate buffers without external memory. Two UARTs are used for service diagnostics and a wireless opt-in BLE bridge IC; I2C drives an OLED display, and PWM sets backlight brightness with adjustable DC bias to avoid 50/60 Hz flicker. The 28-SOIC package is hand-solder-friendly for prototype and low-volume production runs.
Recommended
HVAC Network Gateway / Bridge
The PIC18F2682-E/SO works as a low-cost CAN-to-UART or CAN-to-Ethernet gateway between a building HVAC network and a BACnet/Modbus upstream link. Its ECAN module listens on the HVAC bus at 125 kbps, filters relevant frames, and forwards aggregated messages via USART to a higher-layer MCU. The 40 MHz core handles two CAN-bus message streams without dropped frames, and the integrated ECCP/PWM module can drive a status LED indicator strip from one pin set. A typical gateway uses two DB9 connectors, a CAN transceiver, and an isolated RS-485 transceiver. The 80 KB Flash supports a small TCP/IP or Modbus RTU stack, although for full TCP/IP a co-processor is recommended.
Recommended
Industrial Instrument Cluster
The PIC18F2682-E/SO's combination of ECAN and 10-bit ADC enables compact industrial instrument clusters that display RPM, temperature, and pressure from a CAN backbone with no extra analog routing. Its 80 KB Flash supports advanced UI render libraries, while 3328 bytes of SRAM holds gauge-state buffers. The 25 I/O lines can drive a small RGB LED bar graph plus capacitive-touch buttons via I2C, all while a USART runs diagnostics to a service tool. Compared with a 32-bit MCU at the same cost, the PIC18F2682-E/SO delivers predictable deterministic behavior for critical instrumentation, ideal for harsh factories where temperature swings and EMI bursts would otherwise disrupt less-robust MCUs.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F2682-E/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F2685-E/SO | PIC18F2682-I/SO | PIC18F2680-I/SO | PIC18F2480-I/SO | PIC18F2585-I/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-SOIC | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same | 28-SOIC - same |
| Program Memory | 80 KB Flash | 144 KB Flash | 80 KB Flash | 64 KB Flash | 16 KB Flash | 48 KB Flash |
| RAM | 3328 bytes | 4096 bytes | 3328 bytes | 3328 bytes | 768 bytes | 3328 bytes |
| CAN Module | ECAN (Enhanced) | ECAN | ECAN | ECAN | None | ECAN |
| Operating Temperature | -40C to +125C | -40C to +125C | -40C to +85C | -40C to +85C | -40C to +85C | -40C to +85C |
| Maximum Clock | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz | 40 MHz |
| Number of I/O Pins | 25 | 25 | 25 | 25 | 25 | 25 |
| Operating Voltage | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V | 4.2 V to 5.5 V |
Key Differentiators
- Memory headroom over PIC18F2480 with ECAN retained (vs PIC18F2480-I/SO)
- Extended temperature reach (vs PIC18F2682-I/SO)
- Lower memory fit vs PIC18F2685 (vs PIC18F2685-E/SO)
- More Flash than PIC18F2585 in same package (vs PIC18F2585-I/SO)
Design Notes
Estimated: At a 5V MCU rail pulled from a 12V automotive source, an MCP1790 LDO dissipating roughly 280 mW at 40 mA average is acceptable without a heatsink, but verify with worst-case ADC-active bursts. For a 40 mA continuous draw at 5V output, the LDO has 0.28 W of dissipation and (using the LDO's theta_JA of approximately 50 C/W for an SOT-223 package) a junction-to-ambient rise near 14 C. Place a 4.7 uF tantalum plus 100 nF ceramic bulk decouple as close to VDD as trace-length allows; this keeps ADC error below 1 LSB during ADC enable transients.
Do not leave the MCLR pin floating - always tie it to VDD through a 10 kohm pull-up and a 100 nF cap to ground to keep voltage transients from spurious-resetting the part. The I2C pins (RB4/RB3) require external pull-ups in the 4.7 kohm to 10 kohm range; internal weak pull-ups are insufficient for standard-mode bus timing and will produce rise-time violations. Verify ECAN TXD is always driven before the MCP2551 is enabled so the bus does not see a dominant state during power-up.
Place the 4.7 uF bulk capacitor on VDD within 5 mm of the pin and the 100 nF cap within 2 mm. Route the ECAN TXD/RXD lines between the MCU and the MCP2551 with impedance-controlled matched lengths of no more than 25 mm, keeping them away from PWM switching traces. Use a four-layer PCB with a continuous ground plane directly under the SOIC footprint and stitch the VSS pins to it with via stubs of less than 1 mm; this minimizes EMI during the ECAN 1-Mbps bursts. Keep the crystal oscillator traces short and surround them by a grounded guard ring.
For CAN bus reliability, place 120 ohm termination at both physical ends of the bus, none in the middle. If the node is mid-bus and cannot be terminated, omit both ends. Apply a common-mode choke and TVS diode (e.g., PESD1CAN) right at the bus connector for ESD/EMI immunity. Expected: at 1 Mbps with 10-meter cable, this limits ringing and overshoot under 1 V above recessive and prevents data errors. Keep the ground loop between bus ground and chassis ground below 50 milliohm using a short pigtail to ground at the chassis stud.
Compliance Information
RoHS compliant per DigiKey listing as of 2026-09-27. Not AEC-Q100 qualified; for automotive ECU safety-critical designs verify with Microchip for an AEC-Q100 equivalent. Halogen-free status not explicitly stated in distributor pages.