Rev. 2.10
2�2
���� 02� 201�
Rev. 2.10
2�3
���� 02� 201�
HT68F20/HT68F30/HT68F40/HT68F50/HT68F60
HT68FU30/HT68FU40/HT68FU50/HT68FU60
Enhanced I/O Flash Type 8-Bit MCU with EEPROM
HT68F20/HT68F30/HT68F40/HT68F50/HT68F60
HT68FU30/HT68FU40/HT68FU50/HT68FU60
Enhanced I/O Flash Type 8-Bit 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.
♦
HT68FU30
– PRM0 Register
PCK and PINT pin-remap setup
Bit
1
0
Name
SIMPS0
PCKPS
Setting va��e
1
1
♦
HT68FU40/HT68FU50
– PRM0 Register
PCK and PINT pin-remap setup
Bit
2
1
0
Name
SIMPS1
SIMPS0
PCKPS
Setting va��e
0
1
1
♦
HT68FU60
– PRM0 Register
PCK and PINT pin-remap setup
Bit
2
1
0
Name
SIMPS1
SIMPS0
PCKPS
Setting va��e
1
1
1
• 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
SIM1
SIM0
Va��e
100�011�010�001�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