
Rev. 2.50
256
��ne 22� 20��
Rev. 2.50
25�
��ne 22� 20��
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Using the UART Function
To use the UART function, several important steps must be implemented to ensure that the UART
module operates normally:
• The SPI pin-remapping function must be properly configured when the SPI functional pins of
the microcontroller are used to control the UART module and for data transmission and data
reception. To correctly connect the MCU Master SPI to the UART Module Slave SPI, the SIM
pin-remapping settings for PCK and PINT in the MCU PRM0 register should be the same as the
values listed in the following table.
♦
HT66FU30
– PRM0 Register – PCK and PINT pin-remap setup
Bit
1
0
Name
SIMPS0
PCKPS
Setting val�e
�
�
♦
HT66FU40/HT66FU50
– PRM0 Register – PCK and PINT pin-remap setup
Bit
2
1
0
Name
SIMPS�
SIMPS0
PCKPS
Setting val�e
0
�
�
♦
HT66FU60
– PRM0 Register – PCK and PINT pin-remap setup
Bit
2
1
0
Name
SIMPS�
SIMPS0
PCKPS
Setting val�e
�
�
�
• The SIM operating mode control bits SIM2~SIM0, in the SIMC0 register have to be configured
to enable the SIM to operate in the SPI master mode with a different SPI clock frequency.
♦
SIM operating mode control bits SIM2~SIM0 in the SIMC0 Register
Bit
2
1
0
Name
SIM2
SIM�
SIM0
val�e
�00�0���0�0�00��000
000: SPI master mode; SPI clock is f
SYS
/4
001: SPI master mode; SPI clock is f
SYS
/16
010: SPI master mode; SPI clock is f
SYS
/64
011: SPI master mode; SPI clock is f
TBC
100: SPI master mode; SPI clock is TM0 CCRP match frequency/2
101~111: must not be used