Rev. 1.00
54
��ne ��� �01�
Rev. 1.00
55
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
input pins, such as INTn, TCKn, etc, which share the same pin-shared control configuration with
their corresponding general purpose I/O functions when setting the relevant pin-shared control bit
fields. To select these pin functions, in addition to the necessary pin-shared control and peripheral
functional setup aforementioned, they must also be setup as an input by setting the corresponding bit
in the I/O port control register. To correctly deselect the pin-shared function, the peripheral function
should first be disabled and then the corresponding pin-shared function control register can be
modified to select other pin-shared functions.
Register
Name
Bit
7
6
5
4
3
2
1
0
PAPS0
PA3S1
PA3S0
PA�S1
PA�S0
PA1S1
PA1S0
PA0S1
PA0S0
PAPS1
PA�S1
PA�S0
PA6S1
PA6S0
PA5S1
PA5S0
PA4S1
PA4S0
PBPS0
PB3S1
PB3S0
PB�S1
PB�S0
PB1S1
PB1S0
PB0S1
PB0S0
PBPS1
PB�S1
PB�S0
PB6S1
PB6S0
PB5S1
PB5S0
PB4S1
PB4S0
PCPS0
PC3S1
PC3S0
PC�S1
PC�S0
PC1S1
PC1S0
PC0S1
PC0S0
PCPS1
—
—
—
—
PC5S1
PC5S0
PC4S1
PC4S0
PDPS0
PD3S1
PD3S0
PD�S1
PD�S0
PD1S1
PD1S0
PD0S1
PD0S0
PRM
NFINPS
INT1PS
RXPS
TXPS
C1NPS1 C1NPS0
SDAPS
SCLPS
Pin-shared Function Selection Registers List
• PAPS0 Register
Bit
7
6
5
4
3
2
1
0
Name
PA3S1
PA3S0
PA�S1
PA�S0
PA1S1
PA1S0
PA0S1
PA0S0
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~6
PA3S1~PA3S0
: PA3 Pin-Shared function selection
00: PA3/TCK1/H1
01: C1P
10: PA3/TCK1/H1
11: PA3/TCK1/H1
Bit 5~4
PA2S1~PA2S0
: PA2 Pin-Shared function selection
00: PA2
01: SCL
10: TX
11: PA2
Note that to select this TX pin function, the corresponding output source selection bit
in the PRM register should be set to 1.
Bit 3~2
PA1S1~PA1S0
: PA1 Pin-Shared function selection
00: PA1/TCK2
01: AP/AN3
10: PA1/TCK2
11: PA1/TCK2
Bit 1~0
PA0S1~PA1S0
: PA0 Pin-Shared function selection
00: PA0
01: SDA
10: RX
11: PA0