PIC16F676 Microchip Technology Inc., PIC16F676 Datasheet - Page 39
PIC16F676
Manufacturer Part Number
PIC16F676
Description
14-pin, Flash-based 8-bit Cmos Microcontroller
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16F676.pdf
(130 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F676
Manufacturer:
台湾明智类比
Quantity:
20 000
Part Number:
PIC16F676-1/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC16F676-E/SL
Manufacturer:
MICROCHIP
Quantity:
2 500
Company:
Part Number:
PIC16F676-E/SL
Manufacturer:
Microchip Technology
Quantity:
135
Company:
Part Number:
PIC16F676-E/ST
Manufacturer:
Microchip Technology
Quantity:
135
Company:
Part Number:
PIC16F676-E/ST
Manufacturer:
EtronTech
Quantity:
101
Part Number:
PIC16F676-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F676-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F676-I/ST
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
6.0
The PIC16F630/676 devices have one analog compar-
ator. The inputs to the comparator are multiplexed with
the RA0 and RA1 pins. There is an on-chip Comparator
REGISTER 6-1:
© 2007 Microchip Technology Inc.
COMPARATOR MODULE
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
CMCON — COMPARATOR CONTROL REGISTER (ADDRESS: 19h)
bit 7
Unimplemented: Read as ‘0’
COUT: Comparator Output bit
When CINV = 0:
1 = V
0 = V
When CINV = 1:
1 = V
0 = V
Unimplemented: Read as ‘0’
CINV: Comparator Output Inversion bit
1 = Output inverted
0 = Output not inverted
CIS: Comparator Input Switch bit
When CM2:CM0 = 110 or 101:
1 = V
0 = V
CM2:CM0: Comparator Mode bits
Figure 6-2 shows the Comparator modes and CM2:CM0 bit settings
Legend:
R = Readable bit
- n = Value at POR
U-0
—
IN
IN
IN
IN
IN
IN
+ > V
+ < V
+ < V
+ > V
- connects to CIN+
- connects to CIN-
IN
IN
IN
IN
COUT
-
-
-
-
R-0
U-0
—
W = Writable bit
’1’ = Bit is set
R/W-0
CINV
Voltage Reference that can also be applied to an input
of the comparator. In addition, RA2 can be configured
as the comparator output. The Comparator Control
Register (CMCON), shown in Register 6-1, contains
the bits to control the comparator.
R/W-0
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
CIS
PIC16F630/676
R/W-0
CM2
x = Bit is unknown
R/W-0
CM1
DS40039E-page 37
R/W-0
CM0
bit 0