English
Language : 

C8051F85X86X Datasheet, PDF (123/290 Pages) Silicon Laboratories – Low-Cost 8-bit MCU Family with up to 8 kB of Flash
17.3. Comparator Control Registers
C8051F85x/86x
Register 17.1. CPT0CN: Comparator 0 Control
Bit
7
Name CPEN
Type
RW
Reset
0
SFR Address: 0x9B
Bit
Name
7
CPEN
6
CPOUT
5
CPRIF
4
CPFIF
3:2
CPHYP
1:0
CPHYN
6
CPOUT
R
0
5
CPRIF
RW
0
4
CPFIF
RW
0
3
2
CPHYP
RW
0
0
1
0
CPHYN
RW
0
0
Table 17.5. CPT0CN Register Bit Descriptions
Comparator 0 Enable Bit.
0: Comparator Disabled.
1: Comparator Enabled.
Comparator 0 Output State Flag.
0: Voltage on CP0P < CP0N.
1: Voltage on CP0P > CP0N.
Function
Comparator 0 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.
Comparator 0 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.
Comparator 0 Positive Hysteresis Control Bits.
00: Positive Hysteresis Disabled.
01: Positive Hysteresis = 5 mV.
10: Positive Hysteresis = 10 mV.
11: Positive Hysteresis = 20 mV.
Comparator 0 Negative Hysteresis Control Bits.
00: Negative Hysteresis Disabled.
01: Negative Hysteresis = 5 mV.
10: Negative Hysteresis = 10 mV.
11: Negative Hysteresis = 20 mV.
Preliminary Rev 0.6
127