English
Language : 

PIC32MX440F256H-80I Datasheet, PDF (540/646 Pages) Microchip Technology – 64/100-Pin General Purpose and USB 32-Bit Flash Microcontrollers
PIC32MX3XX/4XX
24.1 Comparator Control Registers
Note:
Each PIC32MX device variant may have
one or more Comparator modules. An ‘x’
used in the names of pins, control/status
bits and registers denotes the particular
module. Refer to the specific device data
sheets for more details.
Table 24-1 provides brief summaries of all comparator
related registers. Corresponding registers appear after
the summary, followed by a detailed description of each
register.
A Comparator module consists of the following Special
Function Registers (SFRs):
• CMxCON: Comparator Control Register
• CMxCONCLR, CMxCONSET, CMxCONINV:
Atomic Bit Manipulation Registers for CMxCON
• CMSTAT: Comparator Status Registers
• CMSTATCLR, CMSTATSET, CMSTATINV: Atomic
Bit Manipulation Registers for CMSTAT
The comparator module also has the following interrupt
control registers:
• IFS1: Interrupt Flag Status Register
• IEC: Interrupt Enable Control Register
• IPC7: Interrupt Priority Control Register
TABLE 24-1: COMPARATOR SFRS SUMMARY
Virtual
Address
Name
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
31/23/15/7 30/22/14/6 29/21/13/5 28/20/12/4 27/19/11/3 26/18/10/2 25/17/9/1 24/16/8/0
BF80_A000 CM1CON
31:24
23:16
15:8
7:0
BF80_A004 CM1CONCLR 31:0
BF80_A008 CM1CONSET 31:0
BF80_A00C CM1CONINV 31:0
BF80_A010 CM2CON
31:24
23:16
15:8
7:0
BF80_A014 CM2CONCLR 31:0
BF90_A018 CM2CONSET 31:0
BF80_A01C CM2CONINV 31:0
BF80_A060 CMSTAT
31:24
23:16
15:8
7:0
BF80_A064 CMSTATCLR 31:0
BF80_A068 CMSTATSET 31:0
BF80_A06C CMSTATINV 31:0
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
ON
COE
CPOL
—
—
—
—
COUT
EVPOL<1:0>
—
CREF
—
—
CCH<1:0>
Write clears selected bits in CM1CON, read yields undefined value
Write sets selected bits in CM1CON, read yields undefined value
Write inverts selected bits in CM1CON, read yields undefined value
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
ON
COE
CPOL
—
—
—
—
COUT
EVPOL<1:0>
—
CREF
—
—
CCH<1:0>
Write clears selected bits in CM2CON, read yields undefined value
Write sets selected bits in CM2CON, read yields undefined value
Write inverts selected bits in CM2CON, read yields undefined value
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
FRZ
SIDL
—
—
—
—
—
—
—
—
—
—
—
C2OUT C1OUT
Write clears selected bits in CMSTAT, read yields undefined value
Write sets selected bits in CMSTAT, read yields undefined value
Write inverts selected bits in CMSTAT, read yields undefined value
DS61143E-page 538
Preliminary
© 2008 Microchip Technology Inc.