SLLA383A February   2018  – August 2022 SN65HVDA100-Q1 , SN65HVDA195-Q1 , TLIN1022-Q1 , TLIN1029-Q1 , TLIN2022-Q1 , TLIN2029-Q1 , TMS320F28P550SJ , TMS320F28P559SJ-Q1

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
    1. 1.1 LIN Specification Progression
    2. 1.2 Workflow Concept
  4. 2Network Architecture
    1. 2.1 General Layout of the LIN Bus
    2. 2.2 Serial Communication Principles
    3. 2.3 Commander-Responder Principle
    4. 2.4 Message Frame Format
  5. 3Physical Layer Requirements
    1. 3.1 Bus Signaling Fundamentals
    2. 3.2 Pullup Values
    3. 3.3 Threshold Values
    4. 3.4 Bit-Rate Tolerance and Timing Requirements
    5. 3.5 Synchronization and Bit Sampling
    6. 3.6 Duty Cycle
  6. 4Filtering, Distance Limitations, Nodes on Bus
    1. 4.1 EMI and Signal Conditioning
    2. 4.2 ESD and Transients
    3. 4.3 Distance and Node Limitations
  7. 5LIN Transceiver Special Functions
    1. 5.1 Low-Power Modes
      1. 5.1.1 Sleep Mode
      2. 5.1.2 Standby Mode
    2. 5.2 Wakeup
      1. 5.2.1 Pin Wakeup
      2. 5.2.2 LIN Wakeup
      3. 5.2.3 Dominant Timeout
  8. 6Advantages and Disadvantages
  9. 7Conclusion
  10. 8Revision History

Message Frame Format

Every LIN message has a specific structure: the first part being the token and the second part data (the Header and the Response). The token is always transmitted by the commander task, and is divided up into the sync break, sync field, and the protected identifier (PID). The sync break and sync field are used to have all the responders on the LIN bus synchronized to the commander's timing (without the need of any crystal or oscillator), and the PID is what defines which responder responds, receives, or ignores the message header being sent. The header in total consists of at least 13 bits for the SYNC break, 1 delimiter bit, 10 SYNC field bits (1 start bit, 8 bits for synchronization, and 1 stop bit), and 10 identifier bits (1 start bit, 6 bits for the identifier, 2 bits for parity, and 1 stop bit).

GUID-24D4AE9E-30B6-4C03-AA6B-35E7184CDD28-low.gifFigure 2-2 LIN Frame Header Explanation

The Data (response) portion of the message is sent by the responder task, which can be sent by the commander or the responder node depending on the PID “instruction”. The Response is broken up into data bytes (up to 8), and a checksum. The checksum is a protection scheme for the data bytes, it verifies that the message sent is what was intended, and that no errors were introduced during transmission. Any node can receive the frame response, but which node actually does use it, is dependent on the LDF. The response in total consists of 10 bits for each byte of data (1 start bit, 8 bits for data, 1 stop bit), for up to 8 data bytes, and 10 bits for checksum (1 start bit, 8 bits for checksum solution, 1 stop bit).

GUID-2F42B9FC-4397-4EA3-87A0-7D9E930A9159-low.gifFigure 2-3 LIN Frame Response