
Rev. 1.00
170 of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Comparators
CP1ON
CP1POL CP1OUT
C1OUT
CP1OS
Interrupt
CP1HN[1:0]
CP1HP[1:0]
CP1-
CP1+
-
+
Comparator 1
Comparator Registers
There are four registers for overall comparator operation. The CP0CR and CP1CR registers are
used to control the respective comparators settings for the Comparator 0 and Comparator 1 while
the CPHCR register is used to manage the hysteresis selection for these two comparators. In
addition, the CPICR register control the comparators interrupt settings. The accompanying register
table illustrates the control registers list.
Comparator Registers List
Register
Name
Bit
7
6
5
4
3
2
1
0
CP0CR
—
CP0ON
CP0POL
CP0OUT
CP0OS
CP0RSTL
CP0RST
—
CP1CR
—
CP1ON
CP1POL
CP1OUT
CP1OS
—
—
—
CPHCR
CP1HP1
CP1HP0
CP1HN1
CP1HN0
CP0HP1
CP0HP0
CP0HN1
CP0HN0
CPICR
CP1IF
CP1IEN
CP1P1
CP1P0
CP0IF
CP0IEN
CP0P1
CP0P0