PIC16C662-04E/P Microchip Technology, PIC16C662-04E/P Datasheet - Page 48
![IC MCU OTP 4KX14 COMP 40DIP](/photos/6/61/66192/150-40-dip_sml.jpg)
PIC16C662-04E/P
Manufacturer Part Number
PIC16C662-04E/P
Description
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16C662-04E/P
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, LED, POR, WDT
Number Of I /o
33
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
176 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C662-04E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC16C662-04E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
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