
Rev. 1.00
17� of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Comparators
CP1CR Register
SFR Address: DFh
Bit
7
6
5
4
3
2
1
0
Name
—
CP1ON
CP1POL
CP1OUT
CP1OS
—
—
—
R/W
—
R/W
R/W
R/W
R/W
—
—
—
POR
—
0
0
0
1
—
—
—
Bit 7
Unimplemented, read as “0”
Bit 6
CP1ON:
Comparator 1 On/Off control
0: Off
1: On
This is the Comparator 1 on/off control bit. If the bit is zero the comparator will be
switched off and no power consumed even if analog voltages are applied to its inputs.
For power sensitive applications this bit should be cleared to zero if the comparator is
not used or before the device enters the Power-Down or IDLE mode.
Bit 5
CP1POL:
Comparator 1 output polarity
0: Output not inverted
1: Output inverted
This is the comparator 1 polarity bit. If the bit is zero then the CP1OUT bit will reflect
the non-inverted output condition of the comparator. If the bit is high the comparator
CP1OUT bit will be inverted.
Bit 4
CP1OUT:
Comparator 1 output bit
CP1POL=0
0: CP1+ < CP1-
1: CP1+ > CP1-
CP1POL=1
0: CP1+ > CP1-
1: CP1+ < CP1-
This bit stores the comparator 1 output bit. The polarity of the bit is determined by the
voltages on the comparator 0 inputs and by the condition of the CP1POL bit.
Bit 3
CP1OS:
Comparator 1 output path select
0: C1OUT pin
1: Internal use
This is the comparator 0 output path select control bit. If the bit is set to “0” and the
CP1ON bit is “1” the comparator 0 output is connected to an external C1OUT pin. If
the bit is set to “1” or the CP1ON bit is “1” the comparator 0 output signal is only used
internally by the device allowing the shared comparator output pin to retain its normal
I/O operation.
Bit 2~0
Unimplemented, read as “0”