King Billion Electronics Co., Ltd.
HE89C21
駿 億 電 子 股 份 有 限 公 司
HE80000 SERIES
SXI
33p
32768Hz
33p
SXO
If the dual clock mode is used, the LCD display, Timer1 and Timer Base will derive its clock source from
slow clock while the other blocks will operate with the fast clock.
9.General Purpose I/O
There are two dedicated general purpose I/O port, PRTC, PRTD. All the I/O Ports are bi-directional and
of non- tri-state output structure. The output has weak sourcing (50 µA) and stronger sinking (1 mA)
capability and each can be configured as push-pull or open-drain output structure individually by mask
option. The input port has built-in Schmidt trigger to prevent it from chattering. The hysteresis level of
Schmidt trigger is 1/3*VDD.
MO_?PP[...] Output Structure
0
1
Open-drain output
Push-pull output
When the I/O port is used as input, the weakly high sourcing PMOS can be used as pull-up. Open drain
can be used if the pull-up is not required and let the external driver to drive the pin. Please note that a
floating pad could cause more power consumption since the noise could interfere with the circuit and
cause the input to toggle. A ‘1’ needs to be written to port first before reading the input data from the I/O
pin, otherwise, the pin will always be stuck at ‘0’. If the PMOS is used as pull-up, care should be taken to
avoid the constant power drain by DC path between pull-up and external circuit.
The initial state of most I/O ports is ‘1’ with one exception. The initial state of PRTD[2..0] is determined
by mask option MO_IH[2..0].
PRTD
Reset
Bit7
1
Bit 6
1
Bit 5
1
Bit 4
1
Bit 3
1
Bit 2
Bit 1
Bit 0
MO_IH2 MO_IH1 MO_IH0
MO_IH[2..0] Initial State of PRTD[2..0]
0
1
0
1
January 20, 2003
8
V1.0E