Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
784
Figure 36-36. Typical Connection to a RS485 Bus 
The USART is set in RS485 mode by writing the value 0x1 to the USART_MODE field in US_MR.
The RTS pin is at a level inverse to the TXEMPTY bit. Significantly, the RTS pin remains high when a timeguard is 
programmed so that the line can remain driven after the last character completion
 gives an example 
of the RTS waveform during a character transmission when the timeguard is enabled.
Figure 36-37. Example of RTS Drive with Timeguard
USART
RTS
TXD
RXD
Differential 
Bus
D0
D1
D2
D3
D4
D5
D6
D7
TXD
Start 
Bit
Parity
Bit
Stop
Bit
Baud Rate
 Clock
TG = 4
Write
US_THR
TXRDY
TXEMPTY
RTS