38.11.1 CMxCON0

Comparator Control Register 0
Name: CMxCON0
Offset: 0x080C

Bit 76543210 
 ENOUT POL HYS[1:0]SYNC 
Access R/WRR/WR/WR/WR/W 
Reset 000100 

Bit 7 – EN Comparator Enable

ValueDescription
1 Comparator is enabled
0 Comparator is disabled and consumes no active power

Bit 6 – OUT Comparator Output

ValueNameDescription
1 If POL = 0 (noninverted polarity):

CxVP > CxVN

0 If POL = 0 (noninverted polarity):

CxVP < CxVN

1 If POL = 1 (inverted polarity):

CxVP < CxVN

0 If POL = 1 (inverted polarity):

CxVP > CxVN

Bit 4 – POL Comparator Output Polarity Select

ValueDescription
1 Comparator output is inverted
0 Comparator output is not inverted

Bits 2:1 – HYS[1:0] Comparator Hysteresis Select

ValueDescription
11 Comparator hysteresis enabled (approximately 30 mV)
10 Comparator hysteresis enabled (approximately 20 mV)
01 Comparator hysteresis enabled (approximately 10 mV)
00 Comparator hysteresis disabled

Bit 0 – SYNC Comparator Output Synchronous Mode

ValueDescription
1 Comparator output to Timer1 and I/O pin is synchronous to changes on Timer1 clock source. Output updated on the falling edge of Timer1 clock source.
0 Comparator output to Timer1 and I/O pin is asynchronous