Sfr definition 7.4. cpt1cn: comparator1 control, Sfr definition 7.4 – Silicon Laboratories C8051F347 User Manual

Page 65

Advertising
background image

Rev. 1.3

65

C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D

SFR Definition 7.4. CPT1CN: Comparator1 Control

Bit7:

CP1EN: Comparator1 Enable Bit.
0: Comparator1 Disabled.
1: Comparator1 Enabled.

Bit6:

CP1OUT: Comparator1 Output State Flag.
0: Voltage on CP1+ < CP1–.
1: Voltage on CP1+ > CP1–.

Bit5:

CP1RIF: Comparator1 Rising-Edge Flag.
0: No Comparator1 Rising Edge has occurred since this flag was last cleared.
1: Comparator1 Rising Edge has occurred.

Bit4:

CP1FIF: Comparator1 Falling-Edge Flag.
0: No Comparator1 Falling-Edge has occurred since this flag was last cleared.
1: Comparator1 Falling-Edge has occurred.

Bits3–2: CP1HYP1–0: Comparator1 Positive Hysteresis Control Bits.

00: Positive Hysteresis Disabled.
01: Positive Hysteresis = 5 mV.
10: Positive Hysteresis = 10 mV.
11: Positive Hysteresis = 20 mV.

Bits1–0: CP1HYN1–0: Comparator1 Negative Hysteresis Control Bits.

00: Negative Hysteresis Disabled.
01: Negative Hysteresis = 5 mV.
10: Negative Hysteresis = 10 mV.
11: Negative Hysteresis = 20 mV.

R/W

R

R/W

R/W

R/W

R/W

R/W

R/W

Reset Value

CP1EN

CP1OUT

CP1RIF

CP1FIF

CP1HYP1 CP1HYP0 CP1HYN1 CP1HYN0 00000000

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

SFR Address:

0x9A

Advertising
This manual is related to the following products: