PIC24HJ32GP302/304,
PIC24HJ64GPX02/X04 and
PIC24HJ128GPX02/X04
16-bit Microcontrollers
(up to 128 KB Flash and 8K SRAM) with Advanced Analog
Operating Conditions
• 3.0V to 3.6V, -40ºC to +150ºC, DC to 20 MIPS
• 3.0V to 3.6V, -40ºC to +125ºC, DC to 40 MIPS
System Peripherals
• Cyclic Redundancy Check (CRC) module
• Up to five 16-bit and up to two 32-bit Timers/
Counters
• Up to four Input Capture (IC) modules
• Up to four Output Compare (OC) modules
• Real-Time Clock and Calendar (RTCC) module
Clock Management
•
•
•
•
•
•
2% internal oscillator
Programmable PLL and oscillator clock sources
Fail-Safe Clock Monitor (FSCM)
Independent Watchdog Timer
Low-power management modes
Fast wake-up and start-up
Communication Interfaces
• Parallel Master Port (PMP)
• Two UART modules (10 Mbps)
- Supports LIN 2.0 protocols
- RS-232, RS-485, and IrDA
®
support
• Two 4-wire SPI modules (15 Mbps)
• Enhanced CAN (ECAN) module (1 Mbaud) with
2.0B support
• I
2
C module (100K, 400K and 1Mbaud) with
SMBus support
High-Efficiency Math Engine
• Single-cycle MUL plus hardware divide
Advanced Analog Features
• 10/12-bit ADC with 1.1Msps/500 ksps conversion
rate:
- Up to 13 ADC input channels and four S&H
- Flexible/Independent trigger sources
• 150 ns Comparators:
- Up to two Analog Comparator modules
- 4-bit DAC with two ranges for Analog Comparators
Direct Memory Access (DMA)
• 8-channel hardware DMA with no CPU stalls or
overhead
• UART, SPI, ADC, ECAN, IC, OC, INT0
Input/Output
•
•
•
•
•
Software remappable pin functions
5V-tolerant pins
Selectable open drain and internal pull-ups
Up to 5 mA overvoltage clamp current/pin
Multiple external interrupts
Qualification and Class B Support
• AEC-Q100 REVG (Grade 0 -40ºC to +150ºC)
• Class B Safety Library, IEC 60730, VDE certified
Debugger Development Support
• In-circuit and in-application programming
• Two program breakpoints
• Trace and run-time watch
Packages
Type
Pin Count
I/O Pins
Contact Lead/Pitch
Dimensions
Note:
SPDIP
28
21
.100''
SOIC
28
21
1.27
QFN-S
28
21
0.65
QFN
44
35
0.65
TQFP
44
35
0.80
1.365x.285x.135
''
17.9x7.50x2.05
6x6x0.9
8x8x0.9
10x10x1
All dimensions are in millimeters (mm) unless specified.
©
2007-2012 Microchip Technology Inc.
DS70293G-page 1
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
PIC24HJ32GP302/304,
PIC24HJ64GPX02/X04 AND
PIC24HJ128GPX02/X04 PRODUCT
FAMILIES
The device names, pin counts, memory sizes and
peripheral availability of each device are listed below.
The following pages show their pinout diagrams.
TABLE 1:
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
CONTROLLER FAMILIES
Analog Comparator
(2 Channels/Voltage Regulator)
Remappable Peripheral
Program Flash Memory
(Kbyte)
8-bit Parallel Master Port
(Address Lines)
External Interrupts
(3)
Remappable Pins
Output Compare
Standard PWM
16-bit Timer
(2)
10-bit/12-bit ADC
(Channels)
Input Capture
I
2
C™
CRC Generator
RAM (Kbyte)
(1)
UART
PIC24HJ128GP504 44
PIC24HJ128GP502 28
128
128
8
8
26 5
16 5
4
4
4
4
2
2
SPI
Device
2
2
ECAN™
1
1
3
3
1 1 1
1 1 1
13
10
1/1
1/0
11
2
35
QFN
TQFP
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
PIC24HJ128GP204 44
PIC24HJ128GP202 28
128
128
8
8
26 5
16 5
4
4
4
4
2
2
2
2
0
0
3
3
1 1 1
1 1 1
13
10
1/1
1/0
11
2
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
PIC24HJ64GP504
PIC24HJ64GP502
44
28
64
64
8
8
26 5
16 5
4
4
4
4
2
2
2
2
1
1
3
3
1 1 1
1 1 1
13
10
1/1
1/0
11
2
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
PIC24HJ64GP204
PIC24HJ64GP202
44
28
64
64
8
8
26 5
16 5
4
4
4
4
2
2
2
2
0
0
3
3
1 1 1
1 1 1
13
10
1/1
1/0
11
2
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
PIC24HJ32GP304
PIC24HJ32GP302
44
28
32
32
4
4
26 5
16 5
4
4
4
4
2
2
2
2
0
0
3
3
1 1 1
1 1 1
13
10
1/1
1/0
11
2
Note 1:
2:
3:
21 SPDIP
SOIC
QFN-S
RAM size is inclusive of 2 Kbytes of DMA RAM for all devices except PIC24HJ32GP302/304, which
include 1 Kbyte of DMA RAM.
Only four out of five timers are remappable.
Only two out of three interrupts are remappable.
DS70293G-page 2
©
2007-2012 Microchip Technology Inc.
Packages
I/O Pins
RTCC
Pins
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
Pin Diagrams
28-Pin SPDIP, SOIC
MCLR
AN0/V
REF
+/CN2/RA0
AN1/V
REF
-/CN3/RA1
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
PGEC1/ AN3/C2IN+/RP1
(1)
/CN5/RB1
AN4/C1IN-/RP2
(1)
/CN6/RB2
AN5/C1IN+/RP3
(1)
/CN7/RB3
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/PMA0/RA3
SOSCI/RP4
(1)
/CN1/PMBE/RB4
SOSCO/T1CK/CN0/PMA1/RA4
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
1
2
3
4
PIC24HJ32GP302
PIC24HJ64GP202
PIC24HJ64GP502
PIC24HJ128GP202
PIC24HJ128GP502
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
AV
DD
AV
SS
AN9/RP15
(1)
/CN11/PMCS1/RB15
AN10/RTCC/RP14
(1)
/CN12/PMWR/RB14
AN11/RP13
(1)
/CN13/PMRD/RB13
AN12/RP12
(1)
/CN14/PMD0/RB12
PGEC2/TMS/RP11
(1)
/CN15/PMD1/RB11
PGED2/TDI/RP10
(1)
/CN16/PMD2/RB10
V
CAP
(3)
V
SS
TDO/SDA1/RP9
(1)
/CN21/PMD3/RB9
TCK/SCL1/RP8
(1)
/CN22/PMD4/RB8
INT0/RP7
(1)
/CN23/PMD5/RB7
PGEC3/ASCL1/RP6
(1)
/CN24/PMD6/RB6
Pins are up to 5V tolerant
28-Pin QFN-S
(2)
AN1/V
REF
-/CN3/RA1
AN0/V
REF
+/CN2/RA0
MCLR
AV
DD
AV
SS
AN9/RP15/CN11/PMCS1/RB15
AN10/RTCC/RP14/CN12/PMWR/RB14
Pins are up to 5V tolerant
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
PGEC1/AN3/C2IN+/RP1
(1)
/CN5/RB1
AN4/C1IN-/RP2
(1)
/CN6/RB2
AN5/C1IN+/RP3
(1)
/CN7/RB3
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/PMA0/RA3
28
27
26
25
24
23
22
1
2
3
4
5
6
7
21
PIC24HJ32GP302
PIC24HJ64GP202
PIC24HJ64GP502
PIC24HJ128GP202
PIC24HJ128GP502
8
9
10
11
12
13
14
AN11/RP13
(1)
/CN13/PMRD/RB13
AN12/RP12
(1)
/CN14/PMD0/RB12
PGEC2/TMS/RP11
(1)
/CN15/PMD1/RB11
PGED2/TDI/RP10
(1)
/CN16/PMD2/RB10
V
CAP
(3)
V
SS
TDO/SDA1/RP9
(1)
/CN21/PMD3/RB9
20
19
18
17
16
15
Note
1:
2:
3:
The RPx pins can be used by any remappable peripheral. See
Table 1
in this section for the list of available peripherals.
The metal plane at the bottom of the device is not connected to any pins and is recommended to be connected to V
SS
externally.
Refer to
Section 2.3 “CPU Logic Filter Capacitor Connection (V
CAP
)”
for proper connection to this pin.
©
2007-2012 Microchip Technology Inc.
SOSCI/RP4
(1)
/CN1/PMBE/RB4
SOSCO/T1CK/CN0/PMA1/RA4
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
PGEC3//ASCL1/RP6
(1)
/CN24/PMD6/RB6
INT0/RP7
(1)
/CN23/PMD5/RB7
TCK/SCL1/RP8
(1)
/CN22/PMD4/RB8
DS70293G-page 3
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
Pin Diagrams (Continued)
44-Pin QFN
(2)
Pins are up to 5V tolerant
PGEC1/AN3/C2IN+/RP1
(1)
/CN5/RB1
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
AN1/V
REF
-/CN3/RA1
AN0/V
REF
+/CN2/RA0
MCLR
AV
DD
AV
SS
AN9/RP15
(1)
/CN11/PMCS1/RB15
AN10/RTCC/RP14
(1)
/CN12/PMWR/RB14
TCK/PMA7/RA7
TMS/PMA10/RA10
AN5/C1IN+/RP3
(1)
/CN7/RB3
AN6/RP16
(1)
/CN8/RC0
AN7/RP17
(1)
/CN9/RC1
AN8/CV
REF
/RP18
(1)
/PMA2/CN10/RC2
V
DD
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/RA3
TDO/PMA8/RA8
SOSCI/RP4
(1)
/CN1/RB4
23
24
25
26
27
28
29
30
31
32
22
21
20
19
18
17
16
15
14
13
12
AN4/C1IN-/RP2
(1)
/CN6/RB2
11
10
9
AN11/RP13
(1)
/CN13/PMRD/RB13
AN12/RP12
(1)
/CN14/PMD0/RB12
PGEC2/RP11
(1)
/CN15/PMD1/RB11
PGED2/RP10
(1)
/CN16/PMD2/RB10
V
CAP
(3)
V
SS
RP25
(1)
/CN19/PMA6/RC9
RP24
(1)
/CN20/PMA5/RC8
RP23
(1)
/CN17/PMA0/RC7
RP22
(1)
/CN18/PMA1/RC6
SDA1/RP9
(1)
/CN21/PMD3/RB9
PIC24HJ32GP304
PIC24HJ64GP204
PIC24HJ64GP504
PIC24HJ128GP204
PIC24HJ128GP504
8
7
6
5
4
3
2
Note
1:
2:
3:
The RPx pins can be used by any remappable peripheral. See
Table 1
in this section for the list of available peripherals.
The metal plane at the bottom of the device is not connected to any pins and is recommended to be connected to V
SS
externally.
Refer to
Section 2.3 “CPU Logic Filter Capacitor Connection (V
CAP
)”
for proper connection to this pin.
SOSCO/T1CK/CN0/RA4
TDI/PMA9/RA9
RP19
(1)
/CN28/PMBE/RC3
RP20
(1)
/CN25/PMA4/RC4
RP21
(1)
/CN26/PMA3/RC5
V
SS
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
PGEC3/ASCL1/RP6
(1)
/CN24/PMD6/RB6
INT0/RP7
(1)
/CN23/PMD5/RB7
SCL1/RP8
(1)
/CN22/PMD4/RB8
34
35
36
37
38
39
40
41
42
43
44
33
1
DS70293G-page 4
©
2007-2012 Microchip Technology Inc.
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
Pin Diagrams (Continued)
44-Pin TQFP
PGEC1/AN3/C2IN+/RP1
(1)
/CN5/RB1
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
AN1/V
REF
-/CN3/RA1
AN0/V
REF
+/CN2/RA0
MCLR
AV
DD
AV
SS
AN9/RP15
(1)
/CN11/PMCS1/RB15
AN10/RTCC/RP14
(1)
/CN12/PMWR/RB14
TCK/PMA7/RA7
TMS/PMA10/RA10
Pins are up to 5V tolerant
22
21
20
19
18
17
16
15
14
13
12
Note
1:
2:
The RPx pins can be used by any remappable peripheral. See
Table 1
in this section for the list of available peripherals.
Refer to
Section 2.3 “CPU Logic Filter Capacitor Connection (V
CAP
)”
for proper connection to this pin.
©
2007-2012 Microchip Technology Inc.
SOSCO/T1CK/CN0/RA4
TDI/PMA9/RA9
RP19
(1)
/CN28/PMBE/RC3
RP20
(1)
/CN25/PMA4/RC4
RP21
(1)
/CN26/PMA3/RC5
V
SS
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
PGEC3/ASCL1/RP6
(1)
/CN24/PMD6/RB6
INT0/RP7
(1)
/CN23/PMD5/RB7
SCL1/RP8
(1)
/CN22/PMD4/RB8
34
35
36
37
38
39
40
41
42
43
44
AN4/C1IN-/RP2
(1)
/CN6/RB2
AN5/C1IN+/RP3
(1)
/CN7/RB3
AN6/RP16
(1)
/CN8/RC0
AN7/RP17
(1)
/CN9/RC1
AN8/CV
REF
/RP18
(1)
/PMA2/CN10/RC2
V
DD
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/RA3
TDO/PMA8/RA8
SOSCI/RP4
(1)
/CN1/RB4
23
24
25
26
27
28
29
30
31
32
33
PIC24HJ32GP304
PIC24HJ64GP204
PIC24HJ64GP504
PIC24HJ128GP204
PIC24HJ128GP504
11
10
9
8
7
6
5
4
3
2
1
AN11/RP13
(1)
/CN13/PMRD/RB13
AN12/RP12
(1)
/CN14/PMD0/RB12
PGEC2/RP11
(1)
/CN15/PMD1/RB11
PGED2/EMCD2/RP10
(1)
/CN16/PMD2/RB10
V
CAP
(2)
V
SS
RP25
(1)
/CN19/PMA6/RC9
RP24
(1)
/CN20/PMA5/RC8
RP23
(1)
/CN17/PMA0/RC7
RP22
(1)
/CN18/PMA1/RC6
SDA1/RP9
(1)
/CN21/PMD3/RB9
DS70293G-page 5