PIC18F458-I/P - 8-bit 40MHz 32KB Flash MCU w/CAN | Microchip
MPN: PIC18F458-I/P ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $11.5 | $11.50 |
| 10 | $10.4 | $104.00 |
| 100 | $9.1 | $910.00 |
| 500 | $8.2 | $4,100.00 |
| 1,000 | $7.45 | $7,450.00 |
PIC18F458-I/P Overview
A microcontroller (MCU) is a single-chip computer containing a CPU core, non-volatile program memory (Flash), volatile data memory (RAM), and a rich set of peripheral blocks. Microcontrollers sit at the bottom of the embedded computing hierarchy (microcontroller -> embedded processor -> semiconductor) and are the building blocks of virtually every electronic product that contains firmware. The PIC18F458 family specifically targets cost-sensitive applications that require networked communication, combining a legacy-friendly DIP package with an on-chip CAN controller.
Key features of the PIC18F458-I/P include 34 digital I/O pins, a 10-bit ADC with up to 8 channels, two 8-bit and three 16-bit timers, a 9-bit Enhanced USART, an SSP module supporting SPI and I2C (master/slave), two analog comparators, and the integrated CAN 2.0B controller that supports both standard and extended identifier frames. The Harvard RISC architecture with 16-bit instructions and an 8-bit data path delivers predictable interrupt latency and deterministic execution suitable for real-time control.
From a technical depth perspective, the PIC18F458's Flash memory supports in-circuit serial programming (ICSP) via two pins, allowing firmware updates in the field without removing the chip from the board. Brown-out reset (BOR), power-on reset (POR), and the watchdog timer (WDT) with its own on-chip RC oscillator provide robust operation under noisy industrial conditions. The device operates from 2.0V to 5.5V, enabling both 3.3V and 5V system designs.
Typical applications for the PIC18F458-I/P include industrial CAN bus nodes (sensor/actuator interfaces, motor drives, factory automation), automotive body and comfort electronics (non-safety subsystems, HVAC controllers), and embedded control in legacy through-hole designs. The CAN peripheral also makes it attractive for any 5V industrial network bridge.
When designing with this part, engineers should note that the through-hole PDIP-40 footprint makes the PIC18F458-I/P ideal for prototyping, hobby projects, and educational labs where socketed MCU replacement is valuable; surface-mount TQFP variants exist for production. The CAN module requires an external transceiver (e.g. MCP2551 or TJA1050) to physically drive the bus.
This page synthesizes distributor pricing, drop-in same-package alternatives, application reference designs, and design notes curated for engineers evaluating the PIC18F458-I/P as a CAN-capable 8-bit MCU replacement.
Drop-in alternatives for PIC18F458-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 PIC18F458-I/P (same form factor and footprint) — differing in Package, ADC, Operating Temperature, Timers, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC18F458-E/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC18F4580-I/P
✅ Drop-In✓ In Stock
$5.1 / Unit
View Datasheet →PIC18F4585-I/PT
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$5.73 / Unit
View Datasheet →PIC18F448-I/P
✅ Drop-In✓ In Stock
$4.42 / Unit
View Datasheet →PIC18F452-I/P
✅ Drop-In✓ In Stock
$5.1 / Unit
View Datasheet →PIC18F458-I/P Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC18 (8-bit Harvard RISC) |
| Program Memory (Flash) | 32 KB (16K x 16 words) |
| Data RAM | 1.5 KB (1536 bytes) |
| Data EEPROM | 256 bytes |
| Maximum CPU Speed | 40 MHz (10 MIPS) |
| Operating Voltage | 2.0 V to 5.5 V |
| Operating Temperature | -40 C to +85 C (industrial) |
| Digital I/O Pins | 34 |
| ADC | 10-bit, up to 8 channels |
| Timers | Two 8-bit + three 16-bit |
| CAN Module | CAN 2.0B active, standard + extended IDs |
| Serial Interfaces | Enhanced USART, MSSP (SPI / I2C master+slave) |
| Analog Comparators | 2 |
| Package | PDIP-40 (through-hole, 600 mil) |
| Mounting Type | Through-Hole |
| MSL Level | 1 (unlimited floor life) |
| RoHS Status | Compliant |
| Lead-Free | Yes |
| Programming Interface | ICSP (In-Circuit Serial Programming) |
PIC18F458-I/P Pin Configuration
| Pin 1 | MCLR/VPP — Master Clear (reset) input / programming voltage |
| Pin 2 | RA0/AN0 — Digital I/O / analog input channel 0 |
| Pin 3 | RA1/AN1 — Digital I/O / analog input channel 1 |
| Pin 4 | RA2/AN2/VREF- — Digital I/O / analog input / ADC VREF- |
| Pin 5 | RA3/AN3/VREF+ — Digital I/O / analog input / ADC VREF+ |
| Pin 6 | RA4/T0CKI — Digital I/O / Timer0 clock input |
| Pin 7 | RA5/AN4/SS — Digital I/O / analog input / SPI slave select |
| Pin 8 | RE0/RD/AN5 — Digital I/O / read control / analog input |
| Pin 9 | RE1/WR/AN6 — Digital I/O / write control / analog input |
| Pin 10 | RE2/CS/AN7 — Digital I/O / chip select / analog input |
| Pin 11 | VDD — Positive supply (2.0V to 5.5V) |
| 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/T1CKI — Digital I/O / Timer1 crystal out / clock in |
| Pin 16 | RC1/T1OSI/CCP2 — Digital I/O / Timer1 crystal in / CCP2 |
| Pin 17 | RC2/CCP1 — Digital I/O / CCP1 (PWM/capture/compare) |
| Pin 18 | RC3/SCK/SCL — Digital I/O / SPI clock / I2C clock |
| Pin 19 | RD0/PSP0/C1IN+ — Digital I/O / parallel slave port / comparator input |
| Pin 20 | RD1/PSP1/C1IN- — Digital I/O / parallel slave port / comparator input |
| Pin 21 | RD2/PSP2/C2IN+ — Digital I/O / parallel slave port / comparator input |
| Pin 22 | RD3/PSP3/C2IN- — Digital I/O / parallel slave port / comparator input |
| 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 TX / clock |
| Pin 26 | RC7/RX/DT — Digital I/O / USART RX / data |
| Pin 27 | RD4/PSP4 — Digital I/O / parallel slave port bit 4 |
| Pin 28 | RD5/PSP5/P1B — Digital I/O / parallel slave port / PWM output |
| Pin 29 | RD6/PSP6/P1C — Digital I/O / parallel slave port / PWM output |
| Pin 30 | RD7/PSP7/P1D — Digital I/O / parallel slave port / PWM output |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply (2.0V to 5.5V) |
| Pin 33 | RB0/INT0 — Digital I/O / external interrupt 0 |
| Pin 34 | RB1/INT1 — Digital I/O / external interrupt 1 |
| Pin 35 | RB2/INT2/CANTX — Digital I/O / external interrupt 2 / CAN TX |
| Pin 36 | RB3/INT3/CANRX — Digital I/O / external interrupt 3 / CAN RX |
| Pin 37 | RB4 — Digital I/O with interrupt-on-change |
| Pin 38 | RB5 — Digital I/O with interrupt-on-change |
| Pin 39 | RB6/PGC — Digital I/O / ICSP clock |
| Pin 40 | RB7/PGD — Digital I/O / ICSP data |
Typical Applications
PIC18F458-I/P is suitable for 6 applications: Industrial CAN Bus Node, Automotive Body Electronics, Embedded Control Education & Prototyping, 5V Industrial Sensor Hub, Building Automation Network Bridge, Legacy 8-bit CAN Drop-In Replacement.
Industrial CAN Bus Node
The PIC18F458-I/P's integrated CAN 2.0B controller (standard + extended IDs, dedicated acceptance filters) makes it a natural fit for industrial CAN nodes such as sensor hubs, actuator drivers, and motor controllers. Place the MCU on a 5V rail alongside an external MCP2551 or TJA1050 CAN transceiver; the dedicated CANRX/CANTX pins route to the transceiver without crossing the digital crossbar. With 32 KB Flash and 1.5 KB RAM the device comfortably runs a CANopen or DeviceNet slave stack while leaving headroom for application code. Real-time CAN frame handling is deterministic thanks to the 10 MIPS RISC core and dedicated hardware acceptance masks.
Recommended
Automotive Body Electronics
Body and comfort subsystems (HVAC controllers, mirror adjusters, seat controllers, lighting modules) commonly use 8-bit CAN-enabled MCUs. The PIC18F458-I/P's industrial -40C to +85C range plus the upgraded PIC18F458-E/P -40C to +125C variant covers most cabin-temperature environments. Its 34 I/O pins drive relays, MOSFET gates, and LED strings directly, while the Enhanced USART and MSSP provide diagnostics and LIN compatibility. Brown-out reset and watchdog timer protect against automotive load-dump transients when paired with proper supply conditioning.
Recommended
Embedded Control Education & Prototyping
The PIC18F458-I/P in PDIP-40 through-hole package is ideal for university curricula, hobby projects, and breadboard prototyping. The 600-mil DIP footprint accepts machined-pin sockets so chips can be swapped between labs, and the 40-pin count gives students access to every peripheral family (USART, SPI, I2C, CAN, ADC, timers) on a single chip. MPLAB X IDE, XC8 compiler, and the PICkit 3/4 programmer/debugger target this family out of the box. Students learn real CAN networking without the surface-mount reflow barrier that QFP variants impose.
Recommended
5V Industrial Sensor Hub
Industrial sensor hubs aggregating temperature, pressure, flow, and proximity signals benefit from the PIC18F458-I/P's 8-channel 10-bit ADC, two analog comparators, and three 16-bit timers for precise pulse counting. The 32 KB Flash supports local calibration tables and Modbus RTU slave firmware, while the 1.5 KB RAM holds packet buffers. Power consumption at 5V with sleep modes is suitable for permanently-powered 24V loop-powered sensors; the 2.0V minimum VDD allows battery-backed retention domains.
Recommended
Building Automation Network Bridge
Building automation gateways often bridge between CAN-bus subnets (HVAC controllers) and upstream BACnet/IP or Modbus TCP networks. The PIC18F458-I/P's CAN controller manages the local HVAC bus while the Enhanced USART or MSSP talks to an external Ethernet or Wi-Fi module (e.g. ENC28J60 or MRF24WN0MA). Its 32 KB Flash holds a TCP/IP stack stub and routing tables; 1.5 KB RAM is sufficient for small CAN frame queues. The DIP package simplifies retrofit installations where the gateway PCB must be serviceable in the field.
Recommended
Legacy 8-bit CAN Drop-In Replacement
Maintenance and spare-part channels often need an exact replacement for obsolete or end-of-life CAN-enabled 8-bit MCUs. The PIC18F458-I/P in PDIP-40 remains an active-production Microchip part with a 17-week lead time and broad distributor stock, making it a safe drop-in for older designs using discontinued PIC16 or competing Freescale/NXP 8-bit CAN parts. Its footprint and pinout are stable across the -I/P and -E/P variants, simplifying long-lifecycle industrial product support.
Recommended
Recommended Products Summary
Engineering reference data for PIC18F458-I/P — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC18F458-E/P | PIC18F4580-I/P | PIC18F4585-I/P | PIC18F448-I/P | PIC18F452-I/P |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | PDIP-40 | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same | PDIP-40 - same |
| Program Memory (Flash) | 32 KB | 32 KB | 32 KB | 48 KB | 16 KB | 32 KB |
| Data RAM | 1.5 KB | 1.5 KB | 2 KB | 3.3 KB | 768 B | 1.5 KB |
| CAN Module | CAN 2.0B | CAN 2.0B | ECAN | ECAN | CAN 2.0B | No |
| ADC | 10-bit, 8 ch | 10-bit, 8 ch | 12-bit, 11 ch | 12-bit, 11 ch | 10-bit, 8 ch | 10-bit, 8 ch |
| Temperature Range | -40C to +85C (industrial) | -40C to +125C (extended) | -40C to +85C (industrial) | -40C to +85C (industrial) | -40C to +85C (industrial) | -40C to +85C (industrial) |
| USB | None | None | None | USB 2.0 FS OTG | None | None |
Key Differentiators
- Only same-package drop-in that adds USB 2.0 FS OTG while keeping CAN (vs PIC18F4585-I/P)
- Highest 32 KB Flash with on-chip CAN in 40-pin PDIP at this exact spec tier (vs PIC18F448-I/P)
- Single CAN-only 32 KB part with no USB overhead (vs PIC18F452-I/P)
Design Notes
The PIC18F458-I/P operates from 2.0V to 5.5V with separate AVDD/AVSS pins tied to VDD/VSS through ferrite beads when the ADC is in use. Place a 100 nF decoupling capacitor within 5 mm of each VDD/VSS pair and a bulk 10 uF tantalum at the regulator output. Brown-out reset (BOR) should be enabled in CONFIG to protect Flash from incomplete writes during supply dips.
Keep the 40 MHz crystal (or external clock) traces under 10 mm and shield with a ground guard ring; the OSC1/OSC2 pins are noise-sensitive. Route CANH/CANL as a twisted pair from the external MCP2551 transceiver with 120 ohm termination at each bus end. The ICSP pins RB6/PGC and RB7/PGD should be brought to a programming header without inline resistors so debuggers (PICkit 4, ICD 5) can attach in-circuit.
Do not drive CANH/CANL directly from the MCU - the PIC18F458's CAN pins are logic-level only and will be damaged without an external CAN transceiver. MCLR must never be left unconnected; tie it to VDD through a 10 kohm resistor so the reset capacitor can charge properly. The two VDD/VSS pairs (pins 11/12 and 31/32) must both be decoupled; floating one pair causes erratic ADC readings and PLL-like noise on OSC2.
Estimated: at 40 MHz with all peripherals active the PIC18F458-I/P draws roughly 25 mA from a 5V supply, dissipating about 125 mW - well within the PDIP-40 theta_JA of ~50 C/W. Even in a sealed enclosure this gives a junction rise under 10 C; no heatsink is needed. For sleep-mode battery applications current drops to microamp levels with the WDT disabled.
Compliance Information
RoHS compliant per Microchip product page; lead-free PDIP package. The PIC18F458 family is not AEC-Q100 qualified; for automotive safety-critical applications consider dsPIC33 or PIC32 families.