844
11054A–ATARM–27-Jul-11
SAM9X25
844
11054A–ATARM–27-Jul-11
SAM9X25
39.7.8.14
LIN Errors
Bit Error
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).
Inconsistent Synch Field Error
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).
Identifier Parity Error
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).
Checksum Error
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).
Slave Not Responding Error
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
). This error is disabled if the USART does not expect any message (NACT =
PUBLISH or NACT = IGNORE).
This error is reported by flag LINSNRE in the Channel Status Register (US_CSR).
39.7.8.15
LIN Frame Handling
Master Node 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
configure the frame transfer.
• Check that TXRDY in US_CSR is set to “1”
• Write IDCHR in US_LINIR to send the header
What comes next depends on the NACT configuration:
• Case 1: NACT = PUBLISH, the USART sends the response
– Wait until TXRDY in US_CSR rises
– Write TCHR in US_THR to send a byte
Содержание SAM9X25
Страница 26: ...26 11054A ATARM 27 Jul 11 SAM9X25...
Страница 138: ...138 11054A ATARM 27 Jul 11 SAM9X25 138 11054A ATARM 27 Jul 11 SAM9X25...
Страница 162: ...162 11054A ATARM 27 Jul 11 SAM9X25 162 11054A ATARM 27 Jul 11 SAM9X25...
Страница 216: ...216 11054A ATARM 27 Jul 11 SAM9X25 216 11054A ATARM 27 Jul 11 SAM9X25...
Страница 266: ...266 11054A ATARM 27 Jul 11 SAM9X25 266 11054A ATARM 27 Jul 11 SAM9X25...
Страница 330: ...330 11054A ATARM 27 Jul 11 SAM9X25 330 11054A ATARM 27 Jul 11 SAM9X25...
Страница 374: ...374 11054A ATARM 27 Jul 11 SAM9X25...
Страница 468: ...468 11054A ATARM 27 Jul 11 SAM9X25 468 11054A ATARM 27 Jul 11 SAM9X25...
Страница 532: ...532 11054A ATARM 27 Jul 11 SAM9X25 532 11054A ATARM 27 Jul 11 SAM9X25...
Страница 692: ...692 11054A ATARM 27 Jul 11 SAM9X25 692 11054A ATARM 27 Jul 11 SAM9X25...
Страница 777: ...777 11054A ATARM 27 Jul 11 SAM9X25 777 11054A ATARM 27 Jul 11 SAM9X25...
Страница 886: ...886 11054A ATARM 27 Jul 11 SAM9X25 886 11054A ATARM 27 Jul 11 SAM9X25...
Страница 962: ...962 11054A ATARM 27 Jul 11 SAM9X25 962 11054A ATARM 27 Jul 11 SAM9X25...
Страница 1036: ...1036 11054A ATARM 27 Jul 11 SAM9X25 1036 11054A ATARM 27 Jul 11 SAM9X25...
Страница 1067: ...1067 11054A ATARM 27 Jul 11 SAM9X25 1067 11054A ATARM 27 Jul 11 SAM9X25 PTZ Pause Time Zero Enable pause time zero interrupt...
Страница 1069: ...1069 11054A ATARM 27 Jul 11 SAM9X25 1069 11054A ATARM 27 Jul 11 SAM9X25 PTZ Pause Time Zero Disable pause time zero interrupt...
Страница 1071: ...1071 11054A ATARM 27 Jul 11 SAM9X25 1071 11054A ATARM 27 Jul 11 SAM9X25 PTZ Pause Time Zero Pause time zero interrupt masked...
Страница 1128: ...1128 11054A ATARM 27 Jul 11 SAM9X25 1128 11054A ATARM 27 Jul 11 SAM9X25...
Страница 1130: ...1130 11054A ATARM 27 Jul 11 SAM9X25...
Страница 1131: ...1131 11054A ATARM 27 Jul 11 SAM9X25 Revision History Doc Rev 11054A Comments Change Request Ref 1st issue...
Страница 1132: ...1132 11054A ATARM 27 Jul 11 SAM9X25...
Страница 1144: ...xii 11054A ATARM 27 Jul 11 SAM9X25...