PIC32MK0128MCA032 CMP3 registers

The 1 register of CMP3 (Comparator 3), from 0xBF82C050, with their reset value and every field. The PIC32MK0128MCA032 has 771 registers in 65 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.

CMP3 Comparator 3

CM3CONOp amp/Comparator x Control Register

Address
0xBF82C050
Reset
0x00000000
Access
read/write
Size
32-bit
16 fields
FieldBitsWhat it does
ENPGA30Opamp Fixed Gain Enable bit
  • 0 Op amp is operating in Open Loop mode (default)
  • 1 Op amp is operating in Fixed Gain 1X mode
HYSPOL28Comparator Hysteresis Polarity Selection
  • 0 Hysteresis on rising edge, falling edge is accurate
  • 1 Hysteresis on falling edge, rising edge is accurate
HYSSEL25:24Hysteresis Selection bits
  • 0 No hysteresis selected.
  • 1 Set lowest hysteresis level (Typical 15 mV)
  • 2 Set medium hysteresis level (Typical 30 mV)
  • 3 Set highest hysteresis level (Typical 45 mV)
CFSEL22:20Comparator Output Filter Clock Source Select bits
  • 0 SYSCLK Clock
  • 1 PPBCLK2 Clock
  • 2 PWM Secondary Special Event
  • 3 REFCLK3 Clock
  • 4 PBCLK2/Timer2 Period Value (PR2)
  • 5 PBCLK2/Timer3 Period Value (PR3)
  • 6 PBCLK2/Timer4 Period Value (PR4)
  • 7 PBCLK2/Timer5 Period Value (PR5)
CFLTREN19Comparator Output Digital Filter Enable bit
  • 0 Digital Filters disabled
  • 1 Digital Filters enabled
CFDIV18:16Comparator Output Filter Clock Divide Select bits
  • 0 1:1 Clock Divide
  • 1 1:2 Clock Divide
  • 2 1:4 Clock Divide
  • 3 1:8 Clock Divide
  • 4 1:16 Clock Divide
  • 5 1:32 Clock Divide
  • 6 1:64 Clock Divide
  • 7 1:128 Clock Divide
ON15Comparator Enable bit
  • 0 Comparator is disabled
  • 1 Comparator is enabled
COE14Comparator Output Enable bit
  • 0 Comparator output is internal only
  • 1 Comparator output is present on the CxOUT pin
CPOL13Comparator Output Polarity Select bit
  • 0 Comparator output is not inverted
  • 1 Comparator output is inverted
OPLPWR12Op-Amp Power mode
  • 0 Op-amp operating in normal power mode, (10Mhz = Bandwidth = 100Mhz)
  • 1 Op-amp operating in low power mode (1/10 power, slower response, Bandwidth = 10Mhz)
CEVT9Comparator Event bit
  • 0 Comparator event did not occur
  • 1 Comparator event according to EVPOL bit settings occurred
COUT8Comparator Output bit
  • 0 (When CPOL is 0) VIN+ VTH-
  • 1 (When CPOL is 0) VIN+ greater than VTH+ / (When CPOL is 1) VIN+ VTH+ / (When CPOL is 1) VIN+ less than VTH-
EVPOL7:6Trigger/Event Polarity Select bits
  • 0 Trigger/Event generation is disabled
  • 1 (When CPOL is 0) Trigger/Event generated only on low-to-high transition of the polarity-selected comparator output / (When CPOL is 1) Trigger/Event generated only on high-to-low transition of the polarity-selected comparator output
  • 2 (When CPOL is 0) Trigger/Event generated only on high-to-low transition of the polarity-selected comparator output / (When CPOL is 1) Trigger/Event generated only on low-to-high transition of the polarity-selected comparator output
  • 3 Trigger/Event generated on any change of the comparator output
CREF4Op amp/Comparator Reference Select bit
  • 0 VIN+ input connects to CxIN1+ pin
  • 1 VIN+ input connects to internal CDAC2 output voltage
CCH1:0Comparator Channel Select bits
  • 0 CxIN1-
  • 1 CxIN2-
  • 2 CxIN3-
  • 3 CxIN4-
OPAON31Opamp Enable Bit
  • 0 Op amp disabled and pin is released to other functions
  • 1 Op amp enabled and connected to pin