Datasheet
2015 Microchip Technology Inc. Preliminary DS60001320B-page 703
PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family
B.2 Analog-to-Digital Converter (ADC)
The PIC32MZ EC family features a Pipelined ADC
module, while the PIC32MZ EF family of devices has
an entirely new 12-bit High-Speed SAR ADC module.
Nearly all registers in this new ADC module differ from
the registers in PIC32MZ EC devices. Due to this differ
-
ence, code will not port from PIC32MZ EC devices to
PIC32MZ EF devices.
Table B-2 lists some of the differ-
ences in registers to note to adapt code as quickly as
possible.
TABLE B-2: ADC DIFFERENCES
PIC32MZ EC Feature PIC32MZ EF Feature
Clock Selection and Operating Frequency (T
AD)
On PIC32MZ EC devices, there are three possible sources of the
ADC clock: FRC, REFCLKO3, and SYSCLK.
On PIC32MZ EF devices, there are four sources for the ADC
clock. In addition to the ones for PIC32MZ EC, PBCLK4 is added
as a source. Also, the clock source selection is in a different
register.
ADCSEL<1:0> (AD1CON1<9:8>)
11 = FRC
10 = REFCLKO3
01 = SYSCLK
00 = Reserved
ADCSEL<1:0> (ADCCON3<31:30>)
11 = FRC
10 = REFCLKO3
01 = SYSCLK
00 = PBCLK4
Scan Trigger Sources
On PIC32MZ EC devices, there are 10 available trigger sources
for starting ADC sampling and conversion.
On PIC32MZ EF devices, two new sources have been added.
One is a shared trigger source (STRIG). The other is a Global
Level Software Trigger (GLSWTRG). With the GLSWTRG, the
conversions continue until the bit is cleared in software.
STRGSRC<4:0> (AD1CON1<26:22>)
11111 = Reserved
•
•
•
01101 = Reserved
01100 = Comparator 2 COUT
01011 = Comparator 1 COUT
01010 = OCMP5
01001 = OCMP3
01000 = OCMP1
00111 = TMR5 match
00110 = TMR3 match
00101 = TMR1 match
00100 = INT0
00011 = Reserved
00010 = Reserved
00001 = Global Software Trigger (GSWTRG)
00000 = No trigger
TRGSRC<4:0> (ADCTRGx<y:z>)
11111 = Reserved
•
•
•
01101 = Reserved
01100 = Comparator 2 COUT
01011 = Comparator 1 COUT
01010 = OCMP5
01001 = OCMP3
01000 = OCMP1
00111 = TMR5 match
00110 = TMR3 match
00101 = TMR1 match
00100 = INT0
00011 = STRIG
00010 = Global Level Software Trigger (GLSWTRG)
00001 = Global Software Trigger (GSWTRG)
00000 = No trigger
ADC Calibration
PIC32MZ EC devices require calibration values be copied into
the AD1CALx registers before turning on the ADC. These values
come from the DEVADCx registers.
PIC32MZ EF devices do not require this step, and the
corresponding registers are not available.
Debug Mode
On PIC32MZ EC devices, the ADC module continues operating
when stopping on a breakpoint during debugging.
On PIC32MZ EF devices, the ADC module will stop during
debugging when stopping on a breakpoint.
Electrical Specifications and Timing Requirements
Refer to the “Electrical Characteristics” chapter in the
PIC32MZ EC data sheet for ADC module specifications and
timing requirements.
On PIC32MZ EF devices, the ADC module sampling and
conversion time and other specifications have changed. Refer to
37.0 “Electrical Characteristics” for more information.