DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC18F44J10T-I/ML(2009) View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC18F44J10T-I/ML
(Rev.:2009)
Microchip
Microchip Technology 
PIC18F44J10T-I/ML Datasheet PDF : 368 Pages
First Prev 221 222 223 224 225 226 227 228 229 230 Next Last
PIC18F45J10 FAMILY
19.1 Comparator Configuration
There are eight modes of operation for the compara-
tors, shown in Figure 19-1. Bits, CM<2:0> of the
CMCON register, are used to select these modes. The
TRISA register controls the data direction of the com-
parator pins for each mode. If the Comparator mode is
changed, the comparator output level may not be valid
for the specified mode change delay shown in
Section 24.0 “Electrical Characteristics”.
Note:
Comparator interrupts should be disabled
during a Comparator mode change;
otherwise, a false interrupt may occur.
FIGURE 19-1:
COMPARATOR I/O OPERATING MODES
Comparators Reset
CM<2:0> = 000
Comparators Off (POR Default Value)
CM<2:0> = 111
RA0/AN0 A
RA3/AN3/ A
VREF+
VIN-
VIN+ C1
Off (Read as ‘0’)
RA0/AN0 D
RA3/AN3/ D
VREF+
VIN-
VIN+ C1
Off (Read as ‘0’)
RA1/AN1 A
RA2/AN2/ A
VREF-/CVREF
VIN-
VIN+ C2
Two Independent Comparators
CM<2:0> = 010
RA0/AN0 A
RA3/AN3/ A
VREF+
VIN-
VIN+ C1
RA1/AN1 A
RA2/AN2/ A
VREF-/CVREF
VIN-
VIN+ C2
Off (Read as ‘0’)
C1OUT
C2OUT
RA1/AN1 D
RA2/AN2/ D
VREF-/CVREF
VIN-
VIN+ C2
Off (Read as ‘0’)
Two Independent Comparators with Outputs
CM<2:0> = 011
RA0/AN0 A
RA3/AN3/ A
VREF+
RB5/KBI1/
T0CKI/C1OUT*
RA1/AN1 A
RA2/AN2/ A
VREF-/CVREF
VIN-
VIN+ C1
VIN-
VIN+ C2
C1OUT
C2OUT
RA5/AN4/SS1/C2OUT*
Two Common Reference Comparators
CM<2:0> = 100
RA0/AN0 A
RA3/AN3/ A
VREF+
VIN-
VIN+ C1
C1OUT
RA1/AN1 A
RA2/AN2/ D
VREF-/CVREF
VIN-
VIN+ C2
C2OUT
Two Common Reference Comparators with Outputs
CM<2:0> = 101
RA0/AN0 A
RA3/AN3/ A
VREF+
RB5/KBI1/
T0CKI/C1OUT*
VIN-
VIN+ C1
C1OUT
RA1/AN1 A
RA2/AN2/ D
VREF-/CVREF
VIN-
VIN+ C2
C2OUT
RA5/AN4/SS1/C2OUT*
One Independent Comparator with Output
CM<2:0> = 001
RA0/AN0 A
VIN-
RA3/AN3/ A
VREF+
VIN+ C1
RB5/KBI1/T0CKI/C1OUT*
C1OUT
RA1/AN1 D
RA2/AN2/ D
VREF-/CVREF/
VIN-
VIN+ C2
Off (Read as ‘0’)
Four Inputs Multiplexed to Two Comparators
CM<2:0> = 110
RA0/AN0 A
RA3/AN3/ A
VREF+
CIS = 0
CIS = 1
VIN-
VIN+ C1
RA1/AN1 A
RA2/AN2/ A
VREF-/CVREF/
CIS = 0
CIS = 1
VIN-
VIN+ C2
C1OUT
C2OUT
CVREF From VREF Module
A = Analog Input, port reads zeros always
D = Digital Input
CIS (CMCON<3>) is the Comparator Input Switch
* Setting the TRISA<5> bit will disable the comparator outputs by configuring the pins as inputs.
DS39682E-page 226
© 2009 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]