Holtek HT68F Series Manual page 243

Enhanced i/o flash type 8-bit mcu with eeprom
Table of Contents

Advertisement

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
HT68FU40/HT68FU50
– PRM0 Register
PCK and PINT pin-remap setup
HT68FU60
– PRM0 Register
PCK and PINT pin-remap setup
• 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
Rev. 2.10
Bit
1
Name
SIMPS0
Setting va��e
1
Bit
2
Name
SIMPS1
Setting va��e
0
Bit
2
Name
SIMPS1
Setting va��e
1
Bit
2
Name
SIM2
Va��e
100�011�010�001�000
000: SPI master mode; SPI clock is f
001: SPI master mode; SPI clock is f
010: SPI master mode; SPI clock is f
011: SPI master mode; SPI clock is f
100: SPI master mode; SPI clock is TM0 CCRP match frequency/2
101~111: Must not be used
2�3
0
PCKPS
1
1
0
SIMPS0
PCKPS
1
1
1
0
SIMPS0
PCKPS
1
1
1
0
SIM1
SIM0
/4
SYS
/16
SYS
/64
SYS
TBC
���� 02� 201�

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT68F Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents