29.4.2 Operation

The USART uses the following lines for data transfer:

  • RxD for receiving
  • TxD for transmitting
  • XCK for the transmission clock in synchronous operation

USART data transfer is frame-based. A serial frame consists of:

  • One start bit
  • From five to nine data bits (MSb‑ or LSb‑first)
  • No parity bit, or an even or odd parity bit
  • One or two stop bits

A frame starts with a start bit, followed by one character of data bits. If enabled, the parity bit is inserted after the data bits and before the first stop bit. After the stop bit(s) of a frame, the next frame can either follow immediately, or the communication line can return to the Idle (high) state. The following figure illustrates the possible frame formats. Values inside brackets ([x]) denote optional bits.

Figure 29-2. Frame Formats
St
Start bit. The signal is always low.
n, [n]
Data bits: 0 to [5..9]
[P]
Parity bit: Either odd or even.
Sp, [Sp]
Stop bit. The signal is always high.
IDL
No frame is transferred on the communication line. The signal is always high in this state.