MAX32665-MAX32668 User Guide
Maxim Integrated Page 265 of 457
Stop Bit Mode Select
Select the number of stop bits per character. The default is 1 stop bit, stop = 0. Setting
this field to 1 enables 1.5 stop bits for a 5-bit character size and 2 stop bits for all other
character sizes.
0: 1 stop bit.
1: 1.5 stop bits for 5-bit character size or 2 STOP bits for all other character sizes
Character Size
Set the number of bits per character.
0x0: 5 data bits
0x1: 6 data bits
0x2: 7 data bits
0x3: 8 data bits
Frame or Bit Accuracy Select
This field selects between either Frame Accuracy or Bit Accuracy for transmitting data.
Frame Accuracy: Individual character bit durations may be varied by hardware to meet
the target frame period.
Bit accuracy: Character bit width is prioritized by the hardware. The overall frame
accuracy may vary.
For clock rates that cannot achieve the +/- 2% baud rate accuracy, this bit allows the
firmware to select whether bit times are varied to approximate the desired baud rate.
0: Frame accuracy is prioritized.
1: Bit accuracy is prioritized.
Note: A frame includes the start, stop, all data bits, and parity bit/bits for the character
being transmitted.
Receive FIFO Flush
Write 1 to flush the receive FIFO
Cleared to 0 by hardware when flush is completed
Transmit FIFO Flush
Write 1 to flush the Transmit FIFO
Cleared to 0 by hardware when flush is completed
Parity Level Select
0: Parity is based on number of 0 bits in the character.
1: Parity is based on number of 1 bits in the character.
Parity Mode Select
Set this field to the type of parity for the UART data. Mark parity always sets the parity
bit to 1 and Space parity always sets the parity bit to 0. For even parity, the parity bit is
set to 1 if the number of 1 bits in the character is odd. Odd parity sets the parity bit to
1 if the number of 1 bits in the character is even.
0x0: Even parity
0x1: Odd Parity
0x2: Mark parity
0x3: Space parity
Note: For even and odd parity, the default uses the number of 1 bits in the character to
calculate the parity bit. Set the UARTn_CTRL0.parity_lvl to 0 to base the parity on the
number of 0 bits in the character.