C8051F060_07 SILABS [Silicon Laboratories], C8051F060_07 Datasheet - Page 120

no-image

C8051F060_07

Manufacturer Part Number
C8051F060_07
Description
Mixed Signal ISP Flash MCU Family
Manufacturer
SILABS [Silicon Laboratories]
Datasheet
C8051F060/1/2/3/4/5/6/7
120
Bit7:
Bit6:
Bit5:
Bit4:
Bits3-2:
Bits1-0:
NOTE:
SFR Address: CPT0CN: 0x88; CPT1CN: 0x88; CPT2CN: 0x88
SFR Pages: CPT0CN: page 1; CPT1CN: page 2; CPT2CN: page 3
CPnEN
R/W
Bit7
CPnEN: Comparator Enable Bit. (Please see note below.)
0: Comparator Disabled.
1: Comparator Enabled.
CPnOUT: Comparator Output State Flag.
0: Voltage on CPn+ < CPn-.
1: Voltage on CPn+ > CPn-.
CPnRIF: Comparator Rising-Edge Interrupt Flag.
0: No Comparator Rising Edge Interrupt has occurred since this flag was last cleared.
1: Comparator Rising Edge Interrupt has occurred. Must be cleared by software.
CPnFIF: Comparator Falling-Edge Interrupt Flag.
0: No Comparator Falling-Edge Interrupt has occurred since this flag was last cleared.
1: Comparator Falling-Edge Interrupt has occurred. Must be cleared by software.
CPnHYP1-0: Comparator Positive Hysteresis Control Bits.
00: Positive Hysteresis Disabled.
01: Positive Hysteresis = 5 mV.
10: Positive Hysteresis = 10 mV.
11: Positive Hysteresis = 20 mV.
CPnHYN1-0: Comparator Negative Hysteresis Control Bits.
00: Negative Hysteresis Disabled.
01: Negative Hysteresis = 5 mV.
10: Negative Hysteresis = 10 mV.
11: Negative Hysteresis = 20 mV.
Upon enabling a comparator, the output of the comparator is not immediately valid. Before
using a comparator as an interrupt or reset source, software should wait for a minimum of
the specified “Power-up time” as specified in Table 12.1, “Comparator Electrical Characteris-
tics,” on page 122.
CPnOUT
R/W
Bit6
Figure 12.3. CPTnCN: Comparator 0, 1, and 2 Control Register
CPnRIF
R/W
Bit5
CPnFIF
R/W
Bit4
CPnHYP1 CPnHYP0 CPnHYN1 CPnHYN0
Rev. 1.2
R/W
Bit3
R/W
Bit2
R/W
Bit1
R/W
Bit0
Addressable
Reset Value
00000000
Bit

Related parts for C8051F060_07