45.2 Comparator Control

Each comparator has two control registers: CMxCON0 and CMxCON1.

The CMxCON0 register contains Control and Status bits for the following:

  • Enable
  • Output
  • Output Polarity
  • Hysteresis Enable
  • Timer1 Output Synchronization

The CMxCON1 register contains Control bits for the following:

  • Interrupt on Positive/Negative Edge Enables

The CMxPCH and CMxNCH registers are used to select the positive and negative input channels, respectively.