PIC16C662-10I/SP Microchip Technology, PIC16C662-10I/SP Datasheet - Page 48
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC16C662-10I/SP
Manufacturer Part Number
PIC16C662-10I/SP
Description
8-Bit EPROM Microcontrollers with Analog Comparators
Manufacturer
Microchip Technology
Datasheet
1.PIC16C662-10ISP.pdf
(136 pages)
- Current page: 48 of 136
- Download datasheet (635Kb)
PIC16C64X & PIC16C66X
7.1
There are eight modes of operation for the
comparators. The CMCON register is used to select
the mode. Figure 7-2 shows the eight possible modes.
The TRISA register controls the data direction of the
comparator pins for each mode. If the comparator
FIGURE 7-2:
DS30559A-page 48
Comparators Reset (POR Default Value)
CM2:CM0 = 000
Two Independent Comparators
CM2:CM0 = 100
Two Common Reference Comparators
CM2:CM0 = 011
One Independent Comparator
CM2:CM0 = 101
A = Analog Input, port reads zeros always.
D = Digital Input.
CIS (CMCON<3>) is the Comparator Input Switch.
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
Comparator Configuration
A
A
A
A
A
A
A
A
A
D
A
A
D
D
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
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
C1
C2
C1
C2
C1
C2
C1
C2
Off
Off
C1OUT
C2OUT
C1OUT
C2OUT
Off
C2OUT
(Read as '0')
(Read as '0')
(Read as '0')
Preliminary
Two Common Reference Comparators with Outputs
CM2:CM0 = 110
Comparators Off
CM2:CM0 = 111
Four Inputs Multiplexed to Two Comparators
CM2:CM0 = 010
Three Inputs Multiplexed to Two Comparators
CM2:CM0 = 001
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3
RA1/AN1
RA2/AN2
mode is changed, the comparator output level may not
be valid for the specified mode change delay shown
in Table 12-2.
Note:
RA4
A
D
A
A
D
D
D
D
A
A
A
A
A
A
A
A
Comparator interrupts should be disabled
during a comparator mode change other-
wise a false interrupt may occur.
Open Drain
V
V
V
V
V
V
V
V
CIS = 0
CIS = 1
CIS = 0
CIS = 1
CIS = 0
CIS = 1
IN
IN
IN
IN
IN
IN
IN
IN
-
+
-
+
-
+
-
+
C1
C2
C1
C2
1996 Microchip Technology Inc.
V
V
V
V
V
V
V
V
IN
IN
IN
IN
IN
IN
IN
IN
-
+
-
+
-
+
-
+
C1OUT
C2OUT
Off
Off
C1
C2
C1
C2
From V
(Read as '0')
(Read as '0')
REF
C1OUT
C2OUT
C1OUT
C2OUT
Module
Related parts for PIC16C662-10I/SP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C662-04/SO](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![PIC16C662-04/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-10/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662/JW](/photos/6/63/66338/150-40-cdip_tmb.jpg)
Part Number:
Description:
IC MCU EPROM 4KX14 COMP 40CDIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44TQFP
Manufacturer:
Microchip Technology
Datasheet: