PIC32CM2532JH01064 AC registers

The 19 registers of AC (Analog Comparators), from 0x42004C00, with their reset value and every field. The PIC32CM2532JH01064 has 1321 registers in 51 peripherals, one page each.

AC Analog Comparators

CTRLAControl A

Address
0x42004C00
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0SWRST
2 fields
FieldBitsWhat it does
ENABLE1Enable
SWRST0Software Reset

CTRLBControl B

Address
0x42004C01
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3START3
  6. 2START2
  7. 1START1
  8. 0START0
4 fields
FieldBitsWhat it does
START33Comparator 3 Start Comparison
START22Comparator 2 Start Comparison
START11Comparator 1 Start Comparison
START00Comparator 0 Start Comparison

EVCTRLEvent Control

Address
0x42004C02
Reset
0x0000
Access
read/write
Size
16-bit
14 fields
FieldBitsWhat it does
INVEI315Comparator 3 Input Event Invert Enable
INVEI214Comparator 2 Input Event Invert Enable
INVEI113Comparator 1 Input Event Invert Enable
INVEI012Comparator 0 Input Event Invert Enable
COMPEI311Comparator 3 Event Input Enable
COMPEI210Comparator 2 Event Input Enable
COMPEI19Comparator 1 Event Input Enable
COMPEI08Comparator 0 Event Input Enable
WINEO15Window 1 Event Output Enable
WINEO04Window 0 Event Output Enable
COMPEO33Comparator 3 Event Output Enable
COMPEO22Comparator 2 Event Output Enable
COMPEO11Comparator 1 Event Output Enable
COMPEO00Comparator 0 Event Output Enable

INTENCLRInterrupt Enable Clear

Address
0x42004C04
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5WIN1
  4. 4WIN0
  5. 3COMP3
  6. 2COMP2
  7. 1COMP1
  8. 0COMP0
6 fields
FieldBitsWhat it does
WIN15Window 1 Interrupt Enable
WIN04Window 0 Interrupt Enable
COMP33Comparator 3 Interrupt Enable
COMP22Comparator 2 Interrupt Enable
COMP11Comparator 1 Interrupt Enable
COMP00Comparator 0 Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x42004C05
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5WIN1
  4. 4WIN0
  5. 3COMP3
  6. 2COMP2
  7. 1COMP1
  8. 0COMP0
6 fields
FieldBitsWhat it does
WIN15Window 1 Interrupt Enable
WIN04Window 0 Interrupt Enable
COMP33Comparator 3 Interrupt Enable
COMP22Comparator 2 Interrupt Enable
COMP11Comparator 1 Interrupt Enable
COMP00Comparator 0 Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x42004C06
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5WIN1
  4. 4WIN0
  5. 3COMP3
  6. 2COMP2
  7. 1COMP1
  8. 0COMP0
6 fields
FieldBitsWhat it does
WIN15Window 1
WIN04Window 0
COMP33Comparator 3
COMP22Comparator 2
COMP11Comparator 1
COMP00Comparator 0

STATUSAStatus A

Address
0x42004C07
Reset
0x00
Access
read only
  1. 7WSTATE11
  2. 6WSTATE10
  3. 5WSTATE01
  4. 4WSTATE00
  5. 3STATE3
  6. 2STATE2
  7. 1STATE1
  8. 0STATE0
6 fields
FieldBitsWhat it does
WSTATE17:6Window 1 Current State
  • 0 Signal is above window1
  • 1 Signal is inside window1
  • 2 Signal is below window1
WSTATE05:4Window 0 Current State
  • 0 Signal is above window0
  • 1 Signal is inside window0
  • 2 Signal is below window0
STATE33Comparator 3 Current State
STATE22Comparator 2 Current State
STATE11Comparator 1 Current State
STATE00Comparator 0 Current State

STATUSBStatus B

Address
0x42004C08
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3READY3
  6. 2READY2
  7. 1READY1
  8. 0READY0
4 fields
FieldBitsWhat it does
READY33Comparator 3 Ready
READY22Comparator 2 Ready
READY11Comparator 1 Ready
READY00Comparator 0 Ready

DBGCTRLDebug Control

Address
0x42004C09
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0DBGRUN
1 field
FieldBitsWhat it does
DBGRUN0Debug Run

WINCTRLWindow Control

Address
0x42004C0A
Reset
0x00
Access
read/write
  1. 7–
  2. 6WINTSEL11
  3. 5WINTSEL10
  4. 4WEN1
  5. 3–
  6. 2WINTSEL01
  7. 1WINTSEL00
  8. 0WEN0
4 fields
FieldBitsWhat it does
WINTSEL16:5Window 1 Interrupt Selection
  • 0 Interrupt on signal above window1
  • 1 Interrupt on signal inside window1
  • 2 Interrupt on signal below window1
  • 3 Interrupt on signal outside window1
WEN14Window 1 Mode Enable
WINTSEL02:1Window 0 Interrupt Selection
  • 0 Interrupt on signal above window0
  • 1 Interrupt on signal inside window0
  • 2 Interrupt on signal below window0
  • 3 Interrupt on signal outside window0
WEN00Window 0 Mode Enable

SCALER0Scaler n

Address
0x42004C0C
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5VALUE5
  4. 4VALUE4
  5. 3VALUE3
  6. 2VALUE2
  7. 1VALUE1
  8. 0VALUE0
1 field
FieldBitsWhat it does
VALUE5:0Scaler Value

SCALER1Scaler n

Address
0x42004C0D
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5VALUE5
  4. 4VALUE4
  5. 3VALUE3
  6. 2VALUE2
  7. 1VALUE1
  8. 0VALUE0
1 field
FieldBitsWhat it does
VALUE5:0Scaler Value

SCALER2Scaler n

Address
0x42004C0E
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5VALUE5
  4. 4VALUE4
  5. 3VALUE3
  6. 2VALUE2
  7. 1VALUE1
  8. 0VALUE0
1 field
FieldBitsWhat it does
VALUE5:0Scaler Value

SCALER3Scaler n

Address
0x42004C0F
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5VALUE5
  4. 4VALUE4
  5. 3VALUE3
  6. 2VALUE2
  7. 1VALUE1
  8. 0VALUE0
1 field
FieldBitsWhat it does
VALUE5:0Scaler Value

COMPCTRL0Comparator Control n

Address
0x42004C10
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
FieldBitsWhat it does
OUT29:28Output
  • 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
FLEN26:24Filter Length
  • 0 No filtering
  • 1 3-bit majority function (2 of 3)
  • 2 5-bit majority function (3 of 5)
HYSTEN19Hysteresis Enable
SPEED17:16Speed Selection
  • 0 Low speed
  • 3 High speed
SWAP15Swap Inputs and Invert
MUXPOS14:12Positive Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 VDD Scaler
MUXNEG10:8Negative Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 Ground
  • 5 VDD Scaler
  • 6 Internal Voltage Reference
  • 7 DAC Voltage Output
RUNSTDBY6Run in Standby
INTSEL4:3Interrupt 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)
SINGLE2Single-Shot Mode
ENABLE1Enable

COMPCTRL1Comparator Control n

Address
0x42004C14
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
FieldBitsWhat it does
OUT29:28Output
  • 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
FLEN26:24Filter Length
  • 0 No filtering
  • 1 3-bit majority function (2 of 3)
  • 2 5-bit majority function (3 of 5)
HYSTEN19Hysteresis Enable
SPEED17:16Speed Selection
  • 0 Low speed
  • 3 High speed
SWAP15Swap Inputs and Invert
MUXPOS14:12Positive Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 VDD Scaler
MUXNEG10:8Negative Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 Ground
  • 5 VDD Scaler
  • 6 Internal Voltage Reference
  • 7 DAC Voltage Output
RUNSTDBY6Run in Standby
INTSEL4:3Interrupt 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)
SINGLE2Single-Shot Mode
ENABLE1Enable

COMPCTRL2Comparator Control n

Address
0x42004C18
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
FieldBitsWhat it does
OUT29:28Output
  • 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
FLEN26:24Filter Length
  • 0 No filtering
  • 1 3-bit majority function (2 of 3)
  • 2 5-bit majority function (3 of 5)
HYSTEN19Hysteresis Enable
SPEED17:16Speed Selection
  • 0 Low speed
  • 3 High speed
SWAP15Swap Inputs and Invert
MUXPOS14:12Positive Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 VDD Scaler
MUXNEG10:8Negative Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 Ground
  • 5 VDD Scaler
  • 6 Internal Voltage Reference
  • 7 DAC Voltage Output
RUNSTDBY6Run in Standby
INTSEL4:3Interrupt 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)
SINGLE2Single-Shot Mode
ENABLE1Enable

COMPCTRL3Comparator Control n

Address
0x42004C1C
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
FieldBitsWhat it does
OUT29:28Output
  • 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
FLEN26:24Filter Length
  • 0 No filtering
  • 1 3-bit majority function (2 of 3)
  • 2 5-bit majority function (3 of 5)
HYSTEN19Hysteresis Enable
SPEED17:16Speed Selection
  • 0 Low speed
  • 3 High speed
SWAP15Swap Inputs and Invert
MUXPOS14:12Positive Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 VDD Scaler
MUXNEG10:8Negative Input Mux Selection
  • 0 I/O pin 0 for COMPCTRL0/1
  • 0 I/O pin 0 for COMPCTRL2/3
  • 1 I/O pin 1 for COMPCTRL0/1
  • 1 I/O pin 1 for COMPCTRL2/3
  • 2 I/O pin 2 for COMPCTRL0/1
  • 2 I/O pin 2 for COMPCTRL2/3
  • 3 I/O pin 3 for COMPCTRL0/1
  • 3 I/O pin 3 for COMPCTRL2/3
  • 4 Ground
  • 5 VDD Scaler
  • 6 Internal Voltage Reference
  • 7 DAC Voltage Output
RUNSTDBY6Run in Standby
INTSEL4:3Interrupt 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)
SINGLE2Single-Shot Mode
ENABLE1Enable

SYNCBUSYSynchronization Busy

Address
0x42004C20
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
FieldBitsWhat it does
COMPCTRL36COMPCTRL 3 Synchronization Busy
COMPCTRL25COMPCTRL 2 Synchronization Busy
COMPCTRL14COMPCTRL 1 Synchronization Busy
COMPCTRL03COMPCTRL 0 Synchronization Busy
WINCTRL2WINCTRL Synchronization Busy
ENABLE1Enable Synchronization Busy
SWRST0Software Reset Synchronization Busy