- Components/
- In Stock/
- Microchip Technology Inc./
PIC16F88

PIC16F88 | |
---|---|
Manufacturer Part Number | PIC16F88 |
Manufacturer | Microchip Technology Inc. |
PIC16F88 datasheet |
|
PrevNext
13.2
Comparator Operation
A single comparator is shown in Figure 13-2, along with
the relationship between the analog input levels and
the digital output. When the analog input at V
than the analog input V
-, the output of the comparator
IN
is a digital low level. When the analog input at V
greater than the analog input V
-, the output of the
IN
comparator is a digital high level. The shaded areas of
the output of the comparator in Figure 13-2 represent
the uncertainty due to input offsets and response time.
13.3
Comparator Reference
An external or internal reference signal may be used
depending on the comparator operating mode. The
analog signal present at V
- is compared to the signal
IN
at V
+ and the digital output of the comparator is
IN
adjusted accordingly (Figure 13-2).
FIGURE 13-2:
SINGLE COMPARATOR
V
+
+
IN
–
V
-
IN
V
-
IN
V
IN–
V
+
IN
V
IN+
Output
Output
13.3.1
EXTERNAL REFERENCE SIGNAL
When external voltage references are used, the
comparator module can be configured 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
and V
and can be applied to either
SS
DD
pin of the comparator(s).
2005 Microchip Technology Inc.
13.3.2
INTERNAL REFERENCE SIGNAL
The comparator module also allows the selection of an
internally
generated
comparators. Section 14.0 “Comparator Voltage
+ is less
IN
Reference Module” contains a detailed description of
the Comparator Voltage Reference module that
+ is
IN
provides this signal. The internal reference signal is
used when comparators are in mode CM<2:0> = 010
(Figure 13-1). In this mode, the internal voltage
reference is applied to the V
comparators.
13.4
Comparator Response Time
Response time is the minimum time, after selecting a
new reference voltage or input source, before the
comparator output has a valid level. If the internal
reference is changed, the maximum delay of the inter-
nal voltage reference must be considered when using
the comparator outputs. Otherwise, the maximum
delay of the comparators should be used (Section 18.0
“Electrical Characteristics”).
13.5
Comparator Outputs
Output
The comparator outputs are read through the CMCON
register. These bits are read-only. The comparator
outputs may also be directly output to the RA3 and RA4
I/O pins. When enabled, multiplexors in the output path
of the RA3 and RA4 pins will switch and the output of
each pin will be the unsynchronized output of the com-
parator. The uncertainty of each of the comparators is
related to the input offset voltage and the response time
given in the specifications. Figure 13-3 shows the
comparator output block diagram.
The TRISA bits will still function as an output enable/
disable for the RA3 and RA4 pins while in this mode.
The polarity of the comparator outputs can be changed
using the C2INV and C1INV bits (CMCON<5:4>).
Note 1: When reading the Port register, all pins
configured as analog inputs will read as
‘0’. Pins configured as digital inputs will
convert an analog input, according to the
Schmitt Trigger input specification.
2: Analog levels, on any pin defined as a
digital input, may cause the input buffer to
consume more current than is specified.
PIC16F87/88
voltage
reference
for
the
+ pin of both
IN
DS30487C-page 123
Related parts for PIC16F88 | ||||
---|---|---|---|---|
Part Number | Description | Manufacturer | Datasheet | Request |
![]() |
Microchip - | Microchip Technology Inc. | ||
![]() |
Microchip Technology Inc. | |||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. | |||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. | |||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. | |||
![]() |
Microchip Technology Inc. |
| ||
![]() |
Microchip Technology Inc. | |||
![]() |
Microchip Technology Inc. |