Silicon Laboratories C8051F346, C8051F347 SFR Definition 7.4. CPT1CN Comparator1 Control

Models: C8051F346 C8051F347 C8051F344 C8051F342 C8051F343 C8051F345 C8051F340 C8051F341

1 282
Download 282 pages 2.89 Kb
Page 65
Image 65

C8051F340/1/2/3/4/5/6/7

SFR Definition 7.4. CPT1CN: Comparator1 Control

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

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.

Rev. 0.5

65

Page 65
Image 65
Silicon Laboratories C8051F346, C8051F347 SFR Definition 7.4. CPT1CN Comparator1 Control, CP1EN CP1OUT CP1RIF CP1FIF