Datasheet

PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family
DS60001320B-page 692 Preliminary 2015 Microchip Technology Inc.
Output Format
On PIC32MX devices, the output format was decided for all ADC
channels based on the setting of the FORM<2:0> bits.
On PIC32MZ EF devices, the FRACT bit determines whether
fractional or integer format is used. Then, each input can have its
own setting for input (differential or single-ended) and sign
(signed or unsigned) using the DIFFx and SIGNx bits in the
ADCIMODx registers.
FORM<2:0> (AD1CON1<10:8>)
011 = Signed Fractional 16-bit
010 = Fractional 16-bit
001 = Signed Integer 16-bit
000 = Integer 16-bit
111 = Signed Fractional 32-bit
110 = Fractional 32-bit
101 = Signed Integer 32-bit
100 = Integer 32-bit
FRACT (ADCCON1<23>)
1 = Fractional
0 = Integer
DIFFx (ADCIMODy)
1 = Channel x is using Differential mode
0 = Channel x is using Single-ended mode
SIGNx (ADCMODy)
1 = Channel x is using Signed Data mode
0 = Channel x is using Unsigned Data mode
Interrupts
On PIC32MX devices, an interrupt is triggered from the ADC
module when a certain number of conversions have taken place,
irrespective of which channel was converted.
On PIC32MZ EF devices, the ADC module can trigger an inter-
rupt for each channel when it is converted. Use the Interrupt Con-
troller bits, IEC1<31:27>, IEC2<31:0>, and IEC3<7:0>, to enable/
disable them.
In addition, the ADC support one global interrupt to indicate
conversion on any number of channels.
SMPI<3:0> (AD1CON2<5:2>)
1111 = Interrupt for each 16th sample/convert sequence
1110 = Interrupt for each 15th sample/convert sequence
0001 = Interrupt for each 2nd sample/convert sequence
0000 = Interrupt for each sample/convert sequence
AGIENxx (ADCGIRQENx<y>)
1 = Data ready event will generate a Global ADC interrupt
0 = No global interrupt
In addition, interrupts can be generated for filter and comparator
events.
I/O Pin Analog Function Selection
On PIC32MX devices, the analog function of an I/O pin was deter-
mined by the PCFGx bit in the AD1PCFG register.
On PIC32MZ EF devices, the analog selection function has been
moved into a separate register on each I/O port. Note that the
sense of the bit is different.
PCFGx (AD1PCFG<x>)
1 = Analog input pin in Digital mode
0 = Analog input pin in Analog mode
ANSxy (ANSELx<y>)
1 = Analog input pin in Analog mode
0 = Analog input pin in Digital mode
Electrical Specifications and Timing Requirements
Refer to “Section 31. Electrical Characteristics” in the
PIC32MX5XX/6XX/7XX Data Sheet for ADC module
specifications and timing requirements.
On PIC32MZ EF devices, the ADC module sampling and conver-
sion time and other specifications have changed. Refer to
37.0 “Electrical Characteristics” for more information.
TABLE A-3: ADC DIFFERENCES (CONTINUED)
PIC32MX5XX/6XX/7XX Feature PIC32MZ EF Feature