PIC32MM0064GPM028 CMP2 registers

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
FieldBitsWhat it does
ON15Comparator 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
COE14Comparator Output Enable bit
  • 0 Comparator output is not driven on the output CxOUT pin
  • 1 Comparator output is driven on the output CxOUT pin
CPOL13Comparator Output Inversion bit
  • 0 Output is not inverted
  • 1 Output is inverted
CEVT9
COUT8Comparator 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)
EVPOL7:6Interrupt 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
CREF4Comparator 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
CCH1:0Comparator 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