PIC18F258-E/SP - 8-bit 40MHz 32KB Flash MCU w/ CAN | Microchip
部品番号: PIC18F258-E/SP ✗ 生産終了| 数量 | 単価 | 小計 |
|---|---|---|
| 1 | $8.85 | $8.85 |
| 10 | $7.96 | $79.60 |
| 100 | $7.12 | $712.00 |
| 500 | $6.4 | $3,200.00 |
| 1,000 | $5.75 | $5,750.00 |
PIC18F258-E/SP 概要
Background. A microcontroller (MCU) is a single-chip computer that integrates a CPU core, non-volatile program memory, working RAM, peripherals, and I/O onto one silicon die. The PIC18F family uses a Harvard-architecture 8-bit RISC core with an instruction set optimized for deterministic single-cycle execution, distinguishing PIC18 from earlier PIC16 cores by its larger 16-bit instruction word, linear memory model, and richer peripheral set. Microcontrollers belong to the broader Integrated Circuits category and sit below microprocessors in system complexity but above simple logic ICs.
Key features include 23 digital I/O pins, an integrated CAN 2.0B controller with acceptance filters, a 10-bit ADC with up to 8 channels, two 8-bit and three 16-bit timers, a USART with addressable mode, a Master Synchronous Serial Port (MSSP) configurable for SPI or I2C, and a 5-channel PWM module. The device operates from 2.0V to 5.5V across the industrial temperature range, making it tolerant of both 3.3V and 5V system rails.
The PIC18F258-E/SP is built on an enhanced flash cell supporting >100K erase/write cycles and >40-year data retention. The integrated ECAN module implements CAN 2.0B active with six acceptance filters and two acceptance mask registers, simplifying node design for automotive body and industrial networking. In-system programming via ICSP allows firmware updates without removing the part from the board.
Typical applications include CAN node endpoints in automotive body electronics, industrial sensor and actuator nodes on CANopen or DeviceNet, HVAC control boards, security panel controllers, and low-cost embedded control with serial communication. The extended -E temperature grade makes it suitable for under-hood and outdoor enclosures.
A key design consideration when using this part is the CAN bus transceiver requirement: the integrated ECAN module is a protocol controller only and must be paired with an external 3.3V or 5V CAN transceiver such as the MCP2551 or MCP2561 to drive the physical bus. PCB layout must keep the CAN traces short and matched.
This page synthesizes distributor pricing, drop-in compatible pin alternatives, and practical design guidance not found in the manufacturer datasheet alone.
ドロップイン代替品: PIC18F258-E/SP — 同一パッケージでピン互換。PCBの作り直しが必要な異なるパッケージの部品は除外されています。
このシリーズのバリエーション
同一シリーズでドロップイン互換のモデル: PIC18F258-E/SP (同一形状・フットプリント) — 相違点: Timers, Core Architecture, ADC, Package, MSL Level.
クイック比較ツール — 並列比較する代替部品を選択:
PIC18F258-I/SP
✅ ドロップイン✓ 在庫あり
$6.55 / 個
データシートを見る →PIC18F248-E/SP
✅ ドロップイン✓ 在庫あり
$6.4 / 個
データシートを見る →PIC18F2580-E/SP
✅ ドロップイン✓ 在庫あり
$5.31 / 個
データシートを見る →PIC18F2585-E/SP
✅ ドロップイン✓ 在庫あり
$5.02 / 個
データシートを見る →PIC18F458-E/SP
✅ ドロップイン ⚠️ 仕様未検証📋 参考代替品(カタログ未掲載)
PIC18F258-E/SP 最大定格&電気的特性
| Core Architecture | PIC18 (8-bit RISC, Harvard) |
| Instruction Set | PIC18 enhanced, 16-bit instructions |
| Maximum CPU Frequency | 40 MHz (10 MIPS) |
| Program Memory (Flash) | 32 KB (16K x 16) |
| RAM | 1536 bytes |
| EEPROM | 256 bytes |
| Digital I/O Pins | 23 |
| Supply Voltage (VDD) | 2.0 V to 5.5 V |
| 動作温度 | -40 C to +125 C (extended -E grade) |
| ADC | 10-bit, up to 8 channels |
| Timers | 2 x 8-bit, 3 x 16-bit |
| Communication | ECAN 2.0B, USART, MSSP (SPI/I2C) |
| PWM Channels | 5 |
| パッケージ | 28-pin SPDIP (SP) |
| ICSP / In-Circuit Programming | Yes |
| 実装タイプ | Through-Hole |
| MSLレベル | 1 (unlimited) |
PIC18F258-E/SP ピン構成
| ピン 1 | MCLR — Master Clear (reset) input, active low |
| ピン 2 | RA0/AN0 — Digital I/O / Analog input channel 0 |
| ピン 3 | RA1/AN1 — Digital I/O / Analog input channel 1 |
| ピン 4 | RA2/AN2/VREF- — Digital I/O / Analog input 2 / ADC negative reference |
| ピン 5 | RA3/AN3/VREF+ — Digital I/O / Analog input 3 / ADC positive reference |
| ピン 6 | RA4/T0CKI — Digital I/O / Timer0 clock input |
| ピン 7 | RA5/AN4/SS — Digital I/O / Analog input 4 / SPI slave select |
| ピン 8 | RE0/RD/AN5 — Digital I/O / Read control for parallel slave port |
| ピン 9 | RE1/WR/AN6 — Digital I/O / Write control for parallel slave port |
| ピン 10 | RE2/CS/AN7 — Digital I/O / Chip select for parallel slave port |
| ピン 11 | VDD — Positive supply voltage (2.0V-5.5V) |
| ピン 12 | VSS — Ground reference |
| ピン 13 | OSC1/CLKI — Crystal oscillator input / external clock input |
| ピン 14 | OSC2/CLKO — Crystal oscillator output / clock output |
| ピン 15 | RC0/T1OSO/T1CKI — Digital I/O / Timer1 oscillator output / Timer1 clock input |
| ピン 16 | RC1/T1OSI/CCP2 — Digital I/O / Timer1 oscillator input / CCP2 output |
| ピン 17 | RC2/CCP1 — Digital I/O / CCP1 PWM output |
| ピン 18 | RC3/SCK/SCL — Digital I/O / SPI clock / I2C clock |
| ピン 19 | RD0/C1IN+/PSP0 — Digital I/O / Comparator1 non-inverting input / Parallel slave port bit 0 |
| ピン 20 | RD1/C1IN-/PSP1 — Digital I/O / Comparator1 inverting input / PSP bit 1 |
| ピン 21 | RD2/C2IN+/PSP2 — Digital I/O / Comparator2 non-inverting input / PSP bit 2 |
| ピン 22 | RD3/C2IN-/PSP3 — Digital I/O / Comparator2 inverting input / PSP bit 3 |
| ピン 23 | RC4/SDI/SDA — Digital I/O / SPI data in / I2C data |
| ピン 24 | RC5/SDO — Digital I/O / SPI data out |
| ピン 25 | RC6/TX/CK — Digital I/O / USART async transmit / clock |
| ピン 26 | RC7/RX/DT — Digital I/O / USART async receive / data |
| ピン 27 | CANTX — ECAN transmit output to external transceiver |
| ピン 28 | CANRX — ECAN receive input from external transceiver |
主な用途
PIC18F258-E/SP の用途: 6 件s: Automotive CAN Body Electronics, Industrial CANopen / DeviceNet Nodes, HVAC Control Boards, Security and Access Control Panels, Low-Cost Embedded Sensor Nodes, Educational and Development Boards.
Automotive CAN Body Electronics
The PIC18F258-E/SP's integrated ECAN 2.0B controller and -40C to +125C extended temperature grade make it a strong fit for automotive body control modules including door modules, seat controllers, and lighting nodes. The ECAN module implements six acceptance filters and two mask registers that allow selective message filtering at the hardware level, offloading the CPU from software bit-banging. With 32 KB Flash and 1.5 KB RAM, the device handles CAN stack plus application logic comfortably. Paired with the MCP2551 5V CAN transceiver, the BOM cost remains low while delivering reliable 1 Mbps CAN bus performance.
おすすめ
Industrial CANopen / DeviceNet Nodes
For industrial sensor and actuator nodes on CANopen or DeviceNet networks, the PIC18F258-E/SP offers the right balance of integrated peripherals and processing headroom. The 10-bit ADC with up to 8 channels handles analog sensor inputs directly, while the ECAN module supports the CANopen CiA 301 and DeviceNet Volume I protocols via firmware. The MSSP module can drive SPI sensors or I2C peripherals for expansion. The 28-pin SPDIP package is convenient for through-hole industrial designs that require mechanical robustness in factory environments with vibration.
おすすめ
HVAC Control Boards
Heating, ventilation, and air-conditioning control boards require a mix of analog inputs (temperature sensors, pressure transducers), PWM outputs (fan speed control, valve actuators), and serial communication for thermostat or building management system interfaces. The PIC18F258-E/SP's 10-bit ADC, 5 PWM channels, USART, and MSSP cover all these requirements in a single chip. The -40C to +125C extended temperature grade handles the thermal environment near boilers and rooftop units. The 32 KB Flash accommodates complex control algorithms including PID loops.
おすすめ
Security and Access Control Panels
Security panels combine sensor monitoring (door contacts, PIR detectors, glass-break sensors), keypad or RFID reader interfaces, and communication to central stations or remote monitoring services. The PIC18F258-E/SP's 23 I/O pins handle multiple zones directly, the USART interfaces to GSM or Ethernet modules for alarm reporting, and the ECAN can connect to a multi-panel CAN backbone in larger installations. The 256-byte EEPROM stores installer codes and event logs without wear on Flash. ICSP allows firmware updates in the field.
おすすめ
Low-Cost Embedded Sensor Nodes
For cost-sensitive embedded designs that need CAN plus general-purpose I/O without stepping up to a 32-bit ARM MCU, the PIC18F258-E/SP offers the right combination of price and capability. The 28-pin SPDIP is friendly to hand-soldered prototypes and low-volume production. With 10 MIPS performance, the part handles basic sensor processing, control loops, and CAN communication in firmware. At $5.75 per unit at 1000-piece quantity (as of 2026-09-27), the BOM cost is competitive for distributed sensor networks.
おすすめ
Educational and Development Boards
The PIC18F258-E/SP's through-hole SPDIP package is ideal for educational kits, hobby projects, and development boards where students and engineers need to swap chips, probe pins with oscilloscopes, and breadboard circuits. The 28-pin DIP fits standard 0.1-inch pitch breadboards and IC sockets. Microchip's MPLAB X IDE supports this part with free C compilers (XC8) and debugger/programmer support via PICkit 3, PICkit 4, MPLAB ICD 3, or MPLAB ICD 5. The combination is widely used in universities for embedded systems courses.
おすすめ
おすすめ製品の概要
エンジニアリング参考データ: PIC18F258-E/SP — 比較、設計ガイダンス、コンプライアンス情報。
選定ガイド
代替品との比較
| パラメータ | この製品 | PIC18F258-I/SP | PIC18F248-E/SP | PIC18F2580-E/SP | PIC18F2585-E/SP | PIC18F458-E/SP |
|---|---|---|---|---|---|---|
| Package | 28-pin SPDIP (SP) | 28-pin SPDIP - same | 28-pin SPDIP - same | 28-pin SPDIP - same | 28-pin SPDIP - same | 28-pin SPDIP - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 32 KB | 32 KB | 16 KB | 32 KB | 48 KB | 32 KB |
| RAM | 1536 bytes | 1536 bytes | 768 bytes | 2048 bytes | 3328 bytes | 1536 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| CPU Frequency | 40 MHz | 40 MHz | 40 MHz | 32 MHz | 40 MHz | 40 MHz |
| Temperature Range | -40C to +125C | -40C to +85C | -40C to +125C | -40C to +125C | -40C to +125C | -40C to +125C |
| CAN Controller | ECAN 2.0B | ECAN 2.0B | ECAN 2.0B | ECAN 2.0B enhanced | ECAN 2.0B enhanced | ECAN 2.0B |
| Pin Count / Package | 28 SPDIP | 28 SPDIP | 28 SPDIP | 28 SPDIP | 28 SPDIP | 28 SPDIP (/SP = 28-pin) |
主な差別化要因
- Only 28-pin SPDIP PIC with both CAN and extended +125C temp grade (vs PIC18F258-I/SP)
- Double the Flash of the smaller 248 variant (vs PIC18F248-E/SP)
- Newer ECAN enhanced peripheral in 2580/2585 successors (vs PIC18F2580-E/SP / PIC18F2585-E/SP)
設計ノート
The integrated ECAN module is a protocol controller only - it generates and parses CAN frames but cannot drive the physical bus. An external CAN transceiver such as MCP2551 (5V) or MCP2561 (3.3V) MUST be added between the PIC18F258-E/SP CANTX/CANRX pins (27/28) and the CANH/CANL bus lines. Skipping this is the most common error when migrating from a soft-CAN bit-bang implementation. Terminate the bus with 120 ohm resistors at each end only - not on every node.
Place a 100 nF decoupling capacitor as close as possible to the VDD pin (pin 11) and a bulk capacitor (e.g., 10 uF tantalum or ceramic) on the same supply rail within 1 inch. The AVDD/AVSS pins if used should be filtered with their own 10 uH inductor and 100 nF cap for clean ADC reference. Keep crystal traces short and symmetric to OSC1/OSC2 (pins 13/14); long crystal traces cause clock jitter and EMI. Use a ground guard ring around the crystal to limit radiated emissions.
The PIC18F258-E/SP typically draws 10-25 mA active at 40 MHz depending on I/O loading. For CAN bus applications, budget additional 30-70 mA for the MCP2551/MCP2561 transceiver plus bus load. A 3.3V LDO such as MCP1700 (250 mA) or 5V regulator from the system rail is adequate. The PIC18F258-E/SP has an internal brown-out reset that triggers at approximately 4.0V (BOREN enabled in config words); enable this in new designs to avoid corrupted Flash writes during power droop.
CAN bus signal integrity requires twisted-pair cabling (typically 2-wire shielded or unshielded twisted), 120 ohm termination at both ends only, and stubs shorter than 0.3 m for 1 Mbps operation. The CANH-to-CANL differential impedance should be 120 ohms. Common-mode chokes (e.g., ACT45B-510) at the transceiver output improve EMI immunity in industrial environments. The MCP2551/MCP2561 transceivers themselves provide up to +/- 14 kV ESD (HBM) on the bus pins but additional TVS protection (PESD1CAN) is recommended for outdoor/automotive use.
Use ICSP pins (RB6/PGC and RB7/PGD, plus MCLR/VPP) for in-circuit programming and debugging. Reserve these pins or assign them carefully so they are not latched low at reset, which would prevent ICSP entry. Add a 10 kohm pull-up on MCLR (pin 1) and route the ICSP connector pads (VPP, PGC, PGD, GND, VDD) to a 5-pin header or test points. Microchip's PICkit 4 and ICD 5 can program/debug this part with the standard RJ-11 ICSP cable.
コンプライアンス情報
RoHS and REACH compliance not explicitly listed in web snippets; the part is marked lead-free in the Microchip product page. AEC-Q100 is NOT qualified - this is an industrial/automotive-friendly part but not formally AEC-Q100 certified. For AEC-Q100 CAN MCUs consider PIC18F458-I/PT or dsPIC33 variants.