English
Language : 

PIC16F627A_05 Datasheet, PDF (66/180 Pages) Microchip Technology – Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F627A/628A/648A
10.5 Comparator Outputs
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 the CM<2:0> = 110 or 001, multiplexors
in the output path of the RA3 and RA4/T0CK1/CMP2
pins will switch and the output of each pin will be the
unsynchronized output of the comparator. The
uncertainty of each of the comparators is related to the
input offset voltage and the response time given in the
specifications. Figure 10-3 shows the comparator output
block diagram.
The TRISA bits will still function as an output enable/
disable for the RA3/AN3/CMP1 and RA4/T0CK1/
CMP2 pins while in this mode.
Note 1: When reading the PORT register, all pins
configured as analog inputs will read as a
‘0’. Pins configured as digital inputs will
convert an analog input, according to the
Schmitt Trigger input specification.
2: Analog levels on any pin that is defined as
a digital input may cause the input buffer
to consume more current than is
specified.
FIGURE 10-3:
MODIFIED COMPARATOR OUTPUT BLOCK DIAGRAM
CnINV
To RA3/AN3/CMP1 or
RA4/T0CK1/CMP2 pin
To Data Bus
CMCON<7:6>
RD CMCON
Q
D
EN
Set CMIF bit
From other Comparator
Q
D
EN
CL
Reset
CnVOUT
Q3
Q1
DS40044D-page 64
© 2005 Microchip Technology Inc.