PIC18F25J11-I/PT MICROCHIP [Microchip Technology], PIC18F25J11-I/PT Datasheet - Page 355

no-image

PIC18F25J11-I/PT

Manufacturer Part Number
PIC18F25J11-I/PT
Description
28/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
21.0
The analog comparator module contains two compara-
tors 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 21-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
FIGURE 21-1:
© 2009 Microchip Technology Inc.
comparator with configurable interrupt-on-change
CCH<1:0>
CxINB
CV
CxINA
V
IRV
COMPARATOR MODULE
CREF
REF
0
1
0
3
COMPARATOR SIMPLIFIED BLOCK DIAGRAM
V
V
IN
IN
-
+
CON
Cx
PIC18F46J11 FAMILY
21.1
The CMxCON registers (Register 21-1) select the input
and output configuration for each comparator, as well
as the settings for interrupt generation.
The CMSTAT register (Register 21-2) provides the out-
put results of the comparators. The bits in this register
are read-only.
EVPOL<4:3>
Interrupt
Polarity
Logic
CPOL
Logic
Registers
COE
DS39932C-page 355
CxOUT
CMxIF
COUTx
(CMSTAT<1:0>)

Related parts for PIC18F25J11-I/PT