English
Language : 

SAM4L Datasheet, PDF (592/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
24.6.10.1
Modes of Operation
Changing LIN mode after initial configuration must be followed by a transceiver software reset in
order to avoid unpredictable behavior.
24.6.10.2 Receiver and Transmitter Control
See Section “24.6.2.1” on page 574.
24.6.10.3
Baud Rate Configuration
The LIN nodes baud rate is configured in the Baud Rate Generator Register (BRGR), See Sec-
tion “24.6.4.1” on page 581. The LIN slave node copies the initial BRGR value to the LIN Baud
Rate Register (LINBRR), and updates LINBRR after successful synchronization.
24.6.10.4 Character Transmission and Reception
See ”Transmitter Operations” on page 574, and ”Receiver Operations” on page 576.
24.6.10.5
Header Transmission (Master Node Configuration)
All LIN frames start with a header sent by the master. As soon as the identifier has been written
to the Identifier Character field in the LIN Identifier Register (LINIR.IDCHR), CSR.TXRDY is
cleared and the header is sent. The header consists of a Break field, a Sync field, and an Identi-
fier field. CSR.TXRDY is set when the identifier has been transferred into the transmitters shift
register. An interrupt request is generated if IMR.TXRDY is set.
The Break field consists of 13 dominant bits (the break) and one recessive bit (the break delim-
iter). The Sync field consists of a start bit, the Sync byte (the character 0x55), and a stop bit,
refer to Figure 24-29. The Identifier field contains the Identifier as written to LINIR.IDCHR. The
identifier parity bits can be generated automatically (see Section 24.6.10.8).
Figure 24-27. Header Transmission
Baud Rate
Clock
TXD
Write
LINIR
Break Field
13 dominant bits (at 0)
Break
Delimiter
1 recessive bit
Start
Bit
1
01010
Synch Byte = 0x55
1
0
Stop Start
Bit Bit
ID0
ID1
ID2
ID3
ID4
ID5
ID6
ID7
Stop
Bit
(at 1)
LINIR
ID
TXRDY
See also ”Master Node Configuration” on page 598.
24.6.10.6
Header Reception (Slave Node Configuration)
The USART stays idle until it detects a break field, consisting of at least 11 consecutive domi-
nant bits (zeroes) on the bus. A received break will set the Lin Break bit (CSR.LINBK). An
interrupt request is generated if the Lin Break bit in the Interrupt Mask Register (IMR.LINBK) is
set. The Sync field is used to synchronize the baud rate (see Section 24.6.10.7). IDCHR is
updated and the LIN Identifier bit (CSR.LINID) is set when the Identifier has been received. An
interrupt request is generated if the Lin Identifier bit in the Interrupt Mask Register (IMR.LINID) is
set. The Identifier parity bits can be automatically checked (see Section 24.6.10.8). If the header
42023C–SAM–02/2013
592