PIC16F636-I/P Microchip Technology Inc., PIC16F636-I/P Datasheet - Page 63

no-image

PIC16F636-I/P

Manufacturer Part Number
PIC16F636-I/P
Description
14 PIN, 3.5 KB FLASH, 128 RAM, 12 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F636-I/P

Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
12
Memory Type
Flash
Number Of Bits
8
Package Type
14-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
1-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
7.0
The
comparators. The inputs to the comparators are
multiplexed with I/O port pins RA0, RA1, RC0 and RC1,
while the outputs are multiplexed to pins RA2 and RC4.
An on-chip Comparator Voltage Reference (CV
can also be applied to the inputs of the comparators.
REGISTER 7-1:
© 2005 Microchip Technology Inc.
comparator
COMPARATOR MODULE
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
module
CMCON0 – COMPARATOR CONTROL 0 REGISTER (ADDRESS: 19h)
C2OUT: Comparator 2 Output bit
When C2INV = 0:
1 = C2 V
0 = C2 V
When C2INV = 1:
1 = C2 V
0 = C2 V
C1OUT: Comparator 1 Output bit
When C1INV = 0:
1 = C1 V
0 = C1 V
When C1INV = 1:
1 = C1 V
0 = C1 V
C2INV: Comparator 2 Output Inversion bit
1 = C2 output inverted
0 = C2 output not inverted
C1INV: Comparator 1 Output Inversion bit
1 = C1 output inverted
0 = C1 output not inverted
CIS: Comparator Input Switch bit
When CM<2:0> = 010:
1 = C1 V
0 = C1 V
When CM<2:0> = 001:
1 = C1 V
0 = C1 V
CM<2:0>: Comparator Mode bits
Figure 7-4 shows the Comparator modes and CM<2:0> bit settings.
Legend:
R = Readable bit
- n = Value at POR
bit 7
C2OUT
Note 1: PIC16F636/639 only. Reads as ‘0’ for PIC12F635.
R-0
C2 V
C2 V
contains
2: PIC12F635 bit names are COUT and CINV.
(1)
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
+ > C2 V
+ < C2 V
+ < C2 V
+ > C2 V
+ > C1 V
+ < C1 V
+ < C1 V
+ > C1 V
- connects to RA0
- connects to RC0
- connects to RA1
- connects to RC1
- connects to RA0
- connects to RA1
C1OUT
R-0
two
IN
IN
IN
IN
IN
IN
IN
IN
(2)
-
-
-
-
-
-
-
-
analog
C2INV
R/W-0
PIC12F635/PIC16F636/639
REF
Preliminary
W = Writable bit
‘1’ = Bit is set
)
(1)
(1)
(2)
C1INV
R/W-0
The CMCON0 register (Register 7-1) controls the
comparator input and output multiplexers. A block
diagram of the various comparator configurations is
shown in Figure 7-4.
(1)
(2)
Note:
(2)
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
CIS
The PIC12F635 has only 1 comparator.
The comparator on the PIC12F635
behaves
PIC16F636/639.
R/W-0
CM2
like
comparator
x = Bit is unknown
R/W-0
CM1
DS41232B-page 61
2
R/W-0
CM0
of
bit 0
the

Related parts for PIC16F636-I/P