![Microchip Technology PIC12F1501 Скачать руководство пользователя страница 148](http://html1.mh-extra.com/html/microchip-technology/pic12f1501/pic12f1501_manual_1785833148.webp)
2011-2015 Microchip Technology Inc.
DS40001609E-page 149
PIC16(L)F1508/9
17.8
Register Definitions: Comparator Control
REGISTER 17-1:
CMxCON0: COMPARATOR Cx CONTROL REGISTER 0
R/W-0/0
R-0/0
R/W-0/0
R/W-0/0
U-0
R/W-1/1
R/W-0/0
R/W-0/0
CxON
CxOUT
CxOE
CxPOL
—
CxSP
CxHYS
CxSYNC
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = Bit is unchanged
x = Bit is unknown
-n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set
‘0’ = Bit is cleared
bit 7
CxON:
Comparator Enable bit
1
= Comparator is enabled
0
= Comparator is disabled and consumes no active power
bit 6
CxOUT:
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
bit 5
CxOE:
Comparator Output Enable bit
1
= CxOUT is present on the CxOUT pin. Requires that the associated TRIS bit be cleared to actually
drive the pin. Not affected by CxON.
0
= CxOUT is internal only
bit 4
CxPOL:
Comparator Output Polarity Select bit
1
= Comparator output is inverted
0
= Comparator output is not inverted
bit 3
Unimplemented:
Read as ‘
0
’
bit 2
CxSP:
Comparator Speed/Power Select bit
1
= Comparator mode in normal power, higher speed
0
= Comparator mode in low-power, low-speed
bit 1
CxHYS:
Comparator Hysteresis Enable bit
1
= Comparator hysteresis enabled
0
= Comparator hysteresis disabled
bit 0
CxSYNC:
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
Содержание PIC12F1501
Страница 307: ...PIC16 L F1508 9 DS40001609E page 308 2011 2015 Microchip Technology Inc NOTES...
Страница 392: ...2011 2015 Microchip Technology Inc DS40001609E page 393 PIC16 L F1508 9 1RWH 6 7 7 588 8 7...
Страница 399: ...PIC16 L F1508 9 DS40001609E page 400 2011 2015 Microchip Technology Inc NOTES...