PIC16F684-I/SLG Microchip, PIC16F684-I/SLG Datasheet - Page 59

no-image

PIC16F684-I/SLG

Manufacturer Part Number
PIC16F684-I/SLG
Description
pic, flash, Microcontrollers, Microprocessors, Semiconductors and Actives, ic, mcu
Manufacturer
Microchip
Datasheet
8.3
There are eight modes of operation for the compara-
tors. The CMCON0 register is used to select these
modes. Figure 8-3 shows the eight possible modes.
FIGURE 8-3:
 2004 Microchip Technology Inc.
Comparators Reset (POR Default Value)
CM<2:0> = 000
Two Independent Comparators
CM<2:0> = 100
Two Common Reference Comparators
CM<2:0> = 011
One Independent Comparator
CM<2:0> = 101
Legend: A = Analog Input, ports always read ‘0’
RA1/AN1
RA0/AN0
RC1/AN5
RC0/AN4
RA1/AN1
RA0/AN0
RC1/AN5
RC0/AN4
RA1/AN1
RA0/AN0
RC1/AN5
RC0/AN4
RA1/AN1
RA0/AN0
RC1/AN5
RC0/AN4
Comparator Configuration
D = Digital Input
A
A
A
A
A
A
A
A
A
D
A
A
D
D
A
A
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
COMPARATOR I/O OPERATING MODES
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
C1
C2
C1
C2
C1
C2
C1
C2
Off
Off
C1OUT
C2OUT
C1OUT
C2OUT
Off
C2OUT
(Read as ‘0’)
(Read as ‘0’)
(Read as ‘0’)
Preliminary
CIS (CMCON0<3>) is the Comparator Input Switch
RA2/C1OUT
RC4/C2OUT
Two Common Reference Comparators with Outputs
CM<2:0> = 110
Comparators Off (Lowest Power)
CM<2:0> = 111
Four Inputs Multiplexed to Two Comparators
CM<2:0> = 010
Three Inputs Multiplexed to Two Comparators
CM<2:0> = 001
RA1/AN1
RC1/AN5
RC0/AN4
If the Comparator mode is changed, the comparator
output level may not be valid for the specified mode
change delay shown in Section 15.0 “Electrical
Specifications”.
RA1/AN1
RA0/AN0
RC1/AN5
RC0/AN4
RA1/AN1
RA0/AN0
RC1/AN5
RC0/AN4
RA1/AN1
RA0/AN0
RC1/AN5
RC0/AN4
Note:
A
D
A
A
D
D
D
D
A
A
A
A
A
A
A
A
Comparator interrupts should be disabled
during a Comparator mode change.
Otherwise, a false interrupt may occur.
CIS = 0
CIS = 1
CIS = 0
CIS = 1
V
V
V
V
V
V
V
V
CIS = 0
CIS = 1
IN
IN
IN
IN
IN
IN
IN
IN
-
+
-
+
-
+
-
+
C1
C2
C1
C2
PIC16F684
V
V
V
V
V
V
V
V
IN
IN
IN
IN
IN
IN
IN
IN
-
+
-
+
-
+
-
+
From
C1OUT
C2OUT
Off
Off
C1
C2
C1
C2
DS41202C-page 57
CV
(Read as ‘0’)
(Read as ‘0’)
REF
C2OUT
C1OUT
C2OUT
C1OUT
Module

Related parts for PIC16F684-I/SLG