PIC12F675ISN Microchip Technology, PIC12F675ISN Datasheet - Page 38

no-image

PIC12F675ISN

Manufacturer Part Number
PIC12F675ISN
Description
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
Manufacturer
Microchip Technology
Datasheet
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 PIC12F675ISN