Rev. 1.10
122
November 04, 2019
Rev. 1.10
123
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
When the UART is disabled, it will empty the buffer so any character remaining in the
buffer will be discarded. In addition, the value of the baud rate counter will be reset.
If the UART is disabled, all error and status flags will be reset. Also the UTXEN,
URXEN, UTXBRK, URXIF, UOERR, UFERR, UPERR and UNF bits will be cleared,
while the UTIDLE, UTXIF and URIDLE bits will be set. Other control bits in UUCR1,
UUCR2 and UBRG registers will remain unaffected. If the UART is active and the
UREN bit is cleared, all pending transmissions and receptions will be terminated and
the module will be reset as defined above. When the UART is re-enabled, it will restart
in the same configuration.
Bit 6
UBNO
: Number of data transfer bits selection
0: 8-bit data transfer
1: 9-bit data transfer
This bit is used to select the data length format, which can have a choice of either
8-bit or 9-bit format. When this bit is equal to “1”, a 9-bit data length format will be
selected. If the bit is equal to “0”, then an 8-bit data length format will be selected. If
9-bit data length format is selected, then bits URX8 and UTX8 will be used to store
the 9th bit of the received and transmitted data respectively.
Bit 5
UPREN
: Parity function enable control
0: Parity function is disabled
1: Parity function is enabled
This is the parity enable bit. When this bit is equal to “1”, the parity function will be
enabled. If the bit is equal to “0”, then the parity function will be disabled.
Bit 4
UPRT
: Parity type selection bit
0: Even parity for parity generator
1: Odd parity for parity generator
This bit is the parity type selection bit. When this bit is equal to “1”, odd parity type
will be selected. If the bit is equal to “0”, then even parity type will be selected.
Bit 3
USTOPS
: Number of Stop bits selection
0: One stop bit format is used
1: Two stop bits format is used
This bit determines if one or two stop bits are to be used. When this bit is equal to “1”,
two stop bits are used. If this bit is equal to “0”, then only one stop bit is used.
Bit 2
UTXBRK
: Transmit break character
0: No break character is transmitted
1: Break characters transmit
The UTXBRK bit is the Transmit Break Character bit. When this bit is “0”, there are
no break characters and the TX pin operates normally. When the bit is “1”, there are
transmit break characters and the transmitter will send logic zeros. When this bit is
equal to “1”, after the buffered data has been transmitted, the transmitter output is held
low for a minimum of a 13-bit length and until the UTXBRK bit is reset.
Bit 1
URX8
: Receive data bit 8 for 9-bit data transfer format (read only)
This bit is only used if 9-bit data transfers are used, in which case this bit location
will store the 9th bit of the received data known as URX8. The UBNO bit is used to
determine whether data transfers are in 8-bit or 9-bit format.
Bit 0
UTX8
: Transmit data bit 8 for 9-bit data transfer format (write only)
This bit is only used if 9-bit data transfers are used, in which case this bit location will
store the 9th bit of the transmitted data known as UTX8. The UBNO bit is used to
determine whether data transfers are in 8-bit or 9-bit format.