The 16 registers of AC (Analog Comparator), from 0x42002000, with their reset value and every field. The PIC32CM1216PL10064 has 702 registers in 32 peripherals, one page each.
AC Analog Comparator
CTRLAControl A
Address
0x42002000
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
ENABLE
1
Global Enable
SWRST
0
Software Reset
CTRLBControl B
Address
0x42002004
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
INTREF
1:0
Internal Reference Selection
0 Internal 1.024V reference
1 Internal 2.048V reference
2 Internal 4.096V reference
3 Internal 2.500V reference
WINCTRLWindow Control
Address
0x42002014
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
WINTSEL0
2:1
Window 0 Interrupt Selection
0 Interrupt when the signal goes above the window
1 Interrupt when the signal goes inside the window
2 Interrupt when the signal goes below the window
3 Interrupt when the signal goes outside the window
WEN0
0
Window 0 Enable
EVCTRLEvent Control
Address
0x42002020
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
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
0x42002024
Reset
0x00000000
Access
read/write
Size
32-bit
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
0x42002028
Reset
0x00000000
Access
read/write
Size
32-bit
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
0x4200202C
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
WIN0
4
Window 0 Interrupt Flag
COMP1
1
Comparator 1 Interrupt Flag
COMP0
0
Comparator 0 Interrupt Flag
INTFLAGSETInterrupt Flag Set
Address
0x42002030
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
WIN0
4
Window 0 Interrupt Flag
COMP1
1
Comparator 1 Interrupt Flag
COMP0
0
Comparator 0 Interrupt Flag
STATUSStatus
Address
0x42002034
Reset
0x00000000
Access
read only
Size
32-bit
3 fields
Field
Bits
What it does
WINSTATE0
5:4
Window 0 State
0 The input signal is above window n
1 The input signal is inside window n
2 The input signal is below window n
COMPSTATE1
1
Comparator 1 State
COMPSTATE0
0
Comparator 0 State
COMPCTRLA0Comparator # Comparator Control A
Address
0x42002040
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
MUXPOS
14:12
Positive Input Selection
0 Positive pin 0
1 Positive pin 1
2 Positive pin 2
3 Positive pin 3
5 Positive pin 5
6 Positive pin 6
7 VDDIO2 Div10
MUXNEG
10:8
Negative Input Selection
0 Negative pin 0
1 Negative pin 1
2 Negative pin 2
7 Voltage Reference Scaler
RUNSTDBY
6
Run in Standby
INTSEL
5:4
Interrupt Selection
0 Interrupt on comparator n output toggle
1 Interrupt on comparator n output rising edge
2 Interrupt on comparator n output falling edge
HYSTEN
3
Hysteresis Enable
OUT
2
Output Enable
ENABLE
1
Comparator Enable
COMPCTRLB0Comparator # Comparator Control B
Address
0x42002044
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
REFSEL
1:0
Reference Selection
0 VDD
1 Internal reference voltage, as defined by the Internal Reference Selection bit field in the Control B register (CTRLB.INTREF)
2 External reference pin
COMPSCALER0Comparator # Comparator Scaler
Address
0x42002048
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
VALUE
7:0
Scaled Reference Voltage
COMPCTRLA1Comparator # Comparator Control A
Address
0x42002050
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
MUXPOS
14:12
Positive Input Selection
0 Positive pin 0
1 Positive pin 1
2 Positive pin 2
3 Positive pin 3
5 Positive pin 5
6 Positive pin 6
7 VDDIO2 Div10
MUXNEG
10:8
Negative Input Selection
0 Negative pin 0
1 Negative pin 1
2 Negative pin 2
7 Voltage Reference Scaler
RUNSTDBY
6
Run in Standby
INTSEL
5:4
Interrupt Selection
0 Interrupt on comparator n output toggle
1 Interrupt on comparator n output rising edge
2 Interrupt on comparator n output falling edge
HYSTEN
3
Hysteresis Enable
OUT
2
Output Enable
ENABLE
1
Comparator Enable
COMPCTRLB1Comparator # Comparator Control B
Address
0x42002054
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
REFSEL
1:0
Reference Selection
0 VDD
1 Internal reference voltage, as defined by the Internal Reference Selection bit field in the Control B register (CTRLB.INTREF)