Mode (UART) Register Description
Register Name | Mode |
---|---|
Offset Address | 0x0000000004 |
Absolute Address |
0x00FF000004 (UART0) 0x00FF010004 (UART1) |
Width | 32 |
Type | mixedMixed types. See bit-field details. |
Reset Value | 0x00000000 |
Description | UART Mode Register |
The UART Mode register defines the setup of the data format to be transmitted or received. If this register is modified during transmission or reception, data validity cannot be guaranteed.
Mode (UART) Register Bit-Field Summary
Field Name | Bits | Type | Reset Value | Description |
---|---|---|---|---|
Reserved | 31:14 | roRead-only | 0x0 | Reserved, read as zero, ignored on write. |
WSIZE | 13:12 | rwNormal read/write | 0x0 | Configure the size of FIFO access from the APB 00: One or two bytes written to TX FIFO or read from RX FIFO. If byte_sel is high then one byte is written or read, if byte_sel is low then two bytes are written or read (default legacy mode) 01: One byte is always written or read from FIFOs, regardless of whether byte_sel is active 10: Two bytes are always written or read from FIFOs, regardless of whether byte_sel is active 11: Four bytes are always written or read from FIFOs regardless of byte_sel (assuming configured width of APB supports four bytes) |
CHMODE | 9:8 | rwNormal read/write | 0x0 | Channel mode: Defines the mode of operation of the UART. 00: normal 01: automatic echo 10: local loopback 11: remote loopback 0: LPD_LSBUS_CLK clock. 1: a user-defined clock 0: Default UART mode 1: Enable IrDA mode |
NBSTOP | 7:6 | rwNormal read/write | 0x0 | Number of stop bits: Defines the number of stop bits to detect on receive and to generate on transmit. 00: 1 stop bit 01: 1.5 stop bits 10: 2 stop bits 11: reserved |
PAR | 5:3 | rwNormal read/write | 0x0 | Parity type select: Defines the expected parity to check on receive and the parity to generate on transmit. 000: even parity 001: odd parity 010: forced to 0 parity (space) 011: forced to 1 parity (mark) 1xx: no parity |
CHRL | 2:1 | rwNormal read/write | 0x0 | Character length select: Defines the number of bits in each character. 11: 6 bits 10: 7 bits 0x: 8 bits |
CLKS | 0 | rwNormal read/write | 0x0 | Clock source select: This field defines whether a pre-scalar of 8 is applied to the baud rate generator input clock. 0: clock source is UART_REF_CLK 1: clock source is UART_REF_CLK/8 |