Holtek HT66F20 Manual page 257

A/d flash mcu with eeprom
Table of Contents

Advertisement

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
HT66FU40/HT66FU50
– PRM0 Register – PCK and PINT pin-remap setup
HT66FU60
– 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.50
Bit
1
Name
SIMPS0
Setting val�e
Bit
2
Name
SIMPS�
Setting val�e
0
Bit
2
Name
SIMPS�
Setting val�e
Bit
2
Name
SIM2
val�e
�00�0���0�0�00��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
25�
0
PCKPS
1
0
SIMPS0
PCKPS
1
0
SIMPS0
PCKPS
1
0
SIM�
SIM0
/4
SYS
/16
SYS
/64
SYS
TBC
��ne 22� 20��

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents