47.7.3.10 Transmitter Timeguard
The timeguard feature enables the USART interface with slow remote devices.
The timeguard function enables the transmitter to insert an idle state on the TXD line between two characters. This idle state actually acts as a long stop bit.
The duration of the idle state is programmed in the TG field of the Transmitter Timeguard register (FLEX_US_TTGR). When this field is written to zero, no timeguard is generated. Otherwise, the transmitter holds a high level on TXD after each transmitted byte during the number of bit periods programmed in TG in addition to the number of stop bits.
As illustrated in the following figure, the behavior of the TXRDY and TXEMPTY status bits is modified by the programming of a timeguard. TXRDY rises only when the start bit of the next character is sent, and thus remains to 0 during the timeguard transmission if a character has been written in FLEX_US_THR. TXEMPTY remains low until the timeguard transmission is completed as the timeguard is part of the current character being transmitted.
The following table indicates the maximum length of a timeguard period that the transmitter can handle in relation to the function of the baud rate.
Baud Rate (bit/s) | Bit Time (μs) | Timeguard (ms) |
---|---|---|
1,200 | 833 | 212.50 |
9,600 | 104 | 26.56 |
14,400 | 69.4 | 17.71 |
19,200 | 52.1 | 13.28 |
28,800 | 34.7 | 8.85 |
38,400 | 26 | 6.63 |
56,000 | 17.9 | 4.55 |
57,600 | 17.4 | 4.43 |
115,200 | 8.7 | 2.21 |