20.4.2.2.1 LIN Commander/Responder Transmit

The following procedure is used for Commander/Responder transmit:

  1. Configure the clock input and baud rate as detailed in Clocking and Baud Rate Configuration.
  2. Configure LIN mode by writing ‘0b1100’ to the MODE[3:0] bits.
  3. Configure the checksum type by writing the C0EN bit.
  4. Set the ON, RXEN and TXEN bits.
  5. 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:

  1. Wait for the RXBKIF bit to set.
  2. Write the number of bytes to transmit to Parameter 2 (P2[7:0]).
  3. Write data to transmit to the UxTXB register.