20.4.2.2.1 LIN Commander/Responder Transmit
The following procedure is used for Commander/Responder transmit:
- Configure the clock input and baud rate as detailed in Clocking and Baud Rate Configuration.
- Configure LIN mode by writing ‘
0b1100
’ to the MODE[3:0] bits. - Configure the checksum type by writing the C0EN bit.
- Set the ON, RXEN and TXEN bits.
- Write the 6-bit PID value to Parameter 1 (P1[5:0]).
Writing to Parameter 1 will cause the Break, Sync and PID to be transmitted. If it is desired to complete the message frame in Commander/Responder mode, the following steps are used:
- Wait for the RXBKIF bit to set.
- Write the number of bytes to transmit to Parameter 2 (P2[7:0]).
- Write data to transmit to the UxTXB register.