SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 823

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
35.7.8.15
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
Inconsistent Synch Field Error
Identifier Parity Error
Checksum Error
Slave Not Responding Error
Master Node Configuration
LIN Frame Handling
This error is generated in Master of Slave node configuration, when the USART is transmitting
and if the transmitted value on the Tx line is different from the value sampled on the Rx line. If a
bit error is detected, the transmission is aborted at the next byte border.
This error is reported by flag LINBE in the Channel Status Register (US_CSR).
This error is generated in Slave node configuration, if the Synch Field character received is other
than 0x55.
This error is reported by flag LINISFE in the Channel Status Register (US_CSR).
This error is generated in Slave node configuration, if the parity of the identifier is wrong. This
error can be generated only if the parity feature is enabled (PARDIS = 0).
This error is reported by flag LINIPE in the Channel Status Register (US_CSR).
This error is generated in Master of Slave node configuration, if the received checksum is wrong.
This flag can be set to “1” only if the checksum feature is enabled (CHKDIS = 0).
This error is reported by flag LINCE in the Channel Status Register (US_CSR).
This error is generated in Master of Slave node configuration, when the USART expects a
response from another node (NACT = SUBSCRIBE) but no valid message appears on the bus
within the time given by the maximum length of the message frame, TFrame_Maximum (see
Section
PUBLISH or NACT = IGNORE).
This error is reported by flag LINSNRE in the Channel Status Register (US_CSR).
What comes next depends on the NACT configuration:
• Write TXEN and RXEN in US_CR to enable both the transmitter and the receiver.
• Write USART_MODE in US_MR to select the LIN mode and the Master Node configuration.
• Write CD and FP in US_BRGR to configure the baud rate.
• Write NACT, PARDIS, CHKDIS, CHKTYPE, DLCM, FSDIS and DLC in US_LINMR to
• Check that TXRDY in US_CSR is set to “1”
• Write IDCHR in US_LINIR to send the header
• Case 1: NACT = PUBLISH, the USART sends the response
configure the frame transfer.
– Wait until TXRDY in US_CSR rises
– Write TCHR in US_THR to send a byte
– If all the data have not been written, redo the two previous steps
– Wait until LINTC in US_CSR rises
35.7.8.13). This error is disabled if the USART does not expect any message (NACT =
SAM3X/A
SAM3X/A
823
823

Related parts for SAM3X8E