Skip to main content
Microchip Technology PIC18F2331-I/SP — Microcontrollers & Processors (MCU / MPU / DSP)

PIC18F2331-I/SP 8-bit MCU, 40 MHz, 8 KB Flash, 28-SPDIP

MPNPIC18F2331-I/SP
Active

Microchip PIC® 18F series PIC18F2331-I/SP, 8-bit MCU, 40 MHz, 8KB Flash, 768 x 8 RAM, 256 x 8 EEPROM, 24 I/O, I²C/SPI/UART, 5x10b ADC, -40°C to 85°C, 28-SPDIP.

$7.2400Ref. price · indicative, final on quote
Packaging28-DIP (0.300", 7.62mm)
RoHSROHS3 Compliant
SeriesPIC® 18F
Independent supplier — new & surplus stockAuthenticity-screened · ESD-safe packingListing updated Jul 2026

Specifications

PIC18F2331-I/SP specifications
ParameterValue
SeriesPIC® 18F
MountingThrough Hole
Oscillator typeInternal
Program memory typeFLASH
Voltage - supply (Vcc (Vdd))4.2V ~ 5.5V
Operating temperature-40°C~85°C(TA)
Speed40MHz
PackageTube
RAM size768 x 8
Core size8-Bit
EEPROM size256 x 8
PeripheralsBrown-out Detect/Reset, LVD, Power Control PWM, QEI, POR, PWM, WDT
ConnectivityI²C, SPI, UART/USART
Number of i (O)24
Core processorPIC
Case28-DIP (0.300\", 7.62mm)
Data convertersA/D 5x10b
Program memory size8KB (4K x 16)

Product details

Motor-control 8-bit MCU in a through-hole DIP

The Microchip PIC18F2331-I/SP is an 8-bit PIC® 18F family MCU built for applications that need deterministic control-loop timing and quadrature encoder feedback. Its 40 MHz core clock drives the Power Control PWM and Quadrature Encoder Interface (QEI) peripherals — a combination that targets brushless DC motor drives, servo positioning, and industrial actuator control. The 28-pin SPDIP through-hole package suits prototyping, low-volume builds, or boards where vibration resistance and socketability matter. With 8 KB Flash, 768 bytes RAM, and 256 bytes EEPROM, it fits firmware footprints for sensor-fusion loops, PID controllers, and Modbus node endpoints.

40 MHz — what it buys in a control loop

At 40 MHz instruction execution (most single-cycle), the PIC18F2331 can service a PWM interrupt and update the duty cycle within a few microseconds. The QEI peripheral decodes encoder pulses in hardware, offloading the core for higher-level commutation logic. The 5-channel 10-bit ADC samples current-sense or position signals at rates that keep the loop bandwidth above 1 kHz — adequate for mid-speed BLDC and stepper drives.

Industrial temperature and active lifecycle

That means it remains qualified for new production builds and can be dual-sourced through independent distribution without LTB risk. ROHS3 compliant.

I/O and connectivity for sensor and actuator nodes

The Brown-out Detect/Reset and Low-Voltage Detect protect against supply droop in noisy industrial environments. Program memory is Flash, so firmware updates are possible in-system via the UART bootloader or ICSP™ — no UV eraser needed.

Frequently asked questions

Does PIC18F2331 support I2C communication?

Yes, the PIC18F2331 includes an I²C interface as part of its Master Synchronous Serial Port (MSSP) module, alongside SPI and UART/USART.

Is PIC18F2331-I/SP RoHS compliant?

Yes, it is ROHS3 compliant.