C8051F52x-53x
SFR Definition 8.3. CPT0MD: Comparator0 Mode Selection
R/W
CP0HIQE
Bit7
R/W
-
R/W
R/W
R/W
-
R/W
-
R/W
R/W
Reset Value
CP0RIE CP0FIE
CP0MD1 CP0MD0 00000010
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
SFR Address:
0x9D
Bit7:
CP0HIQE: High-Speed Analog Mode Enable Bit.
0: Comparator input configured to Low-Speed Analog Mode.
1: Comparator input configured to High-Speed Analog Mode.
UNUSED. Read = 0b. Write = don’t care.
CP0RIE: Comparator Rising-Edge Interrupt Enable.
0: Comparator rising-edge interrupt disabled.
Bit6:
Bit5:
1: Comparator rising-edge interrupt enabled.
Bit4:
CP0FIE: Comparator Falling-Edge Interrupt Enable.
0: Comparator falling-edge interrupt disabled.
1: Comparator falling-edge interrupt enabled.
Note: It is necessary to enable both CP0xIE and the correspondent ECPx bit located in EIE1
SFR.
Bits3–2: UNUSED. Read = 00b. Write = don’t care.
Bits1–0: CP0MD1–CP0MD0: Comparator0 Mode Select
These bits select the response time for Comparator0.
Mode
CP0MD1 CP0MD0
CP0 Falling Edge Response
Time (TYP)
0
1
2
3
0
0
1
1
0
1
0
1
Fastest Response Time
—
—
Lowest Power Consumption
Note: Rising Edge response times are approximately double the Falling Edge response
times.
Rev. 0.3
73