English
Language : 

C8051F85X86X Datasheet, PDF (126/290 Pages) Silicon Laboratories – Low-Cost 8-bit MCU Family with up to 8 kB of Flash
C8051F85x/86x
Register 17.4. CPT1CN: Comparator 1 Control
Bit
7
6
5
4
3
2
1
0
Name CPEN
CPOUT
CPRIF
CPFIF
CPHYP
CPHYN
Type
RW
R
RW
RW
RW
RW
Reset
0
0
0
0
0
0
0
0
SFR Address: 0xBF
Table 17.8. CPT1CN Register Bit Descriptions
Bit
Name
Function
7
CPEN Comparator 1 Enable Bit.
0: Comparator Disabled.
1: Comparator Enabled.
6
CPOUT Comparator 1 Output State Flag.
0: Voltage on CP1P < CP1N.
1: Voltage on CP1P > CP1N.
5
CPRIF Comparator 1 Rising-Edge Flag. Must be cleared by software.
0: No Comparator Rising Edge has occurred since this flag was last cleared.
1: Comparator Rising Edge has occurred.
4
CPFIF Comparator 1 Falling-Edge Flag. Must be cleared by software.
0: No Comparator Falling-Edge has occurred since this flag was last cleared.
1: Comparator Falling-Edge has occurred.
3:2
CPHYP Comparator 1 Positive Hysteresis Control Bits.
00: Positive Hysteresis Disabled.
01: Positive Hysteresis = 5 mV.
10: Positive Hysteresis = 10 mV.
11: Positive Hysteresis = 20 mV.
1:0
CPHYN Comparator 1 Negative Hysteresis Control Bits.
00: Negative Hysteresis Disabled.
01: Negative Hysteresis = 5 mV.
10: Negative Hysteresis = 10 mV.
11: Negative Hysteresis = 20 mV.
130
Preliminary Rev 0.6