|
PIC16LF18854 Datasheet, PDF (279/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture | |||
|
◁ |
PIC16(L)F18856/76
18.12 Register Definitions: Comparator Control
REGISTER 18-1: CMxCON0: COMPARATOR Cx CONTROL REGISTER 0
R/W-0/0
R-0/0
U-0
R/W-0/0
U-0
U-0
ON
OUT
â
POL
â
â
bit 7
R/W-0/0
HYS
R/W-0/0
SYNC
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
bit 4
bit 3-2
bit 1
bit 0
ON: Comparator Enable bit
1 = Comparator is enabled
0 = Comparator is disabled and consumes no active power
OUT: Comparator Output bit
If CxPOL = 1 (inverted polarity):
1 = CxVP < CxVN
0 = CxVP > CxVN
If CxPOL = 0 (non-inverted polarity):
1 = CxVP > CxVN
0 = CxVP < CxVN
Unimplemented: Read as â0â
POL: Comparator Output Polarity Select bit
1 = Comparator output is inverted
0 = Comparator output is not inverted
Unimplemented: Read as â0â
HYS: Comparator Hysteresis Enable bit
1 = Comparator hysteresis enabled
0 = Comparator hysteresis disabled
SYNC: Comparator Output Synchronous Mode bit
1 = Comparator output to Timer1 and I/O pin is synchronous to changes on Timer1 clock source.
Output updated on the falling edge of Timer1 clock source.
0 = Comparator output to Timer1 and I/O pin is asynchronous
ï£ 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 279
|
▷ |