PIC16C621A Microchip Technology Inc., PIC16C621A Datasheet - Page 40
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16C621A
Manufacturer Part Number
PIC16C621A
Description
Eprom-based 8-bit Cmos Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16C621A.pdf
(128 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C621A-04/P
Manufacturer:
MICROCHI
Quantity:
20 000
Company:
Part Number:
PIC16C621A-04/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C621A-04/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C621A-04E/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16C621A-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C621A-04I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC16C621A-20/SO
Manufacturer:
NICHICON
Quantity:
12 000
PIC16C62X
7.1
There are eight modes of operation for the
comparators. The CMCON register is used to select
the mode. Figure 7-1 shows the eight possible modes.
The TRISA register controls the data direction of the
comparator pins for each mode. If the Comparator
FIGURE 7-1:
DS30235J-page 38
A = Analog Input, Port Reads Zeros Always
D = Digital Input
CIS = CMCON<3>, Comparator Input Switch
RA3/AN3
RA1/AN1
RA2/AN2
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA0/AN0
RA3/AN3
RA2/AN2
Comparators Reset
Two Independent Comparators
Two Common Reference Comparators
One Independent Comparator
RA0/AN0
RA1/AN1
Comparator Configuration
A
A
A
A
D
D
A
A
A
A
A
D
A
A
A
A
COMPARATOR I/O OPERATING MODES
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
C2
C2
C1
C2
C1
C1
C1
C2
CM<2:0> = 100
CM<2:0> = 011
CM<2:0> = 000
CM<2:0> = 101
C1OUT
C2OUT
C1OUT
C2OUT
(Read as '0')
(Read as '0')
(Read as '0')
C2OUT
Off
Off
Off
RA3/AN3
RA2/AN2
Four Inputs Multiplexed to
Two Comparators
Two Common Reference Comparators with Outputs
Three Inputs Multiplexed to
Two Comparators
RA0/AN0
RA1/AN1
Comparators Off
RA2/AN2
RA2/AN2
mode is changed, the comparator output level may not
be valid for the specified mode change delay shown
in Table 12-2.
RA3/AN3
RA1/AN1
RA3/AN3
RA1/AN1
RA0/AN0
RA2/AN2
RA0/AN0
RA0/AN0
RA3/AN3
RA1/AN1
Note:
RA4 Open Drain
D
D
D
D
Comparator interrupts should be disabled
during a Comparator mode change other-
wise a false interrupt may occur.
A
A
A
A
A
A
A
A
A
D
A
A
V
V
V
V
CIS=0
CIS=1
CIS=0
CIS=1
CIS=0
CIS=1
IN
IN
IN
IN
V
V
V
V
V
V
V
V
-
+
-
+
IN
IN
IN
IN
IN
IN
IN
IN
-
+
-
+
-
+
-
+
-
+
-
+
2003 Microchip Technology Inc.
-
+
-
+
-
+
-
+
V
V
V
V
C1
C2
IN
IN
IN
IN
C2
C1
C2
-
+
C1
-
+
-
+
-
+
From V
C1
C2
CM<2:0> = 001
CM<2:0> = 010
CM<2:0> = 110
CM<2:0> = 111
(Read as '0')
(Read as '0')
REF
C2OUT
C1OUT
C2OUT
C1OUT
Module
Off
Off
C2OUT
C1OUT