PIC16F688

Manufacturer Part NumberPIC16F688
ManufacturerMicrochip Technology Inc.
PIC16F688 datasheet
 


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Page 61
62
Page 62
63
Page 63
64
Page 64
65
Page 65
66
Page 66
67
Page 67
68
Page 68
69
Page 69
70
Page 70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
Page 63/202:

Comparator Output bit

Download datasheet (4Mb)Embed
PrevNext
REGISTER 7-1:
CMCON0: COMPARATOR CONFIGURATION REGISTER
R-0
R-0
R/W-0
C2OUT
C1OUT
C2INV
bit 7
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
‘1’ = Bit is set
bit 7
C2OUT: Comparator 2 Output bit
When C2INV = 0:
1 = C2 V
+ > C2 V
-
IN
IN
0 = C2 V
+ < C2 V
-
IN
IN
When C2INV = 1:
1 = C2 V
+ < C2 V
-
IN
IN
0 = C2 V
+ > C2 V
-
IN
IN
bit 6
C1OUT: Comparator 1 Output bit
When C1INV = 0:
1 = C1 V
+ > C1 V
-
IN
IN
0 = C1 V
+ < C1 V
-
IN
IN
When C1INV = 1:
1 = C1 V
+ < C1 V
-
IN
IN
0 = C1 V
+ > C1 V
-
IN
IN
bit 5
C2INV: Comparator 2 Output Inversion bit
1 = C2 output inverted
0 = C2 output not inverted
bit 4
C1INV: Comparator 1 Output Inversion bit
1 = C1 Output inverted
0 = C1 Output not inverted
bit 3
CIS: Comparator Input Switch bit
When CM<2:0> = 010:
1 = C1IN+ connects to C1 V
C2IN+ connects to C2 V
0 = C1IN- connects to C1 V
C2IN- connects to C2 V
When CM<2:0> = 001:
1 = C1IN+ connects to C1 V
0 = C1IN- connects to C1 V
bit 2-0
CM<2:0>: Comparator Mode bits (See Figure 7-5)
000 = Comparators off. CxIN pins are configured as analog
001 = Three inputs multiplexed to two comparators
010 = Four inputs multiplexed to two comparators
011 = Two common reference comparators
100 = Two independent comparators
101 = One independent comparator
110 = Two common reference comparators with outputs
111 = Comparators off. CxIN pins are configured as digital I/O
© 2007 Microchip Technology Inc.
R/W-0
R/W-0
R/W-0
C1INV
CIS
CM2
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
-
IN
-
IN
-
IN
-
IN
-
IN
-
IN
PIC16F688
R/W-0
R/W-0
CM1
CM0
bit 0
x = Bit is unknown
DS41203D-page 61