PIC16F628-20/P Microchip Technology, PIC16F628-20/P Datasheet - Page 56
![IC MCU FLASH 2KX14 COMP 18DIP](/photos/6/76/67657/18-dip_300mil__sml.jpg)
PIC16F628-20/P
Manufacturer Part Number
PIC16F628-20/P
Description
IC MCU FLASH 2KX14 COMP 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheet
1.PIC16F627-04P.pdf
(170 pages)
Specifications of PIC16F628-20/P
Program Memory Type
FLASH
Program Memory Size
3.5KB (2K x 14)
Package / Case
18-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Eeprom Size
128 x 8
Ram Size
224 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
224 B
Interface Type
SCI/USART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
16
Number Of Timers
3
Operating Supply Voltage
3 V to 5.5 V
Maximum Operating Temperature
+ 70 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163014, DM164120-4
Minimum Operating Temperature
0 C
Data Rom Size
128 B
Height
3.3 mm
Length
22.86 mm
Supply Voltage (max)
5.5 V
Supply Voltage (min)
3 V
Width
6.35 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA16XP183 - ADAPTER ICE 18DIP/SOIC/SSOPAC164010 - MODULE SKT PROMATEII DIP/SOIC
Data Converters
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
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