PIC16F628A-I/P Microchip Technology Inc., PIC16F628A-I/P Datasheet - Page 55

no-image

PIC16F628A-I/P

Manufacturer Part Number
PIC16F628A-I/P
Description
18 PIN, 3.5 KB FLASH, 224 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F628A-I/P

Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
128 Bytes
Input Output
16
Interface
USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
3.5K 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:
PIC16F628A-I/P
Manufacturer:
BT
Quantity:
562
Part Number:
PIC16F628A-I/P
Manufacturer:
MICROCHI
Quantity:
850
Part Number:
PIC16F628A-I/P
Manufacturer:
MICROCHIP
Quantity:
20 000
Part Number:
PIC16F628A-I/P
0
9.0
The
comparators. The inputs to the comparators are
multiplexed with the RA0 through RA3 pins. The On-
chip Voltage Reference (Section 10.0) can also be an
input to the comparators.
REGISTER 9-1:
 2003 Microchip Technology Inc.
Comparator
COMPARATOR MODULE
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
module
CMCON REGISTER (ADDRESS: 01Fh)
bit 7
C2OUT: Comparator 2 Output
When C2INV = 0:
1 = C2 V
0 = C2 V
When C2INV = 1:
1 = C2 V
0 = C2 V
C1OUT: Comparator 1 Output
When C1INV = 0:
1 = C1 V
0 = C1 V
When C1INV = 1:
1 = C1 V
0 = C1 V
C2INV: Comparator 2 Output Inversion
1 = C2 Output inverted
0 = C2 Output not inverted
C1INV: Comparator 1 Output Inversion
1 = C1 Output inverted
0 = C1 Output not inverted
CIS: Comparator Input Switch
When CM2:CM0: = 001
Then:
1 = C1 V
0 = C1 V
When CM2:CM0 = 010
Then:
1 = C1 V
0 = C1 V
CM2:CM0: Comparator Mode
Figure 9-1 shows the Comparator modes and CM2:CM0 bit settings
Legend:
R = Readable bit
-n = Value at POR
C2OUT
C2 V
C2 V
R-0
contains
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
- connects to RA2
- connects to RA1
+ > C2 V
+ < C2 V
+ < C2 V
+ > C2 V
+ > C1 V
+ < C1 V
+ < C1 V
+ > C1 V
- connects to RA3
- connects to RA0
- connects to RA3
- connects to RA0
C1OUT
R-0
IN
IN
IN
IN
IN
IN
IN
IN
two
-
-
-
-
-
-
-
-
analog
C2INV
R/W-0
Preliminary
W = Writable bit
’1’ = Bit is set
C1INV
R/W-0
The CMCON register, shown in Register 9-1, controls
the comparator input and output multiplexers. A block
diagram of the comparator is shown in Figure 9-1.
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
R/W-0
CIS
R/W-0
CM2
PIC16F62X
x = Bit is unknown
R/W-0
CM1
DS40300C-page 53
R/W-0
CM0
bit 0

Related parts for PIC16F628A-I/P