PIC16F627-04/SO Microchip Technology Inc., PIC16F627-04/SO Datasheet - Page 56

no-image

PIC16F627-04/SO

Manufacturer Part Number
PIC16F627-04/SO
Description
18 PIN, 1.75 KB FLASH, 224 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F627-04/SO

Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
128 Bytes
Input Output
16
Interface
SCI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin SOIC
Programmable Memory
1.75K Bytes
Ram Size
224 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F627-04/SO
Manufacturer:
MIC
Quantity:
933
Part Number:
PIC16F627-04/SO
Manufacturer:
MICROCHI
Quantity:
20 000
PIC16F62X
9.1
There are eight modes of operation for the
comparators. The CMCON register is used to select
the mode. Figure 9-1 shows the eight possible modes.
The TRISA register controls the data direction of the
comparator pins for each mode. If the Comparator
FIGURE 9-1:
DS40300C-page 54
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
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2
A = Analog Input, port reads zeros always.
D = Digital Input.
CIS (CMCON<3>) is the Comparator Input Switch.
Comparator Configuration
D
D
A
A
A
A
A
A
A
D
A
A
A
A
A
A
V
COMPARATOR I/O OPERATING MODES
SS
V
V
V
V
V
V
V
V
V
V
V
V
IN
IN
IN
IN
IN
IN
IN
IN
V
V
V
V
IN
IN
IN
IN
-
+
-
+
-
+
-
+
IN
IN
IN
IN
-
+
-
+
-
+
-
+
C1
C2
C1
C2
C1
C2
C1
C2
C2V
Off (Read as '0')
Off (Read as '0')
Off (Read as '0')
C1V
C2V
C1V
C2V
OUT
OUT
OUT
OUT
OUT
Preliminary
Comparators Off
CM2:CM0 = 111
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2
Four Inputs Multiplexed to Two Comparators
CM2:CM0 = 010
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2
Three Inputs Multiplexed to Two Comparators
CM2:CM0 = 001
This mode is disfunctional and has been corrected in the ‘A’
Revision Devices.
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2
RA0/AN0
RA3/AN3/CMP1
RA1/AN1
RA2/AN2/CMP2
RA4/T0CKI/C20
Two Common Reference Comparators with Outputs
CM2:CM0 = 110
mode is changed, the comparator output level may not
be valid for the specified mode change delay shown
in Table 17-1.
Note:
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
D
D
D
D
Open Drain
A
D
A
A
V
SS
CIS = 0
CIS = 1
CIS = 0
CIS = 1
CIS = 0
CIS = 1
V
V
V
V
IN
IN
IN
IN
V
V
V
V
-
+
-
+
IN
IN
IN
IN
 2003 Microchip Technology Inc.
-
+
-
+
C1
C2
V
V
V
V
V
V
V
V
C1
C2
IN
IN
IN
IN
IN
IN
IN
IN
-
+
-
+
-
+
-
+
+
+
C1
C2
C1
C2
Off (Read as '0')
Off (Read as '0')
From V
Module
C1V
C2V
OUT
OUT
REF
C1V
C2V
C1V
C2V
OUT
OUT
OUT
OUT

Related parts for PIC16F627-04/SO