The 20 registers of ADC0 (Analog-to-Digital Converter), from 0x42001C00, with their reset value and every field. The PIC32CM1216PL10064 has 702 registers in 32 peripherals, one page each.
ADC0 Analog-to-Digital Converter
CTRLAControl A
Address
0x42001C00
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
ONDEMAND
7
On Demand
RUNSTDBY
6
Run in Standby
ENABLE
1
ADC Enable
SWRST
0
Software Reset
CTRLBControl B
Address
0x42001C04
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
TIMEBASE
12:8
Timebase
PRESCALER
4:0
Prescaler
0 APB clock divided by 2
1 APB clock divided by 3
2 APB clock divided by 4
3 APB clock divided by 5
4 APB clock divided by 6
5 APB clock divided by 7
6 APB clock divided by 8
7 APB clock divided by 9
8 APB clock divided by 10
9 APB clock divided by 11
10 APB clock divided by 12
11 APB clock divided by 13
12 APB clock divided by 14
13 APB clock divided by 15
14 APB clock divided by 16
15 APB clock divided by 17
16 APB clock divided by 18
17 APB clock divided by 19
18 APB clock divided by 20
19 APB clock divided by 21
20 APB clock divided by 22
21 APB clock divided by 23
22 APB clock divided by 24
23 APB clock divided by 25
24 APB clock divided by 26
25 APB clock divided by 27
26 APB clock divided by 28
27 APB clock divided by 29
28 APB clock divided by 30
29 APB clock divided by 31
30 APB clock divided by 32
CTRLCControl C
Address
0x42001C08
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
REFSEL
2:0
Reference Selection
0 VDD
2 External pin used as reference
4 Internal reference 1.024V
5 Internal reference 2.048V
6 Internal reference 4.096V
7 Internal reference 2.500V
CTRLDControl D
Address
0x42001C0C
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
VPD
16
Voltage Pump Disable
FILTER
14
Low-Pass Filter
CHOPPING
13
Sign Chopping
FREERUN
12
Free-Running
SCALING
11:10
Result Scaling
0 The ADC output of the sample or accumulated result is right adjusted
1 The ADC output is left adjusted
2 The accumulated ADC result is averaged and right adjusted
RESOLUTION
9:8
ADC Resolution
0 12-bit ADC Result
1 13-bit ADC Result
2 10-bit ADC Result
3 8-bit ADC Result
SAMPNUM
3:0
Sample Accumulation Number Select
0 No accumulation, single sample per conversion result
1 2 samples accumulated
2 4 samples accumulated
3 8 samples accumulated
4 16 samples accumulated
5 32 samples accumulated
6 64 samples accumulated
7 128 samples accumulated
8 256 samples accumulated
9 512 samples accumulated
10 1024 samples accumulated
CTRLEControl E
Address
0x42001C10
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
SAMPLEN
7:0
Sample Length
WINCTRLWindow Control
Address
0x42001C1C
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
WINSRC
3
Window Mode Source
0 Use RESULT[15:0] as Window Comparator source
1 Use SAMPLE[15:0] as Window Comparator source
WINMODE
2:0
Window Comparator Mode
0 No Window Comparison
1 OUTPUT 'less than' WINLT
2 OUTPUT 'greater than' WINHT
3 WINLT 'less than' OUTPUT 'less than' WINHT
4 OUTPUT 'less than' WINLT or OUTPUT 'greater than'WINHT
WINLTWindow Low Threshold
Address
0x42001C20
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
WINLT
15:0
Window Low Threshold
WINHTWindow High Threshold
Address
0x42001C24
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
WINHT
15:0
Window High Threshold
INPUTCTRLInput Multiplexer Control
Address
0x42001C28
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
MUXPOS
14:8
Positive Input Multiplexer
2 ADC AIN2 Pin
3 ADC AIN3 Pin
4 ADC AIN4 Pin
5 ADC AIN5 Pin
6 ADC AIN6 Pin
7 ADC AIN7 Pin
16 ADC AIN16 Pin
17 ADC AIN17 Pin
18 ADC AIN18 Pin
19 ADC AIN19 Pin
20 ADC AIN20 Pin
21 ADC AIN21 Pin
22 ADC AIN22 Pin
23 ADC AIN23 Pin
24 ADC AIN24 Pin
25 ADC AIN25 Pin
26 ADC AIN26 Pin
27 ADC AIN27 Pin
28 ADC AIN28 Pin
29 ADC AIN29 Pin
31 ADC AIN31 Pin
40 ADC AIN40 Pin
41 ADC AIN41 Pin
42 ADC AIN42 Pin
43 ADC AIN43 Pin
44 ADC AIN44 Pin
45 ADC AIN45 Pin
46 ADC AIN46 Pin
47 ADC AIN47 Pin
96 Analog Ground
97 1/4 Scaled Core Supply
98 Temperature Sensor
100 1/10 Scaled VDDIO Supply
101 1/10 Scaled VDDIO2 Supply
105 Output from AC VREFSCALE0
106 Output from AC VREFSCALE1
112 Test Buffer
126 PTC
MUXNEG
6:0
Negative Input Multiplexer
2 ADC AIN2 Pin
3 ADC AIN3 Pin
4 ADC AIN4 Pin
5 ADC AIN5 Pin
6 ADC AIN6 Pin
7 ADC AIN7 Pin
16 ADC AIN16 Pin
17 ADC AIN17 Pin
18 ADC AIN18 Pin
19 ADC AIN19 Pin
20 ADC AIN20 Pin
21 ADC AIN21 Pin
22 ADC AIN22 Pin
23 ADC AIN23 Pin
24 ADC AIN24 Pin
25 ADC AIN25 Pin
26 ADC AIN26 Pin
27 ADC AIN27 Pin
28 ADC AIN28 Pin
29 ADC AIN29 Pin
31 ADC AIN31 Pin
40 ADC AIN40 Pin
41 ADC AIN41 Pin
42 ADC AIN42 Pin
43 ADC AIN43 Pin
44 ADC AIN44 Pin
45 ADC AIN45 Pin
46 ADC AIN46 Pin
47 ADC AIN47 Pin
96 Analog Ground
97 Positive Reference
EVCTRLEvent Control
Address
0x42001C2C
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
Field
Bits
What it does
WCMPEO
10
Window Comparator Event Output Enable
SAMPRDYEO
9
Sample Ready Event Output Enable
RESRDYEO
8
Result Ready Event Output Enable
STARTINV
4
Conversion Start Event Input Invert
STARTEI
0
Conversion Start Event Input Enable
INTENCLRInterrupt Enable Clear
Address
0x42001C30
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
Field
Bits
What it does
TRIGOVR
5
Trigger Overrun Interrupt Enable
SAMPOVR
4
Sample Overwrite Interrupt Enable
RESOVR
3
Result Overwrite Interrupt Enable
WCMP
2
Window Comparator Interrupt Enable
SAMPRDY
1
Sample Ready Interrupt Enable
RESRDY
0
Result Ready Interrupt Enable
INTENSETInterrupt Enable Set
Address
0x42001C34
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
Field
Bits
What it does
TRIGOVR
5
Trigger Overrun Interrupt Enable
SAMPOVR
4
Sample Overwrite Interrupt Enable
RESOVR
3
Result Overwrite Interrupt Enable
WCMP
2
Window Comparator Interrupt Enable
SAMPRDY
1
Sample Ready Interrupt Enable
RESRDY
0
Result Ready Interrupt Enable
INTFLAGInterrupt Flag Status and Clear
Address
0x42001C38
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
Field
Bits
What it does
TRIGOVR
5
Trigger Overrun Interrupt Flag
SAMPOVR
4
Sample Overwrite Interrupt Flag
RESOVR
3
Result Overwrite Interrupt Flag
WCMP
2
Window Comparator Interrupt Flag
SAMPRDY
1
Sample Ready Interrupt Flag
RESRDY
0
Result Ready Interrupt Flag
INTFLAGSETInterrupt Flag Set
Address
0x42001C3C
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
Field
Bits
What it does
TRIGOVR
5
Trigger Overrun Interrupt Flag
SAMPOVR
4
Sample Overwrite Interrupt Flag
RESOVR
3
Result Overwrite Interrupt Flag
WCMP
2
Window Comparator Interrupt Flag
SAMPRDY
1
Sample Ready Interrupt Flag
RESRDY
0
Result Ready Interrupt Flag
STATUSStatus
Address
0x42001C40
Reset
0x00000000
Access
read only
Size
32-bit
1 field
Field
Bits
What it does
ADCBUSY
0
ADC Busy
COMMANDCommand
Address
0x42001C48
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
DIFF
7
Differential Mode
MODE
6:4
Mode
0 None
1 Single conversion
2 Series mode with accumulation, using a separate trigger for each conversion
3 Burst mode with accumulation. A single trigger will initiate the number of conversions configured by CTRLD.SAMPNUM in one sequence.
7 Accumulator diagnostics mode
START
2:0
Start Conversion
0 Stop an ongoing conversion
1 Start a conversion immediately. This bit will be reset to STOP when the conversion is complete, unless Free-Running mode is enabled.
2 Start a conversion when a write to the INPUTCTRL register is performed
4 Start a conversion when an event is received by the ADC. This requires EVCTRL.STARTEI to be set to '1'.