English
Language : 

PIC18F47J53 Datasheet, PDF (407/586 Pages) Microchip Technology – 28/44-Pin, High-Performance USB Microcontrollers with nanoWatt XLP Technology
PIC18F47J53 FAMILY
24.0 COMPARATOR MODULE
The analog comparator module contains three compar-
ators that can be independently configured in a variety of
ways. The inputs can be selected from the analog inputs
and two internal voltage references. The digital outputs
are available at the pin level and can also be read
through the control register. Multiple output and interrupt
event generation is also available. Figure 24-1 provides
a generic single comparator from the module.
Key features of the module are:
• Independent comparator control
• Programmable input configuration
• Output to both pin and register levels
• Programmable output polarity
• Independent interrupt generation for each
comparator with configurable interrupt-on-change
24.1 Registers
The CMxCON registers (Register 24-1) select the input
and output configuration for each comparator, as well
as the settings for interrupt generation.
The CMSTAT register (Register 24-2) provides the out-
put results of the comparators. The bits in this register
are read-only.
FIGURE 24-1:
COMPARATOR SIMPLIFIED BLOCK DIAGRAM
CCH<1:0>
CxINB
0
VIRV
3
CxINC
1
CxIND
2
CREF
CxINA
0
CVREF
1
VIN-
VIN+
Cx
CON
Interrupt
Logic
EVPOL<1:0>
Polarity
Logic
COE
CPOL
COUTx
(CMSTAT<2:0>)
CMxIF
CxOUT
 2010 Microchip Technology Inc.
Preliminary
DS39964B-page 407