PIC32CK1012SG00064 AC registers

The 15 registers of AC (Analog Comparator Controller), from 0x45012000, with their reset value and every field. The PIC32CK1012SG00064 has 5596 registers in 69 peripherals, one page each.

AC Analog Comparator Controller

CTRLAControl A

Address
0x45012000
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
ENABLE1Enable
SWRST0Software Reset

CTRLBControl B

Address
0x45012004
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
START11Comparator 1 Start Comparison
START00Comparator 0 Start Comparison

CTRLCControl C

Address
0x45012008
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
PRESCALER26:24Prescaling 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
PER21:12Sample and Hold Clock Period
WIDTH9:0Sample and Hold Clock Pulse Width

EVCTRLEvent Control

Address
0x4501200C
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
INVEI125Inverted Event Input Enable 1
INVEI024Inverted Event Input Enable 0
COMPEI117Comparator 1 Event Input Enable
COMPEI016Comparator 0 Event Input Enable
WINEO08Window 0 Event Output Enable
COMPEO11Comparator 1 Event Output Enable
COMPEO00Comparator 0 Event Output Enable

INTENCLRInterrupt Enable Clear

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

INTENSETInterrupt Enable Set

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

INTFLAGInterrupt Flag Status and Clear

Address
0x45012018
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
WIN08Window 0
COMP11Comparator 1
COMP00Comparator 0

STATUSAStatus A

Address
0x4501201C
Reset
0x00000000
Access
read only
Size
32-bit
3 fields
FieldBitsWhat it does
WSTATE017:16Window 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
0x45012020
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
READY11Comparator 1 Ready
READY00Comparator 0 Ready

DBGCTRLDebug Control

Address
0x45012024
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
DBGRUN0Debug Run

SYNCBUSYSynchronization Busy

Address
0x45012028
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
FieldBitsWhat it does
WINCTRL010WINCTRL 0 Synchronization Busy
COMPCTRL13COMPCTRL 1 Synchronization Busy
COMPCTRL02COMPCTRL 0 Synchronization Busy
ENABLE1Enable Synchronization Busy
SWRST0Software Reset Synchronization Busy

COMPCTRL0Pair n Comparator Control 0

Address
0x45012030
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
OUT25:24Output
  • 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
FLEN23:21Filter Length
  • 0 No filtering
  • 1 3-bit majority function (2 of 3)
  • 2 5-bit majority function (3 of 5)
HYST20:19Hysteresis Level
  • 0 10mV
  • 1 20mV
  • 2 40mV
  • 3 60mV
SPEED17Speed Selection
  • 0 High speed, high power
  • 1 Low speed, low power
SWAP16Swap 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 Internal connection 0, device specific
  • 5 Internal connection 1, device specific
  • 6 Internal connection 2, device specific
  • 7 Internal DAC
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 Internal connection 0, device specific
  • 5 Bangap
  • 6 Ground
  • 7 Internal DAC
RUNSTDBY6Run in Standby
INTSEL5:4Interrupt 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)
SINGLE3Single-Shot Mode
ENABLE1Enable
SUT31:26Start-up Time

COMPCTRL1Pair n Comparator Control 0

Address
0x45012034
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
OUT25:24Output
  • 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
FLEN23:21Filter Length
  • 0 No filtering
  • 1 3-bit majority function (2 of 3)
  • 2 5-bit majority function (3 of 5)
HYST20:19Hysteresis Level
  • 0 10mV
  • 1 20mV
  • 2 40mV
  • 3 60mV
SPEED17Speed Selection
  • 0 High speed, high power
  • 1 Low speed, low power
SWAP16Swap 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 Internal connection 0, device specific
  • 5 Internal connection 1, device specific
  • 6 Internal connection 2, device specific
  • 7 Internal DAC
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 Internal connection 0, device specific
  • 5 Bangap
  • 6 Ground
  • 7 Internal DAC
RUNSTDBY6Run in Standby
INTSEL5:4Interrupt 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)
SINGLE3Single-Shot Mode
ENABLE1Enable
SUT31:26Start-up Time

DACCTRLDac Control

Address
0x45012038
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
VALUE122:16DAC1 Output Value
SHEN015DAC0 Sample and Hold Enable Operating Mode
VALUE06:0DAC0 Output Value
SHEN131DAC1 Sample and Hold Enable Operating Mode

WINCTRLWindow Monitor Control

Address
0x4501203C
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
WINTSEL2:1Window n 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
WEN0Window n Mode Enable