
Rev. 1.00
8� of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Reset and Initialisation
Comparator 0 Reset
Comparator 0 contains an output reset function which can provide a reset when the output of
Comparator 0 changes state. The Comparator 0 reset function is enabled by setting the CP0RST
bit in the CP0CR register. If the CP0RST is set high, the comparator 0 output bit, CP0OUT, will
determine if a Comparator 0 reset is generated or not. The CP0RSTL bit determines which polarity
of the CP0OUT bit generates the reset, The CMP0F bit in the RSTSRC register is used to indicate
the Comparator 0 reset source.
CP0CR Register
SFR Address: DEh
Bit
7
6
5
4
3
2
1
0
Label
—
CP0ON
CP0POL
CP0OUT
CP0OS
CP0RSTL
CP0RST
—
R/W
—
R/W
R/W
R
R/W
R/W
R/W
—
POR
—
0
0
0
1
0
0
—
Bit 7
Unimplemented, read as “0”
Bit 6
CP0ON:
Comparator 0 on/off bit
Described elsewhere
Bit 5
CP0POL:
Comparator 0 output polarity
Described elsewhere
Bit 4
CP0OUT:
Comparator 0 output bit
Described elsewhere
Bit 3
CP0OS:
Comparator 0 output path selection
Described elsewhere
Bit 2
CP0RSTL:
Comparator 0 output reset selection – CP0RST=1
0: CP0OUT=0 will reset MCU
1: CP0OUT=1 will reset MCU
Bit 1
CP0RST:
Comparator 0 output reset MCU control
0: Disable
1: Enable
Bit 0
Unimplemented, read as “0”