The 15 registers of AC (Analog Comparators), from 0x42005000, with their reset value and every field. The PIC32CM1216MC00032 has 1086 registers in 44 peripherals, one page each.
AC Analog Comparators
CTRLAControl A
Address
0x42005000
Reset
0x00
Access
read/write
7–
6–
5–
4–
3–
2–
1ENABLE
0SWRST
2 fields
Field
Bits
What it does
ENABLE
1
Enable
SWRST
0
Software Reset
CTRLBControl B
Address
0x42005001
Reset
0x00
Access
read/write
7–
6–
5–
4–
3–
2–
1START1
0START0
2 fields
Field
Bits
What it does
START1
1
Comparator 1 Start Comparison
START0
0
Comparator 0 Start Comparison
EVCTRLEvent Control
Address
0x42005002
Reset
0x0000
Access
read/write
Size
16-bit
7 fields
Field
Bits
What it does
INVEI1
13
Comparator 1 Input Event Invert Enable
INVEI0
12
Comparator 0 Input Event Invert Enable
COMPEI1
9
Comparator 1 Event Input Enable
COMPEI0
8
Comparator 0 Event Input Enable
WINEO0
4
Window 0 Event Output Enable
COMPEO1
1
Comparator 1 Event Output Enable
COMPEO0
0
Comparator 0 Event Output Enable
INTENCLRInterrupt Enable Clear
Address
0x42005004
Reset
0x00
Access
read/write
7–
6–
5–
4WIN0
3–
2–
1COMP1
0COMP0
3 fields
Field
Bits
What it does
WIN0
4
Window 0 Interrupt Enable
COMP1
1
Comparator 1 Interrupt Enable
COMP0
0
Comparator 0 Interrupt Enable
INTENSETInterrupt Enable Set
Address
0x42005005
Reset
0x00
Access
read/write
7–
6–
5–
4WIN0
3–
2–
1COMP1
0COMP0
3 fields
Field
Bits
What it does
WIN0
4
Window 0 Interrupt Enable
COMP1
1
Comparator 1 Interrupt Enable
COMP0
0
Comparator 0 Interrupt Enable
INTFLAGInterrupt Flag Status and Clear
Address
0x42005006
Reset
0x00
Access
read/write
7–
6–
5–
4WIN0
3–
2–
1COMP1
0COMP0
3 fields
Field
Bits
What it does
WIN0
4
Window 0
COMP1
1
Comparator 1
COMP0
0
Comparator 0
STATUSAStatus A
Address
0x42005007
Reset
0x00
Access
read only
7–
6–
5WSTATE01
4WSTATE00
3–
2–
1STATE1
0STATE0
3 fields
Field
Bits
What it does
WSTATE0
5:4
Window 0 Current State
0 Signal is above window
1 Signal is inside window
2 Signal is below window
STATE1
1
Comparator 1 Current State
STATE0
0
Comparator 0 Current State
STATUSBStatus B
Address
0x42005008
Reset
0x00
Access
read only
7–
6–
5–
4–
3–
2–
1READY1
0READY0
2 fields
Field
Bits
What it does
READY1
1
Comparator 1 Ready
READY0
0
Comparator 0 Ready
DBGCTRLDebug Control
Address
0x42005009
Reset
0x00
Access
read/write
7–
6–
5–
4–
3–
2–
1–
0DBGRUN
1 field
Field
Bits
What it does
DBGRUN
0
Debug Run
WINCTRLWindow Control
Address
0x4200500A
Reset
0x00
Access
read/write
7–
6–
5–
4–
3–
2WINTSEL01
1WINTSEL00
0WEN0
2 fields
Field
Bits
What it does
WINTSEL0
2:1
Window 0 Interrupt Selection
0 Interrupt on signal above window
1 Interrupt on signal inside window
2 Interrupt on signal below window
3 Interrupt on signal outside window
WEN0
0
Window 0 Mode Enable
SCALER0Scaler n
Address
0x4200500C
Reset
0x00
Access
read/write
7–
6–
5VALUE5
4VALUE4
3VALUE3
2VALUE2
1VALUE1
0VALUE0
1 field
Field
Bits
What it does
VALUE
5:0
Scaler Value
SCALER1Scaler n
Address
0x4200500D
Reset
0x00
Access
read/write
7–
6–
5VALUE5
4VALUE4
3VALUE3
2VALUE2
1VALUE1
0VALUE0
1 field
Field
Bits
What it does
VALUE
5:0
Scaler Value
COMPCTRL0Comparator Control n
Address
0x42005010
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
Field
Bits
What it does
OUT
29:28
Output
0 The output of COMPn is not routed to the COMPn I/O port
1 The asynchronous output of COMPn is routed to the COMPn I/O port
2 The synchronous output (including filtering) of COMPn is routed to the COMPn I/O port
FLEN
26:24
Filter Length
0 No filtering
1 3-bit majority function (2 of 3)
2 5-bit majority function (3 of 5)
HYSTEN
19
Hysteresis Enable
SPEED
17:16
Speed Selection
0 Low speed
3 High speed
SWAP
15
Swap Inputs and Invert
MUXPOS
14:12
Positive Input Mux Selection
0 I/O pin 0 for COMPCTRL0/1
1 I/O pin 1 for COMPCTRL0/1
2 I/O pin 2 for COMPCTRL0/1
3 I/O pin 3 for COMPCTRL0/1
4 VDD Scaler
MUXNEG
10:8
Negative Input Mux Selection
0 I/O pin 0 for COMPCTRL0/1
1 I/O pin 1 for COMPCTRL0/1
2 I/O pin 2 for COMPCTRL0/1
3 I/O pin 3 for COMPCTRL0/1
4 Ground
5 VDD Scaler
6 Internal Voltage Reference
7 DAC Voltage Output
RUNSTDBY
6
Run in Standby
INTSEL
4:3
Interrupt Selection
0 Interrupt on comparator output toggle
1 Interrupt on comparator output rising
2 Interrupt on comparator output falling
3 Interrupt on end of comparison (single-shot mode only)
SINGLE
2
Single-Shot Mode
ENABLE
1
Enable
COMPCTRL1Comparator Control n
Address
0x42005014
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
Field
Bits
What it does
OUT
29:28
Output
0 The output of COMPn is not routed to the COMPn I/O port
1 The asynchronous output of COMPn is routed to the COMPn I/O port
2 The synchronous output (including filtering) of COMPn is routed to the COMPn I/O port
FLEN
26:24
Filter Length
0 No filtering
1 3-bit majority function (2 of 3)
2 5-bit majority function (3 of 5)
HYSTEN
19
Hysteresis Enable
SPEED
17:16
Speed Selection
0 Low speed
3 High speed
SWAP
15
Swap Inputs and Invert
MUXPOS
14:12
Positive Input Mux Selection
0 I/O pin 0 for COMPCTRL0/1
1 I/O pin 1 for COMPCTRL0/1
2 I/O pin 2 for COMPCTRL0/1
3 I/O pin 3 for COMPCTRL0/1
4 VDD Scaler
MUXNEG
10:8
Negative Input Mux Selection
0 I/O pin 0 for COMPCTRL0/1
1 I/O pin 1 for COMPCTRL0/1
2 I/O pin 2 for COMPCTRL0/1
3 I/O pin 3 for COMPCTRL0/1
4 Ground
5 VDD Scaler
6 Internal Voltage Reference
7 DAC Voltage Output
RUNSTDBY
6
Run in Standby
INTSEL
4:3
Interrupt Selection
0 Interrupt on comparator output toggle
1 Interrupt on comparator output rising
2 Interrupt on comparator output falling
3 Interrupt on end of comparison (single-shot mode only)