Rev. 1.10
130
November 04, 2019
Rev. 1.10
131
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
UART register section. The overall UART interrupt can be disabled or enabled by the USIM
interrupt enable control bit in the interrupt control register of the microcontroller to decide whether
the interrupt requested by the UART module is masked out or allowed.
Transmitter Empty
Flag UTXIF
UUSR Register
Transmitter Idle
Flag UTIDLE
Receiver Overrun
Flag UOERR
Receiver Data
Available URXIF
UADDEN
RX Pin
Wake-up
UWAKE
0
1
0
1
UTXR_RXR.7 if UBNO=0
URX8 if UBNO=1
UUCR2 Register
URIE
0
1
UTIIE
0
1
UTEIE
0
1
USIM Interrupt
Request Flag
USIMF
UUCR2 Register
USIME
EMI
0
1
Interrupt signal
to MCU
UART Interrupt Structure
Address Detect Mode
Setting the Address Detect Mode bit, UADDEN, in the UUCR2 register, enables this special mode.
If this bit is enabled then an additional qualifier will be placed on the generation of a Receiver Data
Available interrupt, which is requested by the URXIF flag. If the UADDEN bit is enabled, then
when data is available, an interrupt will only be generated, if the highest received bit has a high
value. Note that the USIME and EMI interrupt enable bits must also be enabled for correct interrupt
generation. This highest address bit is the 9th bit if UBNO=1 or the 8th bit if UBNO=0. If this bit
is high, then the received word will be defined as an address rather than data. A Data Available
interrupt will be generated every time the last bit of the received word is set. If the UADDEN bit
is not enabled, then a Receiver Data Available interrupt will be generated each time the URXIF
flag is set, irrespective of the data last bit status. The address detect mode and parity enable are
mutually exclusive functions. Therefore if the address detect mode is enabled, then to ensure correct
operation, the parity function should be disabled by resetting the parity enable bit UPREN to zero.
UADDEN
Bit 9 if UBNO=1,
Bit 8 if UBNO=0
USIM Interrupt
Generated
0
0
√
1
√
1
0
×
1
√
UADDEN Bit Function
UART Power Down and Wake-up
When the UART clock (f
H
) is off, the UART will cease to function, all clock sources to the
module are shutdown. If the UART clock (f
H
) is off while a transmission is still in progress, then
the transmission will be paused until the UART clock source derived from the microcontroller is
activated. In a similar way, if the MCU enters the IDLE or SLEEP Mode while receiving data, then
the reception of data will likewise be paused. When the MCU enters the IDLE or SLEEP Mode, note