The 1 register of CMP2 (Comparator 2), from 0xBF802330, with their reset value and every field. The PIC32MM0064GPM028 has 419 registers in 52 peripherals, one page each.
Most PIC32 SFRs have three more registers right after them: CLR at +4, SET at +8 and INV at +C (T1CONCLR, T1CONSET, T1CONINV), which clear, set or flip just the bits written as 1, in one write.
CMP2 Comparator 2
CM2CON
Address
0xBF802330
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
Field
Bits
What it does
ON
15
Comparator ON bit
0 Module is disabled and does not consume current. Clearing this bit does not affect the other bits in this register
1 Module is enabled. Setting this bit does not affect the other bits in this register
COE
14
Comparator Output Enable bit
0 Comparator output is not driven on the output CxOUT pin
1 Comparator output is driven on the output CxOUT pin
CPOL
13
Comparator Output Inversion bit
0 Output is not inverted
1 Output is inverted
CEVT
9
COUT
8
Comparator Output bit
0 VIN+ is greater than VIN- (if CPOL = 1)/VIN+ is smaller than VIN- (if CPOL = 0)
1 VIN+ is greater than VIN- (if CPOL = 0)/VIN+ is smaller than VIN- (if CPOL = 1)
EVPOL
7:6
Interrupt Event Polarity Select bits
0 Comparator event generation is disabled
1 Comparator event is generated on a high-to-low transition (if CPOL = 1) or low-to-high transition (if CPOL = 0) of the comparator output
2 Comparator event is generated on a high-to-low transition (if CPOL = 0) or low-to-high transition (if CPOL = 1) of the comparator output
3 Comparator event is generated on any change of the comparator output
CREF
4
Comparator Positive Input Configuration
0 Comparator non-inverting input is connected to the CxINA pin
1 Comparator Non-inverting input connects to the reference defined by the CVREFSEL bit
CCH
1:0
Comparator Negative Input Configuration
0 Comparator inverting input is connected to the CxINB pin
1 Comparator inverting input is connected to the CxINC pin
2 Comparator inverting input is connected to the CxIND pin
3 Comparator inverting input is connected to the band gap reference voltage