Rev. 1.10
58
November 04, 2019
Rev. 1.10
59
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
I/O Pin Structures
The accompanying diagram illustrates the internal structures of the I/O logic function. As the exact
logical construction of the I/O pin will differ from this diagram, it is supplied as a guide only to
assist with the functional understanding of the logic function I/O pins. The wide range of pin-shared
structures does not permit all types to be shown.
Q
CK
Q
S
Control Bit
D
Pull-high
Register
Select
Weak
Pull-up
Data Bus
Write Control Register
Chip RESET
Data Bit
Read Control Register
Read Data Register
Q
CK
Q
S
D
Write Data Register
M
U
X
V
DD
I/O pin
Wake-up Select
System Wake-up
PA only
IECM
Logic Function Input/Output Structure
READ PORT Function
The READ PORT function is used to manage the reading of the output data from the data latch or I/
O pin, which is specially designed for the IEC60730 self-diagnostic test on the I/O function and A/
D paths. There is a register, IECC, which is used to control the READ PORT function. If the READ
PORT function is disabled, the pin function will operate as the selected pin-shared function. When
a specific data pattern, "11001010", is written into the IECC register, the internal signal named
IECM will be set high to enable the READ PORT function. If the READ PORT function is enabled,
the value on the corresponding pins will be passed to the accumulator ACC when the read port
instruction "mov acc, Px" is executed where the "x" stands for the corresponding I/O port name.
• IECC Register
Bit
7
6
5
4
3
2
1
0
Name
IECS7
IECS6
IECS5
IECS4
IECS3
IECS2
IECS1
IECS0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0
IECS7~IECS0
: READ PORT function enable control bit 7~ bit 0
11001010: IECM=1 – READ PORT function is enabled
Others: IECM=0 – READ PORT function is disabled