The 15 registers of AC (Analog Comparator Controller), from 0x46822000, with their reset value and every field. The PIC32CZ4010CA91176 has 6864 registers in 76 peripherals, one page each.
AC Analog Comparator Controller
CTRLAControl A
Address
0x46822000
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
ENABLE
1
Enable
SWRST
0
Software Reset
CTRLBControl B
Address
0x46822004
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
START1
1
Comparator 1 Start Comparison
START0
0
Comparator 0 Start Comparison
CTRLCControl C
Address
0x46822008
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
Field
Bits
What it does
AIPMPEN
27
Analog Input Charge Pump Enable
PRESCALER
26:24
Prescaling Factor
0 Sampling rate is GCLK_AC (No division)
1 Sampling rate is GCLK_AC/2
2 Sampling rate is GCLK_AC/4
3 Sampling rate is GCLK_AC/8
4 Sampling rate is GCLK_AC/16
5 Sampling rate is GCLK_AC/32
6 Sampling rate is GCLK_AC/64
7 Sampling rate is GCLK_AC/128
PER
21:12
Sample and Hold Clock Period
WIDTH
9:0
Sample and Hold Clock Pulse Width
CONFIG
31:28
Configuration Extension
EVCTRLEvent Control
Address
0x4682200C
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
INVEI1
25
Inverted Event Input Enable 1
INVEI0
24
Inverted Event Input Enable 0
COMPEI1
17
Comparator 1 Event Input Enable
COMPEI0
16
Comparator 0 Event Input Enable
WINEO0
8
Window 0 Event Output Enable
COMPEO1
1
Comparator 1 Event Output Enable
COMPEO0
0
Comparator 0 Event Output Enable
INTENCLRInterrupt Enable Clear
Address
0x46822010
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
WIN0
8
Window 0 Interrupt Enable
COMP1
1
Comparator 1 Interrupt Enable
COMP0
0
Comparator 0 Interrupt Enable
INTENSETInterrupt Enable Set
Address
0x46822014
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
WIN0
8
Window 0 Interrupt Enable
COMP1
1
Comparator 1 Interrupt Enable
COMP0
0
Comparator 0 Interrupt Enable
INTFLAGInterrupt Flag Status and Clear
Address
0x46822018
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
WIN0
8
Window 0
COMP1
1
Comparator 1
COMP0
0
Comparator 0
STATUSAStatus A
Address
0x4682201C
Reset
0x00000000
Access
read only
Size
32-bit
4 fields
Field
Bits
What it does
WSTATE1
19:18
Window 1 Current State
0 Signal is above window
1 Signal is inside window
2 Signal is below window
WSTATE0
17:16
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
0x46822020
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
Field
Bits
What it does
READY1
1
Comparator 1 Ready
READY0
0
Comparator 0 Ready
DBGCTRLDebug Control
Address
0x46822024
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
DBGRUN
0
Debug Run
SYNCBUSYSynchronization Busy
Address
0x46822028
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
Field
Bits
What it does
WINCTRL0
10
WINCTRL 0 Synchronization Busy
COMPCTRL1
3
COMPCTRL 1 Synchronization Busy
COMPCTRL0
2
COMPCTRL 0 Synchronization Busy
ENABLE
1
Enable Synchronization Busy
SWRST
0
Software Reset Synchronization Busy
COMPCTRL0Pair n Comparator Control 0
Address
0x46822030
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
Field
Bits
What it does
OUT
25:24
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
23:21
Filter Length
0 No filtering
1 3-bit majority function (2 of 3)
2 5-bit majority function (3 of 5)
HYST
20:19
Hysteresis Level
0 10mV
1 20mV
2 40mV
3 60mV
SPEED
17
Speed Selection
0 High speed, high power
1 Low speed, low power
SWAP
16
Swap Inputs and Invert
MUXPOS
14:12
Positive Input Mux Selection
0 I/O pin 0
1 I/O pin 1
2 I/O pin 2
3 I/O pin 3
4 Internal connection 0, device specific
5 Internal connection 1, device specific
6 Internal connection 2, device specific
7 Internal DAC
MUXNEG
10:8
Negative Input Mux Selection
0 I/O pin 0
1 I/O pin 1
2 I/O pin 2
3 I/O pin 3
4 Internal connection 0, device specific
5 Bangap
6 Ground
7 Internal DAC
RUNSTDBY
6
Run in Standby
INTSEL
5:4
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
3
Single-Shot Mode
ENABLE
1
Enable
SUT
31:26
Start-up Time
COMPCTRL1Pair n Comparator Control 0
Address
0x46822034
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
Field
Bits
What it does
OUT
25:24
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
23:21
Filter Length
0 No filtering
1 3-bit majority function (2 of 3)
2 5-bit majority function (3 of 5)
HYST
20:19
Hysteresis Level
0 10mV
1 20mV
2 40mV
3 60mV
SPEED
17
Speed Selection
0 High speed, high power
1 Low speed, low power
SWAP
16
Swap Inputs and Invert
MUXPOS
14:12
Positive Input Mux Selection
0 I/O pin 0
1 I/O pin 1
2 I/O pin 2
3 I/O pin 3
4 Internal connection 0, device specific
5 Internal connection 1, device specific
6 Internal connection 2, device specific
7 Internal DAC
MUXNEG
10:8
Negative Input Mux Selection
0 I/O pin 0
1 I/O pin 1
2 I/O pin 2
3 I/O pin 3
4 Internal connection 0, device specific
5 Bangap
6 Ground
7 Internal DAC
RUNSTDBY
6
Run in Standby
INTSEL
5:4
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)