PIC32CM1216PL10064 AC registers

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
FieldBitsWhat it does
ENABLE1Global Enable
SWRST0Software Reset

CTRLBControl B

Address
0x42002004
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
INTREF1:0Internal 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
FieldBitsWhat it does
WINTSEL02:1Window 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
WEN00Window 0 Enable

EVCTRLEvent Control

Address
0x42002020
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WINEO04Window 0 Event Output Enable
COMPEO11Comparator 1 Event Output Enable
COMPEO00Comparator 0 Event Output Enable

INTENCLRInterrupt Enable Clear

Address
0x42002024
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WIN04Window 0 Interrupt Enable
COMP11Comparator 1 Interrupt Enable
COMP00Comparator 0 Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x42002028
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WIN04Window 0 Interrupt Enable
COMP11Comparator 1 Interrupt Enable
COMP00Comparator 0 Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x4200202C
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WIN04Window 0 Interrupt Flag
COMP11Comparator 1 Interrupt Flag
COMP00Comparator 0 Interrupt Flag

INTFLAGSETInterrupt Flag Set

Address
0x42002030
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WIN04Window 0 Interrupt Flag
COMP11Comparator 1 Interrupt Flag
COMP00Comparator 0 Interrupt Flag

STATUSStatus

Address
0x42002034
Reset
0x00000000
Access
read only
Size
32-bit
3 fields
FieldBitsWhat it does
WINSTATE05:4Window 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
COMPSTATE11Comparator 1 State
COMPSTATE00Comparator 0 State

COMPCTRLA0Comparator # Comparator Control A

Address
0x42002040
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
MUXPOS14:12Positive 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
MUXNEG10:8Negative Input Selection
  • 0 Negative pin 0
  • 1 Negative pin 1
  • 2 Negative pin 2
  • 7 Voltage Reference Scaler
RUNSTDBY6Run in Standby
INTSEL5:4Interrupt Selection
  • 0 Interrupt on comparator n output toggle
  • 1 Interrupt on comparator n output rising edge
  • 2 Interrupt on comparator n output falling edge
HYSTEN3Hysteresis Enable
OUT2Output Enable
ENABLE1Comparator Enable

COMPCTRLB0Comparator # Comparator Control B

Address
0x42002044
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
REFSEL1:0Reference 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
FieldBitsWhat it does
VALUE7:0Scaled Reference Voltage

COMPCTRLA1Comparator # Comparator Control A

Address
0x42002050
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
MUXPOS14:12Positive 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
MUXNEG10:8Negative Input Selection
  • 0 Negative pin 0
  • 1 Negative pin 1
  • 2 Negative pin 2
  • 7 Voltage Reference Scaler
RUNSTDBY6Run in Standby
INTSEL5:4Interrupt Selection
  • 0 Interrupt on comparator n output toggle
  • 1 Interrupt on comparator n output rising edge
  • 2 Interrupt on comparator n output falling edge
HYSTEN3Hysteresis Enable
OUT2Output Enable
ENABLE1Comparator Enable

COMPCTRLB1Comparator # Comparator Control B

Address
0x42002054
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
REFSEL1:0Reference 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

COMPSCALER1Comparator # Comparator Scaler

Address
0x42002058
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
VALUE7:0Scaled Reference Voltage

WPCTRLWrite Protection Control

Address
0x42002080
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WPLCK1Write Protection Lock
WPEN0Write Protection Enable
WPKEY31:8Write Protection Key
  • 4277024 Allow writes to the WPCTRL register