EmbeddedRelated.com
Jacob Beningo
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
21days 00hrs 54min 36sec
Learn More →
PIC18F2431-I/SP

MCHPPIC18F2431-I/SP

Microchip Technology
PIC PIC® 18F Microcontroller IC 8-Bit 40MHz 16KB (8K x 16) FLASH 28-SPDIP
Active596 in stock

Overview

The PIC18F2431-I/SP is a specialized 8-bit microcontroller featuring a high-performance Power Control PWM module and a Quadrature Encoder Interface (QEI). Operating at up to 40MHz, this device is specifically engineered for advanced motion and motor control applications that require precise timing and feedback processing. It includes 16KB of Flash memory and 256 bytes of EEPROM in a breadboard-friendly 28-pin SPDIP package.

Why Choose This Part

The primary advantage is the integration of motion-specific hardware, such as the QEI and a 14-bit resolution PWM module, which offloads intensive tasks from the 8-bit core. Its 5V operation and 25mA source/sink capability allow it to interface directly with many power gate drivers and sensors. Additionally, the nanoWatt technology ensures low power consumption in standby and idle modes for efficiency-sensitive designs.

Applications

Brushless DC (BLDC) Motor Control
Utilizes the Power Control PWM module with up to 8 channels and complementary outputs for efficient three-phase motor commutation.
Closed-Loop Positioning Systems
Leverages the integrated Quadrature Encoder Interface (QEI) to provide high-speed position and velocity feedback without CPU overhead.
Switched Reluctance Motor Drives
The dedicated PWM time base and fault protection inputs make it suitable for complex switched reluctance motor topologies.
AC Induction Motor Control
Generates synchronized variable frequency drive signals using the advanced internal timers and high-resolution PWM.

Key Specifications

Speed 40MHz
RAM Size 768 x 8
Core Size 8-Bit
EEPROM Size 256 x 8
Peripherals Brown-out Detect/Reset, LVD, Power Control PWM, QEI, POR, PWM, WDT
Connectivity I2C, SPI, UART/USART
Mounting Type Through Hole
Number of I/O 24
Core Processor PIC
Package / Case 28-DIP (0.300", 7.62mm)
Data Converters A/D 5x10b
Oscillator Type Internal
Program Memory Size 16KB (8K x 16)
Program Memory Type FLASH
Operating Temperature -40degC ~ 85degC (TA)
Supplier Device Package 28-SPDIP
Voltage - Supply (Vcc/Vdd) 4.2V ~ 5.5V

Getting Started

Development is typically performed using the MPLAB X IDE and the XC8 compiler provided by Microchip. To program the device, a hardware debugger such as the MPLAB PICkit 4 or MPLAB ICD 4 is required. For rapid prototyping, the 28-pin SPDIP package can be used directly on a standard breadboard or universal PCB.

PIC18F2431 Family

Comparing specs that differ across variants. The current part is highlighted.

Part Number Package Stock
PIC18F2431-I/SP (this part) DIP-28 596
PIC18F2431-I/SO SOIC-28 3,637