Rev. 1.00
158
September 11, 2018
Rev. 1.00
159
September 11, 2018
HT45F4050
A/D NFC Flash MCU
HT45F4050
A/D NFC Flash MCU
Bit 5
BRGH
: Baud Rate speed selection
0: Low speed baud rate
1: High speed baud rate
The bit named BRGH selects the high or low speed mode of the Baud Rate Generator.
This bit, together with the value placed in the baud rate register BRG, controls the
Baud Rate of the UART. If this bit is equal to "1", the high speed mode is selected. If
the bit is equal to "0", the low speed mode is selected.
Bit 4
ADDEN
: Address detect function enable control
0: Address detect function is disabled
1: Address detect function is enabled
The bit named ADDEN is the address detect function enable control bit. When this
bit is equal to "1", the address detect function is enabled. When it occurs, if the 8th
bit, which corresponds to RX7 if BNO=0 or the 9th bit, which corresponds to RX8 if
BNO=1, has a value of "1", then the received word will be identified as an address,
rather than data. If the corresponding interrupt is enabled, an interrupt request will be
generated each time the received word has the address bit set, which is the 8th or 9th
bit depending on the value of BNO. If the address bit known as the 8th or 9th bit of the
received word is "0" with the address detect function being enabled, an interrupt will
not be generated and the received data will be discarded.
Bit 3
WAKE
: RX pin wake-up UART function enable control
0: RX pin wake-up UART function is disabled
1: RX pin wake-up UART function is enabled
This bit is used to control the wake-up UART function when a falling edge on the RX
pin occurs. Note that this bit is only available when the UART clock (f
H
) is switched
off. There will be no RX pin wake-up UART function if the UART clock (f
H
) exists.
If the WAKE bit is set to 1 as the UART clock (f
H
) is switched off, a UART wake-
up request will be initiated when a falling edge on the RX pin occurs. When this
request happens and the corresponding interrupt is enabled, an RX pin wake-up UART
interrupt will be generated to inform the MCU to wake up the UART function by
switching on the UART clock (f
H
) via the application program. Otherwise, the UART
function can not resume even if there is a falling edge on the RX pin when the WAKE
bit is cleared to 0.
Bit 2
RIE
: Receiver interrupt enable control
0: Receiver related interrupt is disabled
1: Receiver related interrupt is enabled
This bit enables or disables the receiver interrupt. If this bit is equal to "1" and when
the receiver overrun flag OERR or receive data available flag RXIF is set, the UART
interrupt request flag will be set. If this bit is equal to "0", the UART interrupt request
flag will not be influenced by the condition of the OERR or RXIF flags.
Bit 1
TIIE
: Transmitter Idle interrupt enable control
0: Transmitter idle interrupt is disabled
1: Transmitter idle interrupt is enabled
This bit enables or disables the transmitter idle interrupt. If this bit is equal to "1" and
when the transmitter idle flag TIDLE is set, due to a transmitter idle condition, the
UART interrupt request flag will be set. If this bit is equal to "0", the UART interrupt
request flag will not be influenced by the condition of the TIDLE flag.
Bit 0
TEIE
: Transmitter Empty interrupt enable control
0: Transmitter empty interrupt is disabled
1: Transmitter empty interrupt is enabled
This bit enables or disables the transmitter empty interrupt. If this bit is equal to "1"
and when the transmitter empty flag TXIF is set, due to a transmitter empty condition,
the UART interrupt request flag will be set. If this bit is equal to "0", the UART
interrupt request flag will not be influenced by the condition of the TXIF flag.