CMxCON0
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
EN | OUT | POL | HYS | SYNC | |||
AccessR/W | RO | R/W | R/W | R/W | |||
Reset0 | 0 | 0 | 0 | 0 |
Comparator Enable bit
Value | Description |
---|---|
1 |
Comparator is enabled |
0 |
Comparator is disabled and consumes no active power |
Comparator Output bit
Value | Name | Description |
---|---|---|
1 |
If POL = 0 (non-inverted
polarity): |
CxVP > CxVN |
0 |
If POL = 0 (non-inverted
polarity): |
CxVP < CxVN |
1 |
If POL = 1 (inverted
polarity): |
CxVP < CxVN |
0 |
If POL = 1 (inverted
polarity): |
CxVP > CxVN |
Comparator Output Polarity Select bit
Value | Description |
---|---|
1 |
Comparator output is inverted |
0 |
Comparator output is not inverted |
Comparator Hysteresis Enable bit
Value | Description |
---|---|
1 |
Comparator hysteresis enabled |
0 |
Comparator hysteresis disabled |
Comparator Output Synchronous Mode bit
Output updated on the falling edge of prescaled Timer1 clock.
Value | Description |
---|---|
1 |
Comparator output to Timer1 and I/O pin is synchronous to changes on the prescaled Timer1 clock. |
0 |
Comparator output to Timer1 and I/O pin is asynchronous |