English
Language : 

41594B Datasheet, PDF (156/372 Pages) Microchip Technology – 8-Bit Flash Microcontroller with nanoWatt XLP Technology
PIC12LF1840T48A
REGISTER 19-2: CM1CON1: COMPARATOR C1 CONTROL REGISTER 1
R/W-0/0
R/W-0/0
R/W-0/0
R/W-0/0
U-0
U-0
U-0
C1INTP
C1INTN
C1PCH<1:0>
—
—
—
bit 7
R/W-0/0
C1NCH
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7
bit 6
bit 5-4
bit 3-1
bit 0
C1INTP: Comparator Interrupt on Positive Going Edge Enable bits
1 = The C1IF interrupt flag will be set upon a positive going edge of the C1OUT bit
0 = No interrupt flag will be set on a positive going edge of the C1OUT bit
C1INTN: Comparator Interrupt on Negative Going Edge Enable bits
1 = The C1IF interrupt flag will be set upon a negative going edge of the C1OUT bit
0 = No interrupt flag will be set on a negative going edge of the C1OUT bit
C1PCH<1:0>: Comparator Positive Input Channel Select bits
00 = C1VP connects to C1IN+ pin
01 = C1VP connects to DAC Voltage Reference
10 = C1VP connects to FVR Voltage Reference
Unimplemented: Read as ‘0’
C1NCH: Comparator Negative Input Channel Select bit
0 = C1VN connects to C1IN0- pin
1 = C1VN connects to C1IN1- pin
REGISTER 19-3: CMOUT: COMPARATOR OUTPUT REGISTER
U-0
—
bit 7
U-0
U-0
U-0
U-0
U-0
—
—
—
—
—
U-0
R-0/0
—
MC1OUT
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-1
bit 0
Unimplemented: Read as ‘0’
MC1OUT: Mirror Copy of C1OUT bit
TABLE 19-2: SUMMARY OF REGISTERS ASSOCIATED WITH COMPARATOR MODULE
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Register
on Page
ANSELA
—
—
—
ANSA4
—
ANSA2 ANSA1 ANSA0
114
CM1CON0
C1ON
C1OUT
C1OE
C1POL
—
C1SP
C1HYS C1SYNC
155
CM1CON1
C1INTP
C1INTN C1PCH1 C1PCH0
—
—
—
C1NCH
156
CMOUT
—
—
—
—
—
—
—
MC1OUT
156
INTCON
GIE
PEIE
TMR0IE
INTE
IOCIE TMR0IF
INTF
IOCIF
83
PIE2
OSFIE
—
C1IE
EEIE
BCL1IE
—
—
—
85
PIR2
OSFIF
—
C1IF
EEIF
BCL1IF
—
—
—
87
TRISA
—
—
TRISA5 TRISA4 TRISA3 TRISA2 TRISA1 TRISA0
113
Legend: — = unimplemented, read as ‘0’. Shaded cells are unused by the comparator module.
DS41594B-page 156
Preliminary
 2011-2012 Microchip Technology Inc.