PIC32MM0064GPL036 FAMILY
32-Bit Flash Microcontroller with MIPS32
®
microAptiv™ UC Core
with Low Power and Low Pin Count
Operating Conditions
• 2.0V to 3.6V, -40°C to +125°C, DC to 25 MHz
• 2.0V to 3.6V, -40°C to +85°C, DC to 25 MHz
Peripheral Features
• Atomic Set, Clear and Invert Operation on Select
Peripheral Registers
• High-Current Sink/Source 11 mA/16 mA on All Ports
• Independent, Low-Power 32 kHz Timer Oscillator
• Two 4-Wire SPI modules (up to 25 MHz non-PPS,
20 MHz PPS):
- 16-byte FIFO
- I
2
S mode
• Two UARTs:
- RS-232, RS-485 and LIN/J2602 support
- IrDA
®
with on-chip hardware encoder and decoder
• External Edge and Level Change Interrupt on All Ports
• CRC module
• Hardware Real-Time Clock and Calendar (RTCC)
• Up to 20 Peripheral Pin Select (PPS) Remappable Pins
• Seven Total 16-Bit Timers:
- Timer1: Dedicated 16-bit timer/counter
- Two additional 16-bit timers in each MCCP and SCCP
module
• Capture/Compare/PWM/Timer modules:
- Two 16-bit timers or one 32-bit timer in each module
- PWM resolution down to 21 ns
- One Multiple Output (MCCP) module:
- Flexible configuration as PWM, input capture, output
compare or timers
- Six PWM outputs
- Programmable dead time
- Auto-shutdown
- Two Single Output (SCCP) modules:
- Flexible configuration as PWM, input capture, output
compare or timers
- Single PWM output
• Reference Clock Output (REFO)
• Two Configurable Logic Cells (CLC) with Internal
Connections to Select Peripherals and PPS
Low-Power Modes
• Low-Power modes:
- Idle: CPU off, peripherals run from system clock
- Sleep: CPU and peripherals off:
- Fast wake-up Sleep with retention
- Low-power Sleep with retention
• 0.5
μA
Sleep Current for Regulator Retention mode and
5
μA
for Regulator Standby mode
• On-Chip 1.8V Voltage Regulator (VREG)
• On-Chip Ultra Low-Power Retention Regulator
High-Performance 32-Bit RISC CPU
• microAptiv™ UC 32-Bit Core with 5-Stage Pipeline
• microMIPS™ Instruction Set for 35% Smaller Code and
98% Performance compared to MIPS32 Instructions
• DC-25 MHz Operating Frequency
• 3.17 CoreMark
®
/MHz (79 CoreMark) Performance
• 1.53 DMIPS/MHz (37 DMIPS) (Dhrystone 2.1) Performance
• 16-Bit/32-Bit Wide Instructions with 32-Bit Wide Data Path
• Two Sets of 32 Core Register Files (32-bit) to Reduce
Interrupt Latency
• Single-Cycle 32x16 Multiply and Two-Cycle 32x32 Multiply
• Hardware Divide Unit
• 64-Bit, Zero Wait State Flash with ECC to Maximize
Endurance/Retention
Microcontroller Features
• Low Pin Count Packages, Ranging from 20 to 36 Pins,
including UQFN as Small as 4x4 mm
• Up to 64K Flash Memory:
- 20,000 erase/write cycle endurance
- 20 years minimum data retention
- Self-programmable under software control
• Up to 8K Data Memory
• Pin-Compatible with Most PIC24 MCU/dsPIC
®
DSC Devices
• Multiple Interrupt Vectors with Individually
Programmable Priority
• Fail-Safe Clock Monitor mode
• Configurable Watchdog Timer with On-Chip, Low-Power
RC Oscillator
• Programmable Code Protection
• Selectable Oscillator Options including:
- High-precision, 8 MHz internal Fast RC (FRC) oscillator
- High-speed crystal/resonator oscillator or external clock
- 2x/3x/4x/6x/12x/24x PLL, which can be clocked from the
FRC or primary oscillator
Debug Features
• Two Programming and Debugging Interfaces:
- 2-wire ICSP™ interface with non-intrusive access
and real-time data exchange with application
- 4-wire MIPS
®
standard Enhanced JTAG interface
• IEEE Standard 1149.2 Compatible (JTAG) Boundary Scan
2015-2018 Microchip Technology Inc.
DS60001324C-page 1
PIC32MM0064GPL036 FAMILY
Analog Features
• Two Analog Comparators with Input Multiplexing
• Programmable High/Low-Voltage Detect (HLVD)
• 5-Bit DAC with Output Pin
• Up to 14-Channel, Software-Selectable 10/12-Bit SAR
Analog-to-Digital Converter (ADC):
- 12-bit, up to 222k samples/second conversion rate
- 10-bit, up to 250k samples/second conversion rate
- Sleep mode operation
- Band gap reference input feature
- Windowed threshold compare feature
- Auto-scan feature
• Brown-out Reset (BOR)
TABLE 1:
PIC32MM0064GPL036 FAMILY DEVICES
Program Memory (Kbytes)
General Purpose I/O/PPS
PWM Outputs Maximum
16-Bit Timers Maximum
Data Memory (Kbytes)
Remappable
Peripherals
UART
(1)
/LIN/J2602
16-Bit Timers
10/12-Bit ADC (Channels)
Comparators
MCCP
(3)
SCCP
(4)
Device
PIC32MM0016GPL020
PIC32MM0032GPL020
PIC32MM0064GPL020
PIC32MM0016GPL028
PIC32MM0032GPL028
PIC32MM0064GPL028
20
20
20
28
28
28
16
32
64
16
32
64
4
8
8
4
8
8
16/16
16/16
16/16
22/19
22/19
22/19
7
7
7
7
7
7
8
8
8
8
8
8
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
SPI
(2)
/I
2
S
CLC
2
2
2
2
2
2
11
11
11
12
12
12
2
2
2
2
2
2
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
SSOP/QFN
SSOP/QFN
SSOP/QFN
SSOP/SOIC/
QFN/UQFN
SSOP/ SOIC/
QFN/UQFN
SPDIP/SSOP/
SOIC/QFN/
UQFN
VQFN/UQFN
VQFN/UQFN
VQFN/UQFN
PIC32MM0016GPL036
PIC32MM0032GPL036
PIC32MM0064GPL036
36/40 16
36/40 32
36/40 64
4
8
8
29/20
29/20
29/20
7
7
7
8
8
8
2
2
2
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
14
14
14
2
2
2
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Note 1:
UART1 has assigned pins. UART2 is remappable.
2:
SPI1 has assigned pins. SPI2 is remappable.
3:
MCCP can be configured as a PWM with up to 6 outputs, input capture, output compare, 2 x 16-bit timers or
1 x 32-bit timer.
4:
SCCP can be configured as a PWM with 1 output, input capture, output compare, 2 x 16-bit timers or 1 x 32-bit timer.
DS60001324C-page 2
2015-2018 Microchip Technology Inc.
Packages
RTCC
JTAG
CRC
Pins
PIC32MM0064GPL036 FAMILY
Pin Diagrams
20-Pin SSOP
MCLR
PGEC2/RP1/RA0
PGED2/RP2/RA1
PGED1/RP14/RB0
PGEC1/RP15/RB1
RP16/RB2
CLKI/RP3/RA2
CLKO/RP4/RA3
(1)
PGED3/SOSCI/RP5/RB4
PGEC3/SOSCO/RP6/RA4
1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
AV
DD
/V
DD
AV
SS
/V
SS
RP10/RB15
(1)
RP9/RB14
RP13/RB13
RP12/RB12
V
CAP
RP8/RB9
(1)
RP7/RB8
(1)
RP11/RB7
Legend:
Shaded pins are up to 5V tolerant.
Note 1:
Pin has an increased current drive strength. Refer to
Section 26.0 “Electrical Characteristics”
for details.
PIC32MMXXXXGPL020
TABLE 2:
Pin
1
2
3
4
5
6
7
8
9
MCLR
COMPLETE PIN FUNCTION DESCRIPTIONS FOR 20-PIN SSOP DEVICES
Function
Pin
11
RP11/RB7
12 TCK/RP7/U1CTS/SCK1/OCM1A/RB8
(1)
13 TMS/REFCLKI/RP8/T1CK/T1G/U1RTS/U1BCLK/SDO1/C2OUT/OCM1B/
INT2/RB9
(1)
14 V
CAP
15 TDO/AN7/LVDIN/RP12/RB12
16 TDI/AN8/RP13/RB13
17 CDAC1/AN9/RP9/RTCC/U1TX/SDI1/C1OUT/INT1/RB14
18 AN10/REFCLKO/RP10/U1RX/SS1/FSYNC1/INT0/RB15
(1)
19 AV
SS
/V
SS
20 AV
DD
/V
DD
Function
PGEC2/V
REF
+/AN0/RP1/OCM1E/INT3/RA0
PGED2/V
REF
-/AN1/RP2/OCM1F/RA1
PGED1/AN2/C1IND/C2INB/RP14/RB0
PGEC1/AN3/C1INC/C2INA/RP15/RB1
AN4/RP16/RB2
OSC1/CLKI/AN5/C1INB/RP3/OCM1C/RA2
OSC2/CLKO/AN6/C1INA/RP4/OCM1D/RA3
(1)
PGED3/SOSCI/RP5/RB4
Pin has an increased current drive strength.
10 PGEC3/SOSCO/SCLKI/RP6/PWRLCLK/RA4
Note 1:
2015-2018 Microchip Technology Inc.
DS60001324C-page 3
PIC32MM0064GPL036 FAMILY
Pin Diagrams (Continued)
20-Pin QFN
(2)
PGED2/RP2/RA1
PGEC2/RP1/RA0
AV
DD
/V
DD
20 19 18 17 16
PGED1/RP14/RB0
PGEC1/RP15/RB1
RP16/RB2
CLKI/RP3/RA2
CLKO/RP4/RA3
(1)
1
2
3
4
5
6
PGED3/SOSCI/RP5/RB4
7
PGEC3/SOSCO/RP6/RA4
8
RP11/RB7
9 10
(1)
AV
SS
/V
SS
15
14
MCLR
RP10/RB15
(1)
RP9/RB14
RP13/RB13
RP12/RB12
V
CAP
PIC32MMXXXXGPL020
13
12
11
Legend:
Shaded pins are up to 5V tolerant.
Note 1:
Pin has an increased current drive strength. Refer to
Section 26.0 “Electrical Characteristics”
for details.
2:
The back side thermal pad is not electrically connected.
TABLE 3:
Pin
1
2
3
4
5
6
7
8
9
COMPLETE PIN FUNCTION DESCRIPTIONS FOR 20-PIN QFN DEVICES
Function
Pin
11 V
CAP
12 TDO/AN7/LVDIN/RP12/RB12
13 TDI/AN8/RP13/RB13
14 CDAC1/AN9/RP9/RTCC/U1TX/SDI1/C1OUT/INT1/RB14
15 AN10/REFCLKO/RP10/U1RX/SS1/FSYNC1/INT0/RB15
(1)
16 AV
SS
/V
SS
17 AV
DD
/V
DD
18 MCLR
(1)
RP8/RB9
(1)
RP7/RB8
Function
PGED1/AN2/C1IND/C2INB/RP14/RB0
PGEC1/AN3/C1INC/C2INA/RP15/RB1
AN4/RP16/RB2
OSC1/CLKI/AN5/C1INB/RP3/OCM1C/RA2
OSC2/CLKO/AN6/C1INA/RP4/OCM1D/RA3
(1)
PGED3/SOSCI/RP5/RB4
PGEC3/SOSCO/SCLKI/RP6/PWRLCLK/RA4
RP11/RB7
TCK/RP7/U1CTS/SCK1/OCM1A/RB8
19 PGEC2/V
REF
+/AN0/RP1/OCM1E/INT3/RA0
20 PGED2/V
REF
-/AN1/RP2/OCM1F/RA1
10 TMS/REFCLKI/RP8/T1CK/T1G/U1RTS/U1BCLK/SDO1/
C2OUT/OCM1B/INT2/RB9
(1)
Note 1:
Pin has an increased current drive strength.
DS60001324C-page 4
2015-2018 Microchip Technology Inc.
PIC32MM0064GPL036 FAMILY
Pin Diagrams (Continued)
28-Pin SPDIP
(2)
/SSOP/SOIC
MCLR
RP1/RA0
RP2/RA1
PGED1/RP14/RB0
PGEC1/RP15/RB1
RP16/RB2
RB3
V
SS
CLKI/RP3/RA2
CLKO/RP4/RA3
(1)
SOSCI/RP5/RB4
SOSCO/RP6/RA4
V
DD
PGED3/RB5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
V
DD
/AV
DD
V
SS
/AV
SS
RP10/RB15
(1)
RP9/RB14
RP13/RB13
RP12/RB12
PGEC2/RP18/RB11
PGED2/RP17/RB10
V
CAP
RP19/RC9
RP8/RB9
(1)
RP7/RB8
(1)
RP11/RB7
PGEC3/RB6
Legend:
Shaded pins are up to 5V tolerant.
Note 1:
Pin has an increased current drive strength. Refer to
Section 26.0 “Electrical Characteristics”
for details.
2:
Only PIC32MM0064GPL028 comes in a 28-pin SPDIP package.
PIC32MMXXXXGPL028
TABLE 4:
Pin
1
2
3
4
5
6
7
8
9
MCLR
COMPLETE PIN FUNCTION DESCRIPTIONS FOR 28-PIN SPDIP/SSOP/SOIC DEVICES
Function
Pin
15 PGEC3/RB6
16
RP11/RB7
17 TCK/RP7/U1CTS/SCK1/OCM1A/RB8
(1)
18 TMS/REFCLKI/RP8/T1CK/T1G/U1RTS/U1BCLK/SDO1/C2OUT/OCM1B/INT2/RB9
(1)
19
RP19/RC9
20 V
CAP
21 PGED2/TDO/RP17/RB10
22 PGEC2/TDI/RP18/RB11
23 AN7/LVDIN/RP12/RB12
(1)
Function
V
REF
+/AN0/RP1/OCM1E/INT3/RA0
V
REF
-/AN1/RP2/OCM1F/RA1
PGED1/AN2/C1IND/C2INB/RP14/RB0
PGEC1/AN3/C1INC/C2INA/RP15/RB1
AN4/C1INB/RP16/RB2
AN11/C1INA/RB3
V
SS
OSC1/CLKI/AN5/RP3/OCM1C/RA2
10 OSC2/CLKO/AN6/RP4/OCM1D/RA3
11 SOSCI/RP5/RB4
24 AN8/RP13/RB13
25 CDAC1/AN9/RP9/RTCC/U1TX/SDI1/C1OUT/INT1/RB14
26 AN10/REFCLKO/RP10/U1RX/SS1/FSYNC1/INT0/RB15
(1)
27 V
SS
/AV
SS
28 V
DD
/AV
DD
12 SOSCO/SCLKI/RP6/PWRLCLK/RA4
13 V
DD
14 PGED3/RB5
Note 1:
Pin has an increased current drive strength.
2015-2018 Microchip Technology Inc.
DS60001324C-page 5