PIC32CX1025MTSH128 ACC registers

The 9 registers of ACC (Analog Comparator Controller), from 0x40028000, with their reset value and every field. The PIC32CX1025MTSH128 has 2920 registers in 63 peripherals, one page each.

ACC Analog Comparator Controller

ACC_CRControl Register

Address
0x40028000
Reset
0x00000000
Access
write only
Size
32-bit
1 field
FieldBitsWhat it does
SWRST0Software Reset

ACC_MRMode Register

Address
0x40028004
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
FE14Fault Enable
  • 0 The FAULT output is tied to 0.
  • 1 The FAULT output is driven by the signal defined by SELFS.
SELFS13Selection Of Fault Source
  • 0 The CE flag is used to drive the FAULT output.
  • 1 The output of the analog comparator flag is used to drive the FAULT output.
INV12Invert Comparator Output
  • 0 Analog comparator output is directly processed.
  • 1 Analog comparator output is inverted prior to being processed.
EDGETYP10:9Edge Type
  • 0 Only rising edge of comparator output
  • 1 Falling edge of comparator output
  • 2 Any edge of comparator output
ACEN8Analog Comparator Enable
  • 0 Analog comparator disabled.
  • 1 Analog comparator enabled.
SELPLUS6:4Selection For Plus Comparator Input
  • 0 Selects AD0
  • 1 Selects AD1
  • 2 Selects AD2
  • 3 Selects VREFP
SELMINUS2:0Selection for Minus Comparator Input
  • 0 Selects AD3
  • 1 Selects AD4
  • 2 Selects VTEMP
  • 3 Selects VREFTEMP

ACC_IERInterrupt Enable Register

Address
0x40028024
Reset
0x00000000
Access
write only
Size
32-bit
1 field
FieldBitsWhat it does
CE0Comparison Edge

ACC_IDRInterrupt Disable Register

Address
0x40028028
Reset
0x00000000
Access
write only
Size
32-bit
1 field
FieldBitsWhat it does
CE0Comparison Edge

ACC_IMRInterrupt Mask Register

Address
0x4002802C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
CE0Comparison Edge

ACC_ISRInterrupt Status Register

Address
0x40028030
Reset
0x00000000
Access
read only
Size
32-bit
3 fields
FieldBitsWhat it does
SCO1Synchronized Comparator Output
CE0Comparison Edge (cleared on read)
MASK31Flag Mask

ACC_ACRAnalog Control Register

Address
0x40028094
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
MSEL0Masking Period Selection
  • 0 Masks AC output for 16 peripheral clock periods after any write access in ACC_MR or ACC_CR
  • 1 Masks AC output for 128 peripheral clock periods after any write access in ACC_MR or ACC_CR

ACC_WPMRWrite Protection Mode Register

Address
0x400280E4
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
WPEN0Write Protection Configuration Enable
WPKEY31:8Write Protection Key
  • 4277059 Writing any other value in this field aborts the write operation of the WPEN bit. Always reads as 0.

ACC_WPSRWrite Protection Status Register

Address
0x400280E8
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
WPVS0Write Protection Violation Status