12F629 Microchip Technology, Inc., 12F629 Datasheet - Page 38

no-image

12F629

Manufacturer Part Number
12F629
Description
8-pin Flash-based 8-bit CMOS Microcontrollers
Manufacturer
Microchip Technology, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
12F629-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
12F629-I/P003
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
12F629-I/P87G
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
12F629E/P
Manufacturer:
ON
Quantity:
34
PIC12F629/675
6.1
A single comparator is shown in Figure 6-1, along with
the relationship between the analog input levels and
the digital output. When the analog input at V
than the analog input V
is a digital low level. When the analog input at V
greater than the analog input V
comparator is a digital high level. The shaded areas of
the output of the comparator in Figure 6-1 represent
the uncertainty due to input offsets and response time.
The polarity of the comparator output can be inverted
by setting the CINV bit (CMCON<4>). Clearing CINV
results in a non-inverted output. A complete table
showing the output state versus input conditions and
the polarity bit is shown in Table 6-1.
DS41190C-page 36
Note:
Comparator Operation
To use CIN+ and CIN- pins as analog
inputs, the appropriate bits must be
programmed in the CMCON (19h) register.
IN
-, the output of the comparator
IN
-, the output of the
IN
+ is less
IN
+ is
TABLE 6-1:
FIGURE 6-1:
Output
V
V
Note:
IN
IN
Input Conditions
-
+
V
V
V
V
V
V
IN
IN
IN
IN
IN
IN
-
+
- > V
- < V
- > V
- < V
CINV bit (CMCON<4>) is clear.
IN
IN
IN
IN
+
+
+
+
OUTPUT STATE VS. INPUT
CONDITIONS
+
SINGLE COMPARATOR
 2003 Microchip Technology Inc.
CINV
0
0
1
1
Output
COUT
0
1
1
0

Related parts for 12F629