PIC24HJ128GP502-I/SO - 16-bit 40MIPS 128KB Flash MCU | Microchip
MPN: PIC24HJ128GP502-I/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $11.96 | $11.96 |
| 10 | $10.8 | $108.00 |
| 100 | $9.3 | $930.00 |
| 500 | $8.2 | $4,100.00 |
| 1,000 | $7.45 | $7,450.00 |
PIC24HJ128GP502-I/SO Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, non-volatile program memory, working RAM, and a rich set of peripherals. The PIC24H sits in Microchip's 16-bit MCU taxonomy as a high-performance general-purpose controller, bridging the gap between 8-bit PIC16/PIC18 parts and 32-bit PIC32 devices. Within the broader power-management-and-control hierarchy, the PIC24H functions as the deterministic embedded controller for motor control, power conversion, and sensor-fusion applications.
Key features include 128 KB Flash (43K x 24 words), 8 KB SRAM, an enhanced 16-bit CPU with single-cycle multiply, a 12-bit ADC up to 1.1 Msps, two analog comparators, two UART/SPI/I2C modules, one CAN module, five 16-bit timers, and a Parallel Master Port (PMP). The 28-SOIC package is the 300-mil wide body, supporting hand-soldering and standard reflow profiles.
Architecturally, the PIC24HJ128GP502 uses a modified Harvard core with separate program and data buses, allowing simultaneous instruction fetch and data access. The 40 MIPS throughput derives from a 10 MHz internal oscillator with 4x PLL multiplication and the zero-overhead hardware DO/REPEAT loop engine, which delivers deterministic interrupt latency critical for closed-loop control.
Typical applications include industrial motor control (BLDC, PMSM, and stepper drives), digital power conversion (SMPS, PFC), sensor interfacing and conditioning, automotive body and chassis subsystems, and general-purpose embedded control in factory automation. The integrated CAN module is particularly relevant for industrial networking.
When designing, ensure decoupling follows Microchip's typical application note guidance: a 100 nF ceramic on each VDD/VSS pair within 5 mm, plus a bulk 10 uF tantalum or ceramic near the regulator. The 28-SOIC package has a thermal resistance (theta_JA) in the ~50-65 C/W range, so at full 40 MIPS the chip still dissipates only tens of mW and requires no heatsink.
This page synthesizes distributor pricing, drop-in PIC24H same-family alternatives, and practical design considerations not found in the bare manufacturer datasheet, giving engineers a one-stop reference for sourcing and qualification.
Drop-in alternatives for PIC24HJ128GP502-I/SO — 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/SO (same form factor and footprint) — differing in ADC, Package, Timers, Operating Temperature, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC24HJ128GP502-I/SP
✅ Drop-In✓ In Stock
$4.61 / Unit
View Datasheet →PIC24HJ128GP502T-I/SO
✅ Drop-In✓ In Stock
$4.85 / Unit
View Datasheet →PIC24HJ128GP502-E/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC24HJ128GP502-H/SO
✅ Drop-In📋 Reference alternative (not in catalog)
dsPIC33FJ128GP802-I/SO
✅ Drop-In📋 Reference alternative (not in catalog)
PIC24HJ128GP202-I/SO
✅ Drop-In✓ In Stock
$4.62 / Unit
View Datasheet →PIC24HJ128GP502-I/SO Maximum Ratings & Electrical Characteristics
| Family | PIC24H 16-bit MCU |
| Architecture | Modified Harvard, 16-bit |
| Program Memory (Flash) | 128 KB (43K x 24) |
| Data Memory (SRAM) | 8 KB |
| Operating Frequency | 40 MIPS (max) |
| Supply Voltage (VDD) | 3.0 V to 3.6 V |
| ADC | 12-bit, up to 1.1 Msps (1 module, multiple channels) |
| Comparators | 2 analog comparators |
| UART/SPI/I2C | 2 modules |
| CAN | 1 CAN 2.0B module |
| Timers | 5 x 16-bit timers/counters |
| PMP (Parallel Master Port) | Yes |
| DMA | 8-channel DMA |
| Operating Temperature (I grade) | -40C to +85C |
| Package | 28-pin SOIC (SO), 300-mil wide body |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
| Pin Count | 28 |
PIC24HJ128GP502-I/SO Pin Configuration
| Pin 1 | MCLR — Master Clear (reset) input, active-low |
| Pin 2 | RA0 — Port A bit 0 / analog AN0 / CVREF- |
| Pin 3 | RA1 — Port A bit 1 / analog AN1 / CVREF+ |
| Pin 4 | RB0 — Port B bit 0 / AN2 |
| Pin 5 | RB1 — Port B bit 1 / AN3 |
| Pin 6 | RB2 — Port B bit 2 / AN4 |
| Pin 7 | VDD — Positive supply voltage (3.0-3.6V) |
| Pin 8 | VSS — Ground reference |
| Pin 9 | OSC1 — Oscillator input / CLKIN |
| Pin 10 | OSC2 — Oscillator output / CLKOUT |
| Pin 11 | RB3 — Port B bit 3 / AN5 |
| Pin 12 | RB4 — Port B bit 4 / AN6 |
| Pin 13 | RB5 — Port B bit 5 / AN7 |
| Pin 14 | RB6 — Port B bit 6 / ICD programming clock |
| Pin 15 | RB7 — Port B bit 7 / ICD programming data |
| Pin 16 | RC0 — Port C bit 0 |
| Pin 17 | RC1 — Port C bit 1 |
| Pin 18 | RC2 — Port C bit 2 |
| Pin 19 | RC3 — Port C bit 3 |
| Pin 20 | RC4 — Port C bit 4 |
| Pin 21 | RC5 — Port C bit 5 |
| Pin 22 | RC6 — Port C bit 6 / TX |
| Pin 23 | RC7 — Port C bit 7 / RX |
| Pin 24 | RC8 — Port C bit 8 |
| Pin 25 | RC9 — Port C bit 9 |
| Pin 26 | NC — Not connected (no internal connection) |
| Pin 27 | VSS — Ground reference |
| Pin 28 | VDD — Positive supply voltage (3.0-3.6V) |
Typical Applications
PIC24HJ128GP502-I/SO is suitable for 6 applications: BLDC / PMSM Motor Control, Digital Power Conversion (SMPS / PFC), Industrial CAN / CANopen Nodes, Sensor Signal Conditioning and Data Acquisition, Automotive Body and Chassis Control, General-Purpose Embedded Control.
BLDC / PMSM Motor Control
The PIC24HJ128GP502-I/SO fits BLDC and PMSM motor control thanks to its 40 MIPS throughput and integrated peripherals. Its 12-bit ADC at 1.1 Msps synchronizes with the PWM module to sample phase currents at the center of each PWM period - the standard trapezoidal commutation pattern needs about 20-50 MIPS headroom, well within 40 MIPS. The PIC24H also has 5x16-bit timers for input capture (Hall sensors) and output compare (PWM channels). Compared to a dsPIC33F, this part has no DSP engine, so sensorless FOC requires the dsPIC variant. For sensor-based FOC or trapezoidal commutation, the 128 KB Flash hosts a full state-machine plus fault handling. Place the MCU close to the gate driver IC to minimize switching noise pickup on analog inputs.
Recommended
Digital Power Conversion (SMPS / PFC)
The PIC24HJ128GP502-I/SO is well-suited to switched-mode power supply control loops and power-factor correction. Its 40 MIPS enables average-current-mode control with frequencies up to 200 kHz, where each switching period leaves ~200 instruction cycles for ADC sampling, PI computation, and PWM update. The 12-bit ADC's 1.1 Msps throughput oversamples the current-sense signal to average out switching ripple. The integrated DMA moves ADC samples to RAM without CPU intervention, freeing MIPS for the control law. For PFC boost converters, the second analog comparator can trip on overcurrent without latency. Choose PIC24HJ128GP502-I/SO for sub-kW SMPS; migrate to dsPIC33F for higher power or totem-pole PFC. Decouple VDD with 100 nF + 10 uF within 5 mm of the pins.
Recommended
Industrial CAN / CANopen Nodes
The PIC24HJ128GP502-I/SO integrates a CAN 2.0B controller and is a natural choice for industrial networking nodes such as sensors, valve controllers, or distributed I/O on CANopen or DeviceNet. The CAN module supports standard 11-bit and extended 29-bit identifiers with hardware acceptance filters and masks, reducing firmware overhead. The 40 MIPS core handles CANopen stack processing alongside application logic in C. The 128 KB Flash accommodates a full CANopen stack plus custom application code. The I-grade -40C to +85C temperature range fits industrial enclosures. Add a TJA1050 or MCP2551 CAN transceiver between the MCU and the bus; the MCU pins are not 5V-tolerant on CAN lines without level shifting.
Recommended
Sensor Signal Conditioning and Data Acquisition
The PIC24HJ128GP502-I/SO's 12-bit 1.1 Msps ADC and 40 MIPS throughput make it a strong fit for multi-channel sensor signal conditioning boards. The ADC has multiple input channels, allowing simultaneous reading of temperature, pressure, and flow sensors with software sequencing. DMA transfers ADC results to RAM, offloading the CPU for digital filtering (FIR, IIR) and statistical aggregation. The 8 KB SRAM accommodates circular ADC buffers of several thousand samples. The two UART modules handle RS-232/RS-485 sensor bridges, and the SPI/I2C modules interface to digital sensors. Place the MCU on a separate analog ground island from the digital switching sections to preserve ADC accuracy.
Recommended
Automotive Body and Chassis Control
The PIC24HJ128GP502-I/SO is used in non-safety automotive body and chassis subsystems such as HVAC flap control, seat-position motors, lighting controllers, and body-control modules. The CAN module talks to the vehicle network; the PWM outputs drive motors and LEDs. The I-grade -40C to +85C range covers cabin environments, but for under-hood applications choose the E-grade variant. Note that the standard PIC24HJ128GP502 is NOT AEC-Q100 qualified - for AEC-Q100, Microchip offers specific automotive PIC24 variants. The 128 KB Flash fits CAN-based J1939 stacks plus application logic. Pair with an automotive-grade CAN PHY like MCP2561 or TJA1057.
Recommended
General-Purpose Embedded Control
The PIC24HJ128GP502-I/SO is widely used as a general-purpose 16-bit controller in industrial, consumer, and appliance products. Its 128 KB Flash, 8 KB SRAM, and 40 MIPS support rich user interfaces, multi-protocol stacks, and communication bridges. The PMP (Parallel Master Port) interfaces to graphical LCDs or external memory. The two UART modules act as RS-232/RS-485 bridges, while SPI handles SD cards or flash memory. The integrated DMA, programmable CRC, and hardware math assist reduce firmware complexity. Code is developed in MPLAB X IDE with the XC16 compiler; existing PIC24 code libraries port directly. This is the 'workhorse' 16-bit MCU for products that need more than 8-bit but not 32-bit.
Recommended
Recommended Products Summary
Engineering reference data for PIC24HJ128GP502-I/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC24HJ128GP502T-I/SO | PIC24HJ128GP502-E/SO | PIC24HJ128GP502-H/SO | dsPIC33FJ128GP802-I/SO |
|---|---|---|---|---|---|
| Package | 28-SOIC (SO) | 28-SOIC (SO) - same | 28-SOIC (SO) - same | 28-SOIC (SO) - same | 28-SOIC (SO) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Core Architecture | PIC24H (16-bit) | PIC24H (16-bit) - same | PIC24H (16-bit) - same | PIC24H (16-bit) - same | dsPIC33F (16-bit + DSP engine) |
| Max Performance | 40 MIPS | 40 MIPS | 40 MIPS | 40 MIPS | 40 MIPS + DSP |
| Flash Memory | 128 KB | 128 KB | 128 KB | 128 KB | 128 KB |
| SRAM | 8 KB | 8 KB | 8 KB | 8 KB | 8 KB |
| Temperature Grade | I grade (-40C to +85C) | I grade (-40C to +85C) | E grade (-40C to +125C) | H grade (high-temp) | I grade (-40C to +85C) |
| DSP Engine | No | No | No | No | Yes (MAC + barrel shifter) |
| CAN Module | 1 (CAN 2.0B) | 1 (CAN 2.0B) | 1 (CAN 2.0B) | 1 (CAN 2.0B) | 1 (CAN 2.0B) |
Key Differentiators
- 40 MIPS performance with 128 KB Flash in 28-SOIC (vs PIC24FJ64GA002-I/SO)
- Industrial-grade temperature selection (I/E/H grades) (vs PIC24HJ128GP502-I/SO variants)
- Drop-in scalability to dsPIC33F DSP engine (vs dsPIC33FJ128GP802-I/SO)
Design Notes
Estimated: at 40 MIPS with all peripherals active, the PIC24HJ128GP502-I/SO draws approximately 60-80 mA from a 3.3V supply, dissipating about 200-265 mW. Place a 100 nF ceramic decoupling capacitor within 5 mm of each VDD/VSS pin pair (pins 7/8 and 27/28), plus a bulk 10 uF tantalum or ceramic within 25 mm. The 28-SOIC package has a theta_JA of roughly 50-65 C/W, so no heatsink is required. If the design runs from 5V, add a 3.3V LDO (e.g. MCP1700) ahead of the MCU. Power-on reset and brown-out reset are internal; no external reset IC required for normal operation.
Recommended: keep analog inputs (AN0-AN7) routed on a separate analog ground island that joins the digital ground at a single point near the VSS pins. Avoid routing PWM switching signals (PWMxH/PWMxL) across analog traces to prevent capacitive coupling. Place the 28-SOIC on the top layer with a continuous ground plane on layer 2 to provide a low-impedance return path for switching currents. The SOIC land pattern is JEDEC SO-127 with 1.27 mm pitch; reflow profile follows JEDEC J-STD-020 MSL3 classification.
Critical: do not exceed 3.6V on any VDD pin - permanent damage occurs at 4.0V. The MCLR pin is the only active-low reset input and must be pulled high through a 10 kohm resistor; do not leave floating. The OSC1/OSC2 pins can be configured for an external crystal, external clock, or internal FRC oscillator with PLL; for high-EMC applications, use an external crystal with two 22 pF load capacitors within 5 mm of the pins. The ICD pins (RB6/RB7) double as in-circuit debugger lines - keep them accessible or add test pads to enable MPLAB ICD programming.
Compliance Information
RoHS and REACH compliant per Microchip product page. The standard PIC24HJ128GP502-I/SO is NOT AEC-Q100 qualified; for automotive AEC-Q100, choose dedicated Microchip automotive PIC24 variants. Halogen-free and lead-free confirmed.