PIC18F4682-I/P - 8-bit MCU, 80KB Flash, ECAN, 40-PDIP
MPN: PIC18F4682-I/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $8.2 | $8.20 |
| 10 | $7.45 | $74.50 |
| 100 | $6.62 | $662.00 |
| 500 | $5.95 | $2,975.00 |
| 1,000 | $5.3 | $5,300.00 |
PIC18F4682-I/P Overview
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, memory, and peripherals around an 8-bit data path, optimized for deterministic real-time control. PIC18 microcontrollers are part of Microchip's high-performance 8-bit family, sitting in the broader taxonomy: microcontroller -> embedded processor -> semiconductor. They excel in automotive, industrial, and consumer applications where reliability, low power, and a robust peripheral set are required.
Key features of the PIC18F4682 include 40 MHz operation delivering up to 10 MIPS, hardware ECAN 2.0B with full CAN 2.0A/B compliance, a 10-bit ADC with up to 11 channels, two USART modules for serial communication, an SPI and I2C interface, and nanoWatt power management with idle, sleep, and run modes. The device operates across the industrial temperature range of -40°C to +85°C, supports in-circuit serial programming (ICSP) and in-circuit debugging (ICD), and includes a brown-out reset (BOR) and watchdog timer for enhanced system reliability.
The PIC18F4682 uses an enhanced Harvard RISC architecture with separate program and data buses, a 16-bit instruction word, and 31-level hardware stack for fast context switching. The integrated ECAN module reduces software overhead by handling bus arbitration, filtering, and error handling in hardware, enabling deterministic communication on industrial and automotive CAN buses. This makes the PIC18F4682 well suited to networked embedded systems requiring reliable real-time messaging.
Typical applications include automotive body and chassis ECAN nodes, industrial CAN-based sensor networks, building automation, HVAC controls, motor control, and embedded data acquisition. The wide temperature range and ECAN hardware make it especially attractive for automotive and industrial environments where standard serial protocols are insufficient.
When designing with the PIC18F4682, allocate sufficient decoupling (100 nF + 10 µF) near the VDD pins, and observe the 40 MHz maximum clock with proper crystal load capacitor selection. For ECAN networks, terminate the bus with 120 Ω resistors at each end and configure the ECAN bit-timing registers to match the required baud rate.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet.
Drop-in alternatives for PIC18F4682-I/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 PIC18F4682-I/P (same form factor and footprint) — differing in Package, Operating Temperature, ADC, Program Memory (Flash), Core.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F4680-I/P
✅ Drop-In✓ In Stock
$5.78 / Unit
View Datasheet →PIC18F4585-I/PT
✅ Drop-In✓ In Stock
$5.73 / Unit
View Datasheet →PIC18F4620-I/PT
✅ Drop-In✓ In Stock
$5.45 / Unit
View Datasheet →PIC18F4685-I/P
✅ Drop-In✓ In Stock
$5.4 / Unit
View Datasheet →PIC18F448-I/P
✅ Drop-In✓ In Stock
$4.42 / Unit
View Datasheet →PIC18F4682-I/P Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit enhanced Harvard RISC) |
| Program Memory (Flash) | 80 KB (40K x 16) |
| RAM | 3.3 KB (3328 bytes) |
| EEPROM | 1 KB (1024 bytes) |
| Maximum CPU Speed | 40 MHz (10 MIPS) |
| Operating Voltage Range | 2.0 V to 5.5 V |
| I/O Pins | 36 |
| ADC | 10-bit, up to 11 channels |
| ECAN Module | ECAN 2.0B (CAN 2.0A/B compliant) |
| USART Modules | 2 |
| SPI Modules | 1 (MSSP) |
| I2C Modules | 1 (MSSP) |
| Timers | 4 (Timer0/1/2/3) |
| PWM Outputs | 5 channels (CCP/ECCP) |
| Package | 40-pin PDIP (P) |
| Operating Temperature Range | -40 °C to +85 °C (Industrial, 'I' suffix) |
| Programming/Debug | ICSP / ICD via 2-wire interface |
| Brown-out Reset (BOR) | Yes, programmable |
| Watchdog Timer (WDT) | Yes, with dedicated RC oscillator |
| nanoWatt Power Management | Yes (Run, Idle, Sleep modes) |
| Mounting Type | Through-hole |
| RoHS Status | Compliant |
| Lead-Free | Yes |
PIC18F4682-I/P Pin Configuration
| Pin 1 | MCLR/RE3 — Master Clear (reset) input / digital I/O (port E bit 3) |
| Pin 2 | RA0/AN0 — Digital I/O / analog input 0 |
| Pin 3 | RA1/AN1 — Digital I/O / analog input 1 |
| Pin 4 | RA2/AN2/VREF- — Digital I/O / analog input 2 / ADC VREF- |
| Pin 5 | RA3/AN3/VREF+ — Digital I/O / analog input 3 / ADC VREF+ |
| Pin 6 | RA4/T0CKI/C1OUT — Digital I/O / Timer0 clock input / Comparator 1 output |
| Pin 7 | RA5/AN4/SS/HLVDIN — Digital I/O / analog input 4 / SPI slave select / high/low voltage detect |
| Pin 8 | RE0/RD/AN5 — Digital I/O / read control for parallel port / analog input 5 |
| Pin 9 | RE1/WR/AN6 — Digital I/O / write control for parallel port / analog input 6 |
| Pin 10 | RE2/CS/AN7 — Digital I/O / chip select for parallel port / analog input 7 |
| Pin 11 | VDD — Positive supply voltage (2.0V to 5.5V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKI/RA7 — Crystal oscillator input / external clock input / digital I/O |
| Pin 14 | OSC2/CLKO/RA6 — Crystal oscillator output / clock output / digital I/O |
| Pin 15 | RC0/T1OSO/T13CKI — Digital I/O / Timer1 oscillator output / Timer1/3 clock input |
| Pin 16 | RC1/T1OSI/CCP2 — Digital I/O / Timer1 oscillator input / CCP2 PWM output |
| Pin 17 | RC2/CCP1 — Digital I/O / CCP1 PWM output |
| Pin 18 | RC3/SCK/SCL — Digital I/O / SPI clock / I2C clock |
| Pin 19 | RD0/PSP0 — Digital I/O / parallel slave port data bit 0 |
| Pin 20 | RD1/PSP1 — Digital I/O / parallel slave port data bit 1 |
| Pin 21 | RD2/PSP2 — Digital I/O / parallel slave port data bit 2 |
| Pin 22 | RD3/PSP3 — Digital I/O / parallel slave port data bit 3 |
| Pin 23 | RC4/SDI/SDA — Digital I/O / SPI data in / I2C data |
| Pin 24 | RC5/SDO — Digital I/O / SPI data out |
| Pin 25 | RC6/TX/CK — Digital I/O / USART async transmit / USART sync clock |
| Pin 26 | RC7/RX/DT — Digital I/O / USART async receive / USART sync data |
| Pin 27 | RD4/PSP4 — Digital I/O / parallel slave port data bit 4 |
| Pin 28 | RD5/PSP5 — Digital I/O / parallel slave port data bit 5 |
| Pin 29 | RD6/PSP6/TX2/CK2 — Digital I/O / PSP bit 6 / USART2 transmit |
| Pin 30 | RD7/PSP7/RX2/DT2 — Digital I/O / PSP bit 7 / USART2 receive |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply voltage (2.0V to 5.5V) |
| Pin 33 | RB0/INT0/FLT0 — Digital I/O / external interrupt 0 / PWM fault input |
| Pin 34 | RB1/INT1 — Digital I/O / external interrupt 1 |
| Pin 35 | RB2/INT2/CANTX — Digital I/O / external interrupt 2 / ECAN transmit |
| Pin 36 | RB3/INT3/CANRX — Digital I/O / external interrupt 3 / ECAN receive |
| Pin 37 | RB4/KBI0 — Digital I/O / interrupt-on-change bit 0 |
| Pin 38 | RB5/KBI1 — Digital I/O / interrupt-on-change bit 1 |
| Pin 39 | RB6/KBI2/PGC — Digital I/O / interrupt-on-change bit 2 / ICSP clock |
| Pin 40 | RB7/KBI3/PGD — Digital I/O / interrupt-on-change bit 3 / ICSP data |
Typical Applications
PIC18F4682-I/P is suitable for 6 applications: Automotive ECAN Body Control Module, Industrial CAN Sensor Hub, Building Automation Gateway, HVAC Control Unit, Automotive Instrument Cluster, Industrial Data Acquisition Module.
Automotive ECAN Body Control Module
The PIC18F4682's hardware ECAN 2.0B module makes it well suited for automotive body control modules that communicate with door, lighting, and HVAC subsystems over CAN bus. Its 80 KB Flash can hold a CANopen or J1939 protocol stack, while the 10-bit ADC reads analog sensor inputs such as thermistors for HVAC control. The 36 I/O pins drive relays and LEDs for body electronics, and the industrial temperature rating (-40 °C to +85 °C) handles under-dash thermal environments. Compared to software-bit-banged CAN, the hardware ECAN reduces CPU load by 40-60%, freeing cycles for sensor processing.
Recommended
Industrial CAN Sensor Hub
In industrial sensor networks, the PIC18F4682 aggregates analog and digital sensor data and publishes it over ECAN to a central PLC. Its 10-bit ADC with 11 channels reads temperature, pressure, and flow sensors directly, while the ECAN module delivers deterministic 1 Mbps messaging for time-critical control loops. The 3.3 KB RAM holds transient sensor buffers, and the 40 MHz CPU runs at 10 MIPS, leaving headroom for sensor linearization routines. The nanoWatt power modes drop quiescent current below 5 µA in sleep, ideal for battery-backed industrial nodes.
Recommended
Building Automation Gateway
The PIC18F4682 acts as a sub-bus gateway between CAN-based field devices (thermostats, lighting controllers) and a higher-level BACnet or Modbus network. Its dual USART modules bridge RS-485 and CAN networks, while the 80 KB Flash accommodates protocol translation tables. The 36 I/O pins handle local I/O expansion for HVAC damper and valve control. The watchdog timer and brown-out reset ensure unattended operation in building mechanical rooms, and the wide supply range (2.0 V to 5.5 V) tolerates industrial 24 V rails via simple regulators.
Recommended
HVAC Control Unit
The PIC18F4682 controls variable-speed fans, compressor valves, and temperature setpoints in HVAC systems. Its 5 PWM channels (CCP/ECCP) drive brushless DC fan motors directly via gate drivers, while the 10-bit ADC reads supply air and return air thermistors. The ECAN module integrates the unit into a building automation network for centralized scheduling. nanoWatt power management reduces standby consumption below 1 mA, helping meet Energy Star requirements for HVAC controllers.
Recommended
Automotive Instrument Cluster
The PIC18F4682 can serve as a secondary processor in instrument clusters, driving gauge stepper motors and reading vehicle CAN messages for speed, RPM, and fuel level. Its 80 KB Flash supports lookup tables for gauge calibration, and the 40 MHz throughput delivers smooth pointer movement without visible stepping. The hardware ECAN filters incoming messages to reduce CPU load, and the 36 I/O pins drive multiple gauge motors and indicator LEDs. Industrial temperature rating handles engine-bay thermal stress.
Recommended
Industrial Data Acquisition Module
The PIC18F4682 functions as a standalone data acquisition front-end, digitizing analog signals with its 10-bit ADC and timestamping samples before forwarding them over CAN. Its 3.3 KB RAM stores burst samples during ECAN bus arbitration delays, and the hardware ECAN ensures deterministic delivery to upstream loggers. The 1 KB EEPROM retains calibration coefficients across power cycles. With industrial temperature rating and 40 MHz performance, the PIC18F4682 fits ruggedized factory-floor measurement equipment.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F4682-I/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F4680-I/P | PIC18F4585-I/P | PIC18F4620-I/P | PIC18F4685-I/P | PIC18F448-I/P |
|---|---|---|---|---|---|---|
| Package | 40-pin PDIP | 40-pin PDIP - same | 40-pin PDIP - same | 40-pin PDIP - same | 40-pin PDIP - same | 40-pin PDIP - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 80 KB | 80 KB | 48 KB | 64 KB | 96 KB | 16 KB |
| CAN Module | ECAN 2.0B | Legacy CAN | ECAN 2.0B | Legacy CAN | ECAN 2.0B | Legacy CAN |
| RAM | 3.3 KB | 3.3 KB | 3.3 KB | 3.9 KB | 3.3 KB | 0.77 KB |
| EEPROM | 1 KB | 1 KB | 1 KB | 1 KB | 1 KB | 0.25 KB |
| ADC Resolution | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 11 channels | 10-bit, 13 channels | 10-bit, 11 channels | 10-bit, 8 channels |
| Maximum Frequency | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) | 40 MHz (10 MIPS) |
| Operating Temperature | -40°C to +85°C | -40°C to +85°C | -40°C to +85°C | -40°C to +85°C | -40°C to +85°C | -40°C to +85°C |
Key Differentiators
- Hardware ECAN 2.0B with acceptance filtering (vs PIC18F4680-I/P)
- More Flash memory for protocol stacks (vs PIC18F4585-I/P)
- Larger Flash for firmware growth headroom (vs PIC18F4685-I/P)
- Higher Flash and RAM than older PIC18F448 (vs PIC18F448-I/P)
Design Notes
Place a 100 nF decoupling capacitor as close as possible to each VDD pin (pins 11 and 32), with an additional 10 µF bulk capacitor at the supply entry point. The PIC18F4682's ADC is sensitive to supply noise; if the ECAN bus shares the same rail, add a ferrite bead between the digital and analog VDD nodes to prevent switching transients from coupling into ADC measurements. The internal voltage regulator does not require external pass components, but the AVDD pin should be tied to VDD with its own 100 nF bypass.
The 40-pin PDIP is a through-hole package with 2.54 mm pitch. For reliable hand-soldering, use plated through-holes with at least 0.5 mm annular ring. Keep high-current traces (relay drivers) physically separated from the analog ADC inputs (RA0-RA5) by at least 3 mm to avoid capacitive coupling. Route the ECAN differential pair (CANTX/CANRX at pins 35/36) as short and balanced as possible, with 120 Ω termination at each end of the bus.
Configuration bits must be set correctly to enable the internal oscillator, disable the watchdog for debugging, and configure the brown-out reset voltage. Failing to set CONFIG4H can leave the MCU in an unprogrammed state where ICSP does not respond. Always issue a 'Bulk Erase' command via the debugger before re-flashing a new configuration. Also note that the MCLR pin (pin 1) requires a 10 kΩ pull-up to VDD for normal operation; leaving it floating causes intermittent resets.
For ECAN at 1 Mbps, the bus topology must be a single daisy-chained line with 120 Ω termination at both physical ends. Avoid stubs longer than 0.3 m; star topologies cause reflections that corrupt bit timing. The MCP2551 transceiver (or equivalent) handles the 3.3V-to-5V level shifting and bus dominant/recessive drive; the PIC18F4682's CANTX/CANRX pins connect directly to the transceiver's TXD/RXD.
Compliance Information
RoHS and REACH compliance per Microchip material declarations. Industrial temperature grade (-40°C to +85°C) but not AEC-Q100 automotive qualified. For AEC-Q100 qualified alternatives, consider PIC18F4682-I/ML in automotive-qualified QFN package.