AT32UC3C1512C Automotive Atmel Corporation, AT32UC3C1512C Automotive Datasheet - Page 612

no-image

AT32UC3C1512C Automotive

Manufacturer Part Number
AT32UC3C1512C Automotive
Description
Manufacturer
Atmel Corporation
25.6.11
25.6.11.1
9166C–AVR-08/11
LIN Frame Handling
Master Node Configuration
What comes next depends on the NACT configuration:
• Write TXEN and RXEN in CR to enable both the transmitter and the receiver.
• Write MODE in MR to select the LIN mode and the Master Node configuration.
• Write CD and FP in BRGR to configure the baud rate.
• Write NACT, PARDIS, CHKDIS, CHKTYPE, DLCM, FSDIS and DLC in LINMR to configure
• Check that TXRDY in CSR is set to “1”
• Write IDCHR in LINIR to send the header
• Case 1: NACT = PUBLISH, the USART sends the response
• Case 2: NACT = SUBSCRIBE, the USART receives the response
• Case 3: NACT = IGNORE, the USART is not concerned by the response
the frame transfer.
– Wait until TXRDY in CSR rises
– Write TCHR in THR to send a byte
– If all the data have not been written, redo the two previous steps
– Wait until LINTC in CSR rises
– Check the LIN errors
– Wait until RXRDY in CSR rises
– Read RCHR in RHR
– If all the data have not been read, redo the two previous steps
– Wait until LINTC in CSR rises
– Check the LIN errors
– Wait until LINTC in CSR rises
– Check the LIN errors
AT32UC3C
612

Related parts for AT32UC3C1512C Automotive