Rev. 1.10
118
November 04, 2019
Rev. 1.10
119
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
It should be noted that the actual register for data transmission and reception only exists as a single
shared register in the Data Memory. This shared register known as the UTXR_RXR register is used
for both data transmission and data reception.
UART Status and Control Registers
There are six control registers associated with the UART function. The UMD bit in the SIMC0
register can be used to select the UART mode. The UUSR, UUCR1 and UUCR2 registers control
the overall function of the UART, while the UBRG register controls the Baud rate. The actual data
to be transmitted and received on the serial interface is managed through the UTXR_RXR data
register. Note that UART related registers and their POR values are only available when the UART
mode is selected by setting the UMD bit in the SIMC0 register to “1”.
Register
Name
Bit
7
6
5
4
3
2
1
0
SIMC0
SIM2
SIM1
SIM0
UMD
SIMDEB1 SIMDEB0 SIMEN
SIMICF
UUSR
UPERR
UNF
UFERR UOERR URIDLE
URXIF
UTIDLE
UTXIF
UUCR1
UREN
UBNO
UPREN
UPRT
USTOPS UTXBRK
URX8
UTX8
UUCR2
UTXEN
URXEN UBRGH UADDEN UWAKE
URIE
UTIIE
UTEIE
UTXR_RXR UTXRX7 UTXRX6 UTXRX5 UTXRX4 UTXRX3 UTXRX2 UTXRX1 UTXRX0
UBRG
UBRG7
UBRG6
UBRG5
UBRG4
UBRG3
UBRG2
UBRG1
UBRG0
UART Register List
• SIMC0 Register
Bit
7
6
5
4
3
2
1
0
Name
SIM2
SIM1
SIM0
UMD
SIMDEB1 SIMDEB0 SIMEN
SIMICF
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
1
1
1
0
0
0
0
0
Bit 7~5
SIM2~SIM0
: USIM SPI/I
2
C Operating Mode Control
When the UMD bit is cleared to zero, these bits setup the SPI or I
2
C operating mode of
the USIM function. Refer to the SPI or I
2
C register section for more details.
Bit 4
UMD
: UART mode selection bit
0: SPI or I
2
C mode
1: UART mode
This bit is used to select the UART mode. When this bit is cleared to zero, the actual
SPI or I
2
C mode can be selected using the SIM2~SIM0 bits. Note that the UMD bit
must be set low for SPI or I
2
C mode.
Bit 3~2
SIMDEB1~SIMDEB0
: I
2
C Debounce Time Selection
Refer to the I
2
C register section.
Bit 1
SIMEN
: USIM SPI/I
2
C Enable Control
This bit is only available when the USIM is configured to operate in an SPI or I
2
C mode
with the UMD bit set low. Refer to the SPI or I
2
C register section for more details.
Bit 0
SIMICF
:
USIM SPI Incomplete Flag
Refer to the SPI register section.