PIC32WM_BZ3602_SL3 AC registers

The 15 registers of AC (Analog Comparators), from 0x42001C00, with their reset value and every field. The PIC32WM_BZ3602_SL3 has 2233 registers in 60 peripherals, one page each.

AC Analog Comparators

CTRLAControl A

Address
0x42001C00
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
0x42001C01
Reset
0x00
Access
write only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1START1
  8. 0START0
2 fields
FieldBitsWhat it does
START11Comparator 1 Start Comparison
START00Comparator 0 Start Comparison

EVCTRLEvent Control

Address
0x42001C02
Reset
0x0000
Access
read/write
Size
16-bit
7 fields
FieldBitsWhat it does
INVEI113Comparator 1 Input Event Invert Enable
INVEI012Comparator 0 Input Event Invert Enable
COMPEI19Comparator 1 Event Input Enable
COMPEI08Comparator 0 Event Input Enable
WINEO04Window 0 Event Output Enable
COMPEO11Comparator 1 Event Output Enable
COMPEO00Comparator 0 Event Output Enable

INTENCLRInterrupt Enable Clear

Address
0x42001C04
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4WIN0
  5. 3–
  6. 2–
  7. 1COMP1
  8. 0COMP0
3 fields
FieldBitsWhat it does
WIN04Window 0 Interrupt Enable
COMP11Comparator 1 Interrupt Enable
COMP00Comparator 0 Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x42001C05
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4WIN0
  5. 3–
  6. 2–
  7. 1COMP1
  8. 0COMP0
3 fields
FieldBitsWhat it does
WIN04Window 0 Interrupt Enable
COMP11Comparator 1 Interrupt Enable
COMP00Comparator 0 Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x42001C06
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4WIN0
  5. 3–
  6. 2–
  7. 1COMP1
  8. 0COMP0
3 fields
FieldBitsWhat it does
WIN04Window 0
COMP11Comparator 1
COMP00Comparator 0

STATUSAStatus A

Address
0x42001C07
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5WSTATE01
  4. 4WSTATE00
  5. 3–
  6. 2–
  7. 1STATE1
  8. 0STATE0
3 fields
FieldBitsWhat it does
WSTATE05:4Window 0 Current State
  • 0 Signal is above window
  • 1 Signal is inside window
  • 2 Signal is below window
STATE11Comparator 1 Current State
STATE00Comparator 0 Current State

STATUSBStatus B

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

DBGCTRLDebug Control

Address
0x42001C09
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
0x42001C0A
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2WINTSEL01
  7. 1WINTSEL00
  8. 0WEN0
2 fields
FieldBitsWhat it does
WINTSEL02:1Window 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
WEN00Window 0 Mode Enable

SCALER0Scaler n

Address
0x42001C0C
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
0x42001C0D
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
0x42001C10
Reset
0x00000000
Access
read/write
Size
32-bit
9 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)
SWAP15Swap Inputs and Invert
MUXPOS14:12Positive Input Mux Selection
  • 0 I/O pin 0
  • 1 I/O pin 1
  • 2 I/O pin 2
  • 3 I/O pin 3
  • 4 VDD Scaler
MUXNEG10:8Negative Input Mux Selection
  • 0 I/O pin 0
  • 1 I/O pin 1
  • 2 I/O pin 2
  • 3 I/O pin 3
  • 4 Ground
  • 5 VDD scaler
  • 6 Internal bandgap voltage
  • 7 DAC 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
0x42001C14
Reset
0x00000000
Access
read/write
Size
32-bit
9 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)
SWAP15Swap Inputs and Invert
MUXPOS14:12Positive Input Mux Selection
  • 0 I/O pin 0
  • 1 I/O pin 1
  • 2 I/O pin 2
  • 3 I/O pin 3
  • 4 VDD Scaler
MUXNEG10:8Negative Input Mux Selection
  • 0 I/O pin 0
  • 1 I/O pin 1
  • 2 I/O pin 2
  • 3 I/O pin 3
  • 4 Ground
  • 5 VDD scaler
  • 6 Internal bandgap voltage
  • 7 DAC 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
0x42001C20
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
FieldBitsWhat it does
COMPCTRL14COMPCTRL 1 Synchronization Busy
COMPCTRL03COMPCTRL 0 Synchronization Busy
WINCTRL2WINCTRL Synchronization Busy
ENABLE1Enable Synchronization Busy
SWRST0Software Reset Synchronization Busy