IN鈥?/div>
V
IN+
Output
8.2
Comparator Operation
8.3.1
EXTERNAL REFERENCE SIGNAL
A single comparator is shown in Figure 8-3 along with
the relationship between the analog input levels and
the digital output. When the analog input at V
IN
+ is less
than the analog input V
IN
鈥? the output of the
comparator is a digital low level. When the analog input
at V
IN
+ is greater than the analog input V
IN
鈥? the output
of the comparator is a digital high level. The shaded
areas of the output of the comparator in Figure 8-3
represent the uncertainty due to input offsets and
response time.
When external voltage references are used, the
comparator module can be con铿乬ured to have the com-
parators operate from the same or different reference
sources. However, threshold detector applications may
require the same reference. The reference signal must
be between V
SS
and V
DD
, and can be applied to either
pin of the comparator(s).
8.3.2
INTERNAL REFERENCE SIGNAL
The comparator module also allows the selection of an
internally generated voltage reference for the
comparators. Section 13, Instruction Sets, contains a
detailed description of the Voltage Reference Module
that provides this signal. The internal reference signal
is used when the comparators are in mode
CM<2:0>=010 (Figure 8-2). In this mode, the internal
voltage reference is applied to the V
IN
+ pin of both com-
parators.
漏
1998 Microchip Technology Inc.
Preliminary
DS40182A-page 43