PIC24HJ128GP504-H/PT - 16-bit 20MIPS 128KB Flash MCU | Microchip
MPN: PIC24HJ128GP504-H/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $11.5 | $11.50 |
| 10 | $10.35 | $103.50 |
| 100 | $9.2 | $920.00 |
| 500 | $8.05 | $4,025.00 |
| 1,000 | $7.2 | $7,200.00 |
PIC24HJ128GP504-H/PT Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program memory (Flash), data memory (SRAM), and a rich set of peripherals onto one die. Within the embedded-system taxonomy, the PIC24HJ128GP504 sits in the 16-bit MCU tier - a step above 8-bit MCUs in arithmetic throughput but below 32-bit Cortex-M devices in raw performance. It belongs to the PIC24H sub-family, which is pin-compatible with the dsPIC33F DSP-capable siblings, giving designers an upgrade path to DSP without board changes.
Key features include 128 KB (43K x 24) self-programmable Flash, 8 KB SRAM, a 12-bit A/D converter with up to 13 input channels, two UART modules, two SPI modules, and a 16-bit timer/capture/compare/PWM block. The device operates from 3.0V to 3.6V and integrates a 4x PLL for flexible clocking from external crystals or oscillators. An on-chip DMA controller with 8 channels offloads data movement from the CPU, accelerating throughput for sensor arrays and communication stacks.
Architecturally, the PIC24HJ128GP504 uses a 16-bit wide datapath with 24-bit instruction words, enabling single-cycle MAC operations on 16-bit data. The 5-stage pipeline and hardware multiply/divide unit deliver up to 20 MIPS at 40 MHz FOSC, while deterministic interrupt response (5-cycle latency) simplifies real-time control loops. The advanced analog block integrates sample-and-hold plus simultaneous sampling, supporting motor-control and power-conversion applications.
Typical applications include industrial motor control (BLDC, PMSM, ACIM), sensor signal conditioning, digital power conversion, automotive body and chassis ECUs, and high-temperature downhole or under-hood instrumentation. The 150C rating makes it suitable for harsh-environment telemetry. The wide peripheral integration reduces external component count, shrinking BOM cost in volume production.
When designing with this MCU, leverage the DMA controller to keep the CPU free for control loops and use the peripheral trigger mechanism for deterministic ADC sampling. For new designs, evaluate the -H temperature grade carefully - it is more expensive than the -I grade and may have longer lead times, so design prototypes with the -I variant and qualify the -H version for production.
This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet.
Drop-in alternatives for PIC24HJ128GP504-H/PT — 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 PIC24HJ128GP504-H/PT (same form factor and footprint) — differing in Package, Core Architecture, Maximum CPU Speed, Operating Temperature, Timers.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC24HJ128GP504-E/PT
✅ Drop-In✓ In Stock
$4.95 / Unit
View Datasheet →PIC24HJ128GP504-H/ML
✅ Drop-In✓ In Stock
$6.95 / Unit
View Datasheet →PIC24HJ128GP504-I/PT
✅ Drop-In✓ In Stock
$5.07 / Unit
View Datasheet →DSPIC33FJ128GP804-I/PT
✅ Drop-In✓ In Stock
$4.46 / Unit
View Datasheet →dsPIC33FJ128GP804-E/PT
✅ Drop-In📋 Reference alternative (not in catalog)
PIC24HJ128GP306-I/PT
✅ Drop-In✓ In Stock
$4.05 / Unit
View Datasheet →PIC24HJ128GP504-H/PT Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC24H 16-bit MCU |
| Program Memory (Flash) | 128 KB (43K x 24) |
| Data Memory (SRAM) | 8 KB |
| Maximum CPU Speed | 20 MIPS at 40 MHz FOSC |
| Operating Voltage (VDD) | 3.0 V to 3.6 V |
| Operating Temperature | -40 C to +150 C (H grade) |
| Package | 44-pin TQFP (PT), 10x10 mm |
| ADC | 12-bit, up to 13 input channels |
| DMA Channels | 8 channels |
| UART Modules | 2 |
| SPI Modules | 2 |
| I2C Modules | 1 |
| Timers (16-bit) | 5 (Timer1-Timer5) |
| Input/Output Pins | 35 I/O |
| PLL | 4x on-chip PLL |
| Pin Compatibility | Pin-compatible with dsPIC33F family |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
PIC24HJ128GP504-H/PT Pin Configuration
| Pin 1 | RP9/CN22/PMD3/RA9 — Remappable I/O, change notification, PMP data bit 3 |
| Pin 2 | RP22/PMA0/CN18/RC6 — Remappable I/O, PMP address bit 0 |
| Pin 3 | RP23/PMA1/CN17/RC7 — Remappable I/O, PMP address bit 1 |
| Pin 4 | RP24/PMA2/CN16/RC8 — Remappable I/O, PMP address bit 2 |
| Pin 5 | RP25/PMA3/CN15/RC9 — Remappable I/O, PMP address bit 3 |
| Pin 6 | VSS — Ground reference |
| Pin 7 | VDD — Positive supply (3.0V to 3.6V) |
| Pin 8 | RP2/CN30/PMD0/RB2 — Remappable I/O, change notification, PMP data bit 0 |
| Pin 9 | RP3/CN29/PMD1/RB3 — Remappable I/O, change notification, PMP data bit 1 |
| Pin 10 | RP4/CN1/RB4 — Remappable I/O, change notification |
| Pin 11 | RP5/CN2/RB5 — Remappable I/O, change notification |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/RA0 — Crystal oscillator input / GPIO |
| Pin 14 | OSC2/RA1 — Crystal oscillator output / GPIO |
| Pin 15 | TDO/RA2 — JTAG test data out / GPIO |
| Pin 16 | TDI/RA3 — JTAG test data in / GPIO |
| Pin 17 | TMS/RA4 — JTAG test mode select / GPIO |
| Pin 18 | TCK/RA5 — JTAG test clock / GPIO |
| Pin 19 | VSS — Ground reference |
| Pin 20 | VDD — Positive supply (3.0V to 3.6V) |
| Pin 21 | RP6/CN3/PMA4/RB6 — Remappable I/O, change notification, PMP address bit 4 |
| Pin 22 | RP7/CN4/PMA5/RB7 — Remappable I/O, change notification, PMP address bit 5 |
| Pin 23 | RP8/CN5/PMA6/RB8 — Remappable I/O, change notification, PMP address bit 6 |
| Pin 24 | RP9/CN6/PMA7/RB9 — Remappable I/O, change notification, PMP address bit 7 |
| Pin 25 | RP10/CN7/PMCS1/PMA8/RB10 — Remappable I/O, change notification, PMP chip select 1 |
| Pin 26 | RP11/CN8/PMCS2/PMA9/RB11 — Remappable I/O, change notification, PMP chip select 2 |
| Pin 27 | RP12/CN9/PMA10/RB12 — Remappable I/O, change notification, PMP address bit 10 |
| Pin 28 | RP13/CN10/PMA11/RB13 — Remappable I/O, change notification, PMP address bit 11 |
| Pin 29 | RP14/CN11/PMA12/RB14 — Remappable I/O, change notification, PMP address bit 12 |
| Pin 30 | RP15/CN12/PMA13/RB15 — Remappable I/O, change notification, PMP address bit 13 |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply (3.0V to 3.6V) |
| Pin 33 | RP16/CN13/PMA14/RC0 — Remappable I/O, change notification, PMP address bit 14 |
| Pin 34 | RP17/CN14/PMA15/RC1 — Remappable I/O, change notification, PMP address bit 15 |
| Pin 35 | RP18/CN15/PMD4/RC2 — Remappable I/O, PMP data bit 4 |
| Pin 36 | RP19/CN16/PMD5/RC3 — Remappable I/O, PMP data bit 5 |
| Pin 37 | RP20/CN17/PMD6/RC4 — Remappable I/O, PMP data bit 6 |
| Pin 38 | RP21/CN18/PMD7/RC5 — Remappable I/O, PMP data bit 7 |
| Pin 39 | VSS — Ground reference |
| Pin 40 | AVSS — Analog ground reference |
| Pin 41 | AVDD — Analog positive supply |
| Pin 42 | AN0/VREF+/CN19/RB0 — Analog input 0, voltage reference plus, change notification |
| Pin 43 | AN1/VREF-/CN20/RB1 — Analog input 1, voltage reference minus, change notification |
| Pin 44 | MCLR — Master clear reset input (active low) |
Typical Applications
PIC24HJ128GP504-H/PT is suitable for 7 applications: Industrial Motor Control, Automotive Under-Hood ECUs, Digital Power Conversion (PFC, LLC, PSFB), Downhole and Well-Logging Instrumentation, Industrial Sensor Signal Conditioning, Aerospace Avionics Subsystems, Solar Inverter MPPT Control.
Industrial Motor Control
The PIC24HJ128GP504-H/PT fits industrial motor-control drives thanks to its 20 MIPS CPU, 8-channel DMA, 12-bit ADC with up to 13 input channels, and -40 C to +150 C operating range. In a typical BLDC or PMSM drive, the MCU samples three-phase currents via the ADC, runs a field-oriented control (FOC) loop in software, and generates complementary PWM for the inverter. The DMA controller offloads ADC-to-memory transfers so the CPU stays free for the FOC math; the same 44-pin TQFP package is pin-compatible with the dsPIC33FJ128GP804 for DSP upgrade. Wide temperature headroom permits integration directly into the motor housing or near the power stage.
Recommended
Automotive Under-Hood ECUs
The PIC24HJ128GP504-H/PT is qualified for under-hood automotive modules where ambient or local hotspot temperatures exceed 125 C. The -H grade's 150 C rating tolerates radiator-fan, transmission, or turbocharger-adjacent mounting. The MCU's two UART, two SPI, and one I2C peripherals connect to sensor clusters (temperature, pressure, position), while the 12-bit ADC reads up to 13 analog sensors. The 128 KB Flash holds CAN/J1939 stacks plus application logic, and the 8 KB SRAM absorbs LIN/CAN frame buffers without external memory. The same 44-pin TQFP is shared across Microchip automotive PIC24H and dsPIC33F families, easing platform consolidation.
Recommended
Digital Power Conversion (PFC, LLC, PSFB)
The PIC24HJ128GP504-H/PT handles digital control of PFC, LLC resonant, and phase-shifted full-bridge converters thanks to its 12-bit ADC, 5 dedicated 16-bit timers with PWM, and DMA-accelerated ADC sampling. The 20 MIPS throughput runs average-current-mode control and adaptive dead-time compensation in software. The 150 C rating lets the MCU sit near the magnetics or heatsink without derating. Hardware fault response (5-cycle deterministic interrupt latency) trips PWM within microseconds, meeting safety-agency fault-response requirements for server and telecom rectifiers.
Recommended
Downhole and Well-Logging Instrumentation
The PIC24HJ128GP504-H/PT's 150 C operating temperature makes it suitable for downhole oil-and-gas instrumentation where ambient can reach 150 C at multi-kilometer depths. The 128 KB Flash stores downhole telemetry algorithms, formation-evaluation data processing, and communication-stack code; 8 KB SRAM buffers acoustic and resistivity sensor samples. The 12-bit ADC with 13 channels handles multiple sensor modalities in parallel. The DMA controller ensures deterministic sample timing critical for seismic and NMR logging tools.
Recommended
Industrial Sensor Signal Conditioning
The PIC24HJ128GP504-H/PT integrates 12-bit ADC, two UART, two SPI, and DMA, making it ideal for multi-sensor industrial conditioning boards reading thermocouples, RTDs, strain gauges, and pressure transducers. The 12-bit ADC with 13 channels handles mixed sensor arrays; DMA offloads continuous conversion data while the CPU applies linearization, cold-junction compensation, and digital filtering. The 150 C grade supports integration into process-control enclosures with elevated ambient, and the 44-pin TQFP (PT) package matches industrial panel-mount board layouts.
Recommended
Aerospace Avionics Subsystems
The PIC24HJ128GP504-H/PT supports aerospace subsystems including flight-control surface actuators, fuel-system controllers, and environmental monitoring units. The -40 C to +150 C range tolerates avionics bay ambient, while 128 KB Flash accommodates DO-178C-derived firmware with deterministic interrupt handling. Two UART and two SPI buses connect to ARINC-429 transceivers and CANaerospace networks. Pin compatibility with the dsPIC33F family enables drop-in upgrade for systems that later need DSP (FFT-based vibration monitoring).
Recommended
Solar Inverter MPPT Control
The PIC24HJ128GP504-H/PT delivers maximum power point tracking (MPPT) for solar microinverters and string inverters. The 12-bit ADC reads panel voltage and current, the DMA controller offloads ADC sampling, and the 20 MIPS CPU runs perturb-and-observe or incremental-conductance MPPT at high update rate. The 150 C rating tolerates enclosure temperatures in field-mounted inverters. Two UART channels can drive a Modbus or Sunspec interface to the inverter gateway, and the 44-pin TQFP simplifies the analog and power-section board layout.
Recommended
Recommended Products Summary
Engineering reference data for PIC24HJ128GP504-H/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC24HJ128GP504-E/PT | PIC24HJ128GP504-I/PT | dsPIC33FJ128GP804-I/PT | PIC24HJ128GP306-I/PT |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-pin TQFP (PT) | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same |
| Flash Memory | 128 KB | 128 KB | 128 KB | 128 KB | 128 KB |
| SRAM | 8 KB | 8 KB | 8 KB | 8 KB | 16 KB |
| Operating Temperature | -40 C to +150 C (H grade) | -40 C to +125 C (E grade) | -40 C to +85 C (I grade) | -40 C to +85 C (I grade) | -40 C to +85 C (I grade) |
| DSP Engine | No | No | No | Yes (DSP-capable) | No |
| CPU Performance | 20 MIPS at 40 MHz | 20 MIPS at 40 MHz | 20 MIPS at 40 MHz | 20 MIPS at 40 MHz | 20 MIPS at 40 MHz |
| DMA Channels | 8 | 8 | 8 | 8 | 8 |
| Pin Compatibility | dsPIC33F family | dsPIC33F family | dsPIC33F family | Same family | Same family |
Key Differentiators
- 150 C High-temperature grade available in same 44-pin TQFP package (vs PIC24HJ128GP504-E/PT)
- Pin-compatible DSP upgrade path (vs PIC24HJ128GP504-I/PT)
- 8-channel DMA reduces CPU load for repetitive I/O (vs dsPIC33FJ128GP804-I/PT)
Design Notes
The PIC24HJ128GP504-H/PT's 150 C junction rating is a HARD limit. At maximum CPU activity (20 MIPS), core current draw is typically 30 mA. If powered at 3.3V in a sealed enclosure with poor airflow, junction-to-ambient thermal resistance of the 44-pin TQFP (PT, 10x10 mm) is roughly 50 C/W. To stay below 150 C, ambient must remain under approximately 110 C given 30 mA core current. For high-temperature downhole or under-hood designs, use thermal vias under the exposed pad (TQFP has ground pad on center; check package drawing) and minimize peripheral clocking to reduce self-heating. Estimated calculation: P = 3.3V x 0.030A = 0.099W; Tj = Ta + P x theta_JA = Ta + 5 C; so 145 C ambient remains within the 150 C limit. Verify in the actual mechanical envelope.
Place the 44-pin TQFP (PT) decoupling capacitors as close as possible to every VDD/VSS pair (the PT package has four VDD/VSS pairs at pins 7/6, 20/19, 32/31, and 39 plus analog AVDD/AVSS at 41/40). Use a 100 nF ceramic on each digital supply pair plus a single 4.7 uF bulk capacitor near the package. Place a separate 100 nF + 10 uF on AVDD/AVSS for ADC reference stability; never share analog and digital ground planes - use a single-star ground tied at the MCU's ground pin.
Do NOT confuse the -H grade (High temperature, -40 to +150 C) with the -E grade (Extended, -40 to +125 C) - they share the same die but different test flow and pricing. Many engineers over-spec the -H grade by default, paying a 10-20% premium when the -E grade suffices. Also avoid the PIC24HJ128GP504-I/PT for production if your ambient regularly exceeds 85 C; it is only Industrial-grade. The 44-pin TQFP package has a 0.80 mm lead pitch - hand-solderable with a fine tip but use solder paste + hot air for production.
The PIC24HJ128GP504-H/PT's 12-bit ADC can achieve better than 10 ENOB with proper PCB layout. Route analog signals (AN0-AN12) as far as possible from PWM outputs (PWM1H/L through PWM4H/L) and the crystal oscillator traces. Use a ground-plane pour under analog traces; if the board has both analog and digital sections, partition the ground plane with a single bridge at the MCU's AVSS pin. Add a 100 nF + 10 uF RC filter on AVDD within 5 mm of the pin. For ADC sampling above 200 kSPS, use DMA mode to free the CPU and minimize sample-to-sample jitter.
Compliance Information
RoHS compliant per Microchip product page. Not AEC-Q100 qualified; -H grade refers to operating temperature range, not automotive qualification. For AEC-Q100 qualified versions consider dsPIC33F automotive variants.