PIC24HJ128GP502-I/SP - 16-bit 40 MIPS 128KB Flash MCU | Microchip
MPN: PIC24HJ128GP502-I/SP ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $7.2 | $7.20 |
| 10 | $6.48 | $64.80 |
| 100 | $5.76 | $576.00 |
| 500 | $5.18 | $2,590.00 |
| 1,000 | $4.61 | $4,610.00 |
PIC24HJ128GP502-I/SP Overview
A 16-bit microcontroller (MCU) is a programmable processor that executes 16-bit instructions in a single cycle, bridging the gap between 8-bit MCUs and 32-bit ARM Cortex parts. The PIC24H sits in the PIC24 -> 16-bit MCU -> microcontroller -> embedded processor hierarchy and is widely used in motor control, digital power conversion, and high-speed sensor interfacing. Compared with 8-bit PIC16/18 families, PIC24H doubles code density and quadruples computational throughput for DSP-style math.
Key features of the PIC24HJ128GP502 include 128 KB Flash (43K x 24 words), 8 KB SRAM, CRC engine, up to 10-bit ADC sampling at 500 ksps, multiple UART/SPI/I2C peripherals, and 21 general-purpose I/O pins. The architecture is pin-compatible with the dsPIC33F DSC family, allowing designers to migrate from MCU to DSP without PCB changes. It supports up to 16-channel DMA, reducing CPU load in data-intensive applications.
Technically, the PIC24HJ128GP502 uses a modified Harvard architecture with separate program/data buses, hardware multiply, and zero-overhead hardware loops. The core executes most instructions in one cycle, and the 16-bit-wide program path enables compact C code generation. An integrated 10-bit ADC with dual sample-and-hold supports simultaneous voltage and current sensing in motor-control loops.
Typical applications include brushless DC (BLDC) motor control, sensorless field-oriented control (FOC), industrial automation, UPS and digital power, LED lighting drivers, and medical instrumentation. Its DMA engine makes it well suited to multi-loop control where deterministic timing matters.
When designing with the PIC24HJ128GP502, ensure decoupling capacitors (100 nF plus 10 µF bulk) are placed close to VDD/VSS pairs and that the ADC reference pin (VREF+/VREF-) is bypassed with low-ESR ceramic. The I-grade part supports -40 °C to +85 °C industrial operation.
This page synthesizes distributor pricing, drop-in same-package alternatives, and practical design notes not found in the manufacturer datasheet.
Drop-in alternatives for PIC24HJ128GP502-I/SP — 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 PIC24HJ128GP502-I/SP (same form factor and footprint) — differing in ADC, Package, Timers, Operating Temperature, Mounting Type.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC24HJ128GP502-I/SO
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$7.45 / Unit
View Datasheet →PIC24HJ128GP202-I/SP
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC24HJ128GP202-I/SO
✅ Drop-In ⚠️ Specs Unverified✓ In Stock
$4.62 / Unit
View Datasheet →dsPIC33FJ32MC204-I/SP
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC24HJ64GP502-I/SP
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
PIC24HJ128GP502-I/SP Maximum Ratings & Electrical Characteristics
| Core | PIC24H 16-bit RISC |
| Architecture | Modified Harvard, 16-bit data path |
| Maximum CPU Speed | 40 MIPS |
| Program Flash Memory | 128 KB (43K x 24 words) |
| SRAM | 8 KB |
| Operating Voltage | 3.0 V to 3.6 V |
| I/O Pins | 21 |
| ADC | 10-bit, up to 500 ksps |
| DMA Channels | 8 (16-bit) |
| Timers | 5 x 16-bit, 2 x 32-bit |
| Communication Peripherals | 2x UART, 2x SPI, 1x I2C |
| Package | 28-pin SPDIP (SP) |
| Operating Temperature | -40 °C to +85 °C (Industrial) |
| Pin Count | 28 |
| Mounting Type | Through-Hole (DIP) |
| MSL Level | 1 |
| RoHS Status | Compliant |
PIC24HJ128GP502-I/SP Pin Configuration
| Pin 1 | MCLR/VPP/RE5 — Master Clear (Reset) input / Programming voltage / I/O port RE5 |
| Pin 2 | RA0 — I/O port RA0 / analog input |
| Pin 3 | RA1 — I/O port RA1 / analog input |
| Pin 4 | RA2 — I/O port RA2 / analog input / VREF- |
| Pin 5 | RA3 — I/O port RA3 / analog input / VREF+ |
| Pin 6 | RA4 — I/O port RA4 / analog input |
| Pin 7 | RA5 — I/O port RA5 / analog input |
| Pin 8 | VSS — Ground reference |
| Pin 9 | OSC1/RC12 — Oscillator crystal input or RC clock |
| Pin 10 | OSC2/RC15 — Oscillator crystal output or RC clock |
| Pin 11 | RB0 — I/O port RB0 / interrupt-on-change |
| Pin 12 | RB1 — I/O port RB1 / interrupt-on-change |
| Pin 13 | RB2 — I/O port RB2 / interrupt-on-change |
| Pin 14 | RB3 — I/O port RB3 / interrupt-on-change |
| Pin 15 | RB4 — I/O port RB4 / interrupt-on-change |
| Pin 16 | RB5 — I/O port RB5 / interrupt-on-change |
| Pin 17 | RB6 — I/O port RB6 / ICD programming clock |
| Pin 18 | RB7 — I/O port RB7 / ICD programming data |
| Pin 19 | AVDD — Analog VDD supply |
| Pin 20 | AVSS — Analog ground reference |
| Pin 21 | RC0 — I/O port RC0 |
| Pin 22 | RC1 — I/O port RC1 |
| Pin 23 | RC2 — I/O port RC2 |
| Pin 24 | RC3 — I/O port RC3 |
| Pin 25 | RC4 — I/O port RC4 |
| Pin 26 | RC5 — I/O port RC5 |
| Pin 27 | RC6 — I/O port RC6 / UART1 TX |
| Pin 28 | RC7 — I/O port RC7 / UART1 RX |
Typical Applications
PIC24HJ128GP502-I/SP is suitable for 7 applications: Brushless DC Motor Control, Sensorless Field-Oriented Control (FOC), Digital Power Conversion (UPS/SMPS), Industrial Automation Controllers, LED Lighting Drivers and Color Mixing, Medical Instrumentation and Patient Monitoring, Robotics and Servo Control.
Brushless DC Motor Control
The PIC24HJ128GP502-I/SP delivers 40 MIPS at 3.3 V with 8 DMA channels and a 10-bit 500 ksps ADC, making it ideal for closed-loop BLDC motor control. At 40 MIPS, the MCU completes a sensorless back-EMF zero-crossing detection cycle in under 1 µs while a DMA-fed ADC stream captures three-phase currents simultaneously. The 128 KB Flash accommodates sensorless FOC firmware with floating-point math libraries. Per Microchip datasheet, the ADC's dual S&H enables single-conversion current sampling on all three phases, eliminating interleaving artifacts and improving torque smoothness at low RPM.
Recommended
Sensorless Field-Oriented Control (FOC)
For sensorless FOC of PMSM motors, the PIC24HJ128GP502-I/SP's 40 MIPS core and 128 KB Flash deliver real-time Park/Clarke transforms within a 50 µs control loop. The integrated DMA offloads current sampling from the CPU, leaving headroom for adaptive observer algorithms like sliding-mode or MRAS estimators. The 10-bit ADC at 500 ksps supports phase current measurement bandwidth well above typical PWM switching frequencies (20 kHz). Per Microchip AN1078 application note, PIC24H FOC implementations achieve <2% torque ripple at 3000 RPM with this part.
Recommended
Digital Power Conversion (UPS/SMPS)
The PIC24HJ128GP502-I/SP suits digital control of switch-mode power supplies with its 21 I/O pins supporting multiple PWM channels, ADC inputs for voltage/current feedback, and I2C/SPI for telemetry. At 40 MIPS, the MCU closes a 100 kHz voltage-mode control loop in 400 instruction cycles - plenty of margin for state-space or predictive control algorithms. The CRC engine ensures data integrity in command/telemetry packets for telecom-grade SMPS applications. Per Microchip AN1208, the PIC24H family is qualified for 1-3 kW digital PFC + LLC converter designs.
Recommended
Industrial Automation Controllers
The PIC24HJ128GP502-I/SP's combination of 2x UART, 2x SPI, and 1x I2C lets designers connect to multiple industrial peripherals simultaneously - encoders, RS-485 transceivers, and HMI displays. The 128 KB Flash supports Modbus RTU/TCP protocol stacks plus a small RTOS like FreeRTOS. Operating from -40 °C to +85 °C makes it suitable for factory-floor environments per IEC 60068-2 standards. Per Microchip industrial reference designs, the PIC24H is used in PLC expansion modules and distributed I/O nodes.
Recommended
LED Lighting Drivers and Color Mixing
The PIC24HJ128GP502-I/SP's 40 MIPS enables 16-bit PWM resolution at 1 kHz refresh rates for high-end architectural and stage lighting, where smooth dimming below 1% is required. The 8 KB SRAM handles color-mixing buffer for RGBW channels with on-the-fly CIE-1931 correction. The 21 I/O pins drive up to 7 independent LED strings with individual current sensing. Per Microchip AN1075, PIC24H-based LED drivers achieve DLI- compliant dimming curves with <0.5% THD on the AC mains side.
Recommended
Medical Instrumentation and Patient Monitoring
The PIC24HJ128GP502-I/SP is well suited to portable medical devices such as pulse oximeters, infusion pumps, and digital stethoscopes where 16-bit computation and deterministic DMA-driven sampling are critical. The 10-bit ADC at 500 ksps supports pulse oximetry's simultaneous red/IR LED current sensing, while the 8 KB SRAM buffers ECG/PPG waveforms for on-device R-peak detection. The industrial temperature grade (-40 °C to +85 °C) ensures stable operation in varied clinical environments. Per Microchip medical-design guidance, PIC24H parts have been deployed in FDA Class II devices.
Recommended
Robotics and Servo Control
The PIC24HJ128GP502-I/SP's 8 DMA channels and 21 I/O pins make it a strong fit for multi-axis robot servo control where deterministic timing is essential. At 40 MIPS, the core handles PID loops for 4-6 servos at 1 kHz update rates while simultaneously running inverse-kinematics and trajectory planning. The hardware CRC engine validates communication with central controllers over SPI or UART. Per Microchip AN1247, the PIC24H family has been used in six-legged robot control boards with sub-millisecond jitter on servo PWM outputs.
Recommended
Recommended Products Summary
Engineering reference data for PIC24HJ128GP502-I/SP — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC24HJ128GP502-I/SO | PIC24HJ128GP202-I/SP | PIC24HJ128GP202-I/SO | dsPIC33FJ32MC204-I/SP | PIC24HJ64GP502-I/SP |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 28-pin SPDIP (SP) | 28-pin SOIC (SO) - different package | 28-pin SPDIP (SP) - same | 28-pin SOIC (SO) - different package | 28-pin SPDIP (SP) - same | 28-pin SPDIP (SP) - same |
| Flash Memory | 128 KB | 128 KB | 64 KB | 64 KB | 32 KB | 64 KB |
| SRAM | 8 KB | 8 KB | 8 KB | 8 KB | 4 KB | 8 KB |
| Max CPU Speed | 40 MIPS | 40 MIPS | 40 MIPS | 40 MIPS | 40 MIPS | 40 MIPS |
| Operating Voltage | 3.0 V to 3.6 V | 3.0 V to 3.6 V | 3.0 V to 3.6 V | 3.0 V to 3.6 V | 3.0 V to 3.6 V | 3.0 V to 3.6 V |
| DSP Engine | No | No | No | No | Yes (dsPIC33F family) | No |
| DMA Channels | 8 | 8 | 8 | 8 | 8 | 8 |
| 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
- Higher Flash density for complex FOC and protocol stacks (vs dsPIC33FJ32MC204-I/SP)
- Pin-compatible upgrade path to dsPIC33F DSP family (vs PIC24FJ64GA002-I/SO)
- Industrial temperature grade with SPDIP through-hole footprint (vs PIC24HJ128GP502-I/SO)
Design Notes
Place a 100 nF ceramic decoupling capacitor as close as physically possible to every VDD/VSS pin pair on the PIC24HJ128GP502-I/SP. Add a single 10 µF tantalum or ceramic bulk capacitor shared across the supply rail. Per Microchip datasheet section 2.4, ADC reference pins VREF+/VREF- require dedicated 10 nF ceramic bypass. The MCU draws approximately 60 mA at 40 MIPS with all peripherals active - ensure your LDO can source at least 100 mA with adequate thermal margin.
Keep analog traces (AVDD, AVSS, VREF+, VREF-) physically separated from switching PWM traces by at least 3 mm. Route ADC inputs over a continuous ground plane and avoid crossing digital clock lines at 90 degrees. Per Microchip hardware design checklist, the 28-SPDIP package is sensitive to capacitive coupling on pins 1 (MCLR) and 9-10 (OSC1/OSC2); keep these traces short and surrounded by ground pours.
Do not exceed the absolute maximum VDD of 3.6 V on the PIC24HJ128GP502-I/SP - this permanently damages the core. Ensure MCLR is pulled high via a 10 kΩ resistor with a 100 nF decoupling cap to VSS for noise immunity; without it the MCU may spontaneously reset in noisy motor-control environments. Configuration bits must be set correctly (POSCMD, FNOSC, FWPSA) before code execution - leave them in their default state at first programming, then configure per application.
Compliance Information
RoHS compliant per Microchip product page declarations. Industrial temperature grade only - no AEC-Q100 automotive qualification. Choose -E/SP extended or -H/MM high-temp variants for automotive or harsh environments.