Atmel Evaluation Kit AT91SAM9G25-EK AT91SAM9G25-EK Data Sheet

Product codes
AT91SAM9G25-EK
Page of 1102
807
SAM9G25 [DATASHEET]
11032C–ATARM–25-Jan-13
39.7.7.6 Character Reception
When a character reception is completed, it is transferred to the Receive Holding Register (US_RHR) and the RXRDY bit
in the Status Register (US_CSR) rises. If a character is completed while RXRDY is set, the OVRE (Overrun Error) bit is
set. The last character is transferred into US_RHR and overwrites the previous one. The OVRE bit is cleared by writing
the Control Register (US_CR) with the RSTSTA (Reset Status) bit to 1. 
To ensure correct behavior of the receiver in SPI Slave Mode, the master device sending the frame must ensure a
minimum delay of 1 Tbit between each character transmission. The receiver does not require a falling edge of the slave
select line (NSS) to initiate a character reception but only a low level. However, this low level must be present on the
slave select line (NSS) at least 1 Tbit before the first serial clock cycle corresponding to the MSB bit.
39.7.7.7 Receiver Timeout
Because the receiver baudrate clock is active only during data transfers in SPI Mode, a receiver timeout is impossible in
this mode, whatever the Time-out value is (field TO) in the Time-out Register (US_RTOR).
39.7.8 LIN Mode
The LIN Mode provides Master node and Slave node connectivity on a LIN bus.
The LIN (Local Interconnect Network) is a serial communication protocol which efficiently supports the control of
mechatronic nodes in distributed automotive applications.
The main properties of the LIN bus are:
z
Single Master/Multiple Slaves concept
z
Low cost silicon implementation based on common UART/SCI interface hardware, an equivalent in software, or as 
a pure state machine
z
Self synchronization without quartz or ceramic resonator in the slave nodes
z
Deterministic signal transmission
z
Low cost single-wire implementation
z
Speed up to 20 kbit/s
LIN provides cost efficient bus communication where the bandwidth and versatility of CAN are not required.
The LIN Mode enables processing LIN frames with a minimum of action from the microprocessor.
39.7.8.1 Modes of Operation
The USART can act either as a LIN Master node or as a LIN Slave node.
The node configuration is chosen by setting the USART_MODE field in the USART Mode register (US_MR):
z
LIN Master Node (USART_MODE=0xA)
z
LIN Slave Node (USART_MODE=0xB)
In order to avoid unpredicted behavior, any change of the LIN node configuration must be followed by a software reset of
the transmitter and of the receiver (except the initial node configuration after a hardware reset). (See 
)
39.7.8.2 Baud Rate Configuration
The baud rate is configured in the Baud Rate Generator register (US_BRGR).
39.7.8.3 Receiver and Transmitter Control
39.7.8.4 Character Transmission
39.7.8.5 Character Reception