Microchip Technology MA160014 Data Sheet

Page of 560
PIC18(L)F2X/4XK22
DS41412F-page 318
 2010-2012 Microchip Technology Inc.
REGISTER 18-2:
CM2CON1: COMPARATOR 1 AND 2 CONTROL REGISTER
R-0
R-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
MC1OUT
MC2OUT
C1RSEL
C2RSEL
C1HYS
C2HYS
C1SYNC
C2SYNC
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
MC1OUT: Mirror Copy of C1OUT bit
bit 6
MC2OUT: Mirror Copy of C2OUT bit
bit 5
C1RSEL: Comparator C1 Reference Select bit
1
 = FVR BUF1 routed to C1V
REF
 input
0
 = DAC routed to C1V
REF
 input
bit 4
C2RSEL: Comparator C2 Reference Select bit
1
 = FVR BUF1 routed to C2V
REF
 input
0
 = DAC routed to C2V
REF
 input
bit 3
C1HYS: Comparator C1 Hysteresis Enable bit 
1
 =
Comparator C1 hysteresis enabled
0
 =   Comparator C1 hysteresis disabled
bit 2
C2HYS: Comparator C2 Hysteresis Enable bit 
1
 =
Comparator C2 hysteresis enabled
0
 =   Comparator C2 hysteresis disabled
bit 1
C1SYNC: C1 Output Synchronous Mode bit
1
 =
C1 output is synchronized to rising edge of TMR1 clock (T1CLK)
0
 =
C1 output is asynchronous
bit 0
C2SYNC: C2 Output Synchronous Mode bit
1
 =
C2 output is synchronized to rising edge of TMR1 clock (T1CLK)
0
 =
C2 output is asynchronous