AN201
Rev 1.5 | 43/91
www.cmostek.com
Table 47
. CMCON0 Bit Function Description
4.1.13 PR0 (Addr:0x1A)
Table 48. PRO Register
Bit
Name
Function
7
C2OUT
Comparator 2 output bit
When C2INV = 0,
1: C2VIN+
>
C2VIN-
0: C2V IN+
<
C2VIN-
When C2INV=1,
1: C2VIN+
<
C2VIN-
0: C2V IN+
>
C2VIN-
6
C1OUT
Comparator 1 output bit.
When C1INV = 0,
1: C1VIN+
>
C1VIN-
0: C1V IN+
<
C1VIN-
When C1INV = 1,
1: C1VIN+
<
C1VIN-
0: C1V IN+
>
C1VIN-
5
C2INV
Comparator 2 reverse output control bit.
0 = no reverse
1 = reverse
4
C1INV
Comparator 1 reverse output control bit.
0 = no reverse
1 = reverse
3
CIS
Comparator input switching bit
When CM[2:0] = 010,
1 = C1IN+ connects to C1VIN+, C2IN+ connects to C2VIN+
0 = C1IN- connects to C1VIN-
,
C2IN- connects to C2VIN-
When CM[2:0] = 001,
1 = C1IN+ connects to C1VIN+
0 = C1IN- connects to C1VIN-
2:0
CM<2:0>
Comparator mode selection bits
000 = The comparator is turned off, and the CxIN pin is the analog IO pin.
001 = 3 inputs multiplexed to 2 comparators
010 = 4 inputs multiplexed to 2 comparators
011 = 2 common reference comparators
100 = 2 independent comparators
101 = 1 independent comparator
110 = 2 common reference comparators with outputs
111 = the comparator is turned off, and the CxIN pin is the digital IO pin.