Skip to content

LIN Bus Timing Calculator

Calculate LIN bus bit time, break field length, frame time, and maximum frame rate for automotive LIN network design.

LIN 2.2A nominal frame · 34 + 10(N + 1) bit timesAPI slug lin-bus-timing

Sign in to saveSave

Inputs

Example19 200 Bd, 8 data bytes in a 10 ms slot
LIN baud rate (typical: 2.4, 9.6, 10.4, 19.2 kbps)

100 bps to 20 kbps

Number of data bytes in the response field (1-8 per LIN spec)
bytes

1 to 8 bytes

The schedule table's time for this frame; LIN 2.x needs it to hold the frame at its 1.4 × nominal maximum

100 µs to 1 s

Maximum Frame TimePASS
9.042ms
at most 10 ms
Frame Time
6.458ms
Bit Time
52.08µs
Break Field Length
677.1µs
Max Frame Rate
154.8frames/s

One frame on the bus

LINBREAKSYNCPIDD1D2D3D4D5D6D7D8CS0x550x500x110x220x330x440x550x660x770x880x49break 677 µsheader 1.77 msresponse 4.69 ms0 s1 ms2 ms3 ms4 ms5 ms6 ms

sample point

Standard values of Baud Rate

Select a row to use it
Baud RateBit TimeFrame TimeMaximum Frame TimeStatus
416.7µs51.67ms72.33msCHECK
104.2µs12.92ms18.08msCHECK
96µs11.9ms16.67msCHECK
52.08µs6.458ms9.042msPASS
Bus LoadBL
96.9%

Formula

LIN Specification Package Revision 2.2A
Tbit=1baud_rate,Tframe=(13+1+10+10+10N+10)⋅TbitT_{bit} = \frac{1}{baud\_rate},\quad T_{frame} = (13+1+10+10+10N+10) \cdot T_{bit}
SymbolQuantityYour value
TbitBit time (μs)52.08 µs
NNumber of data bytes8 bytes
TframeTotal frame time (μs)6.458 ms

Assumptions

5 items
  1. 01The frame is nominal (LIN 2.x): a break of 13 dominant bits and a one-bit delimiter, the sync byte, the protected identifier, the data bytes and the checksum, each byte a start bit, eight data bits and a stop bit: 34 + 10·(N + 1) bit times, with no space between bytes and none before the response.
  2. 02The maximum frame time is 1.4 × nominal (LIN 2.x TFrame_Maximum), the allowance for inter-byte spaces and the response space; the frame slot you give must hold it.
  3. 03The bit time is 1/baud rate; the maximum frame rate is one nominal frame after another, and the bus load assumes four bit times between frames, an approximation of this calculator rather than a LIN figure.
  4. 04The clock tolerances LIN allows the master and the slaves, and the slaves' synchronisation on the sync byte, are not modelled.
  5. 05The drawing is one frame of the identifier you give: its parity bits P0 and P1 as LIN 2.x computes them, data bytes 0x11, 0x22 and so on, the enhanced checksum over the identifier and the data (the classic checksum, over the data alone, for identifiers 60 to 63), and the slave's samples on the sync byte.

Worked example

SAE J2602 at 10 417 Bd, 4 data bytes

A J2602 body network runs at 10 417 Bd and a frame carries 4 data bytes in a 20 ms schedule slot. How long is the frame, and does the slot hold its maximum?

StepExpressionResult
Bit time1/10 417 Bd96 µs
Break field13 × 96 µs1.248 ms
Nominal frame(34 + 10 × (4 + 1)) × 96 µs8.064 ms
Maximum frame, against the 20 ms slot1.4 × 8.064 ms11.29 ms

How it works

This calculator determines LIN bus frame timing parameters for automotive body electronics. Automotive engineers and ECU designers use it to configure master-slave scheduling per LIN 2.2A specification (ISO 17987). LIN is a single-wire, single-master protocol operating at 1-20 kbps, designed for cost-sensitive applications where CAN's complexity is unnecessary. LIN protocol timing is standardized in ISO 17987-1 through ISO 17987-7 (Road vehicles — Local Interconnect Network), which supersede the LIN Consortium's LIN 2.2A specification document published in 2010. Each frame consists of: break field (>=13 bits low), break delimiter (1 bit high), sync byte (0x55 pattern), protected identifier (6-bit ID + 2-bit parity), 1-8 data bytes, and enhanced checksum. At 19.2 kbps (the most common rate), bit time is 52.08 microseconds. The frame slot time for an 8-byte message is calculated as: T_frame = T_header + T_response = (34 + 10n) x T_bit = (34 + 80) x 52.08 us = 5.94 ms. LIN master scheduling must allocate frame slots with 40% timing margin per LIN 2.2A Section 2.4.2 to accommodate slave response jitter.

Practical tips

  • Per LIN 2.2A Section 2.3.1.1, master break field must be >=13 bits (676 us at 19.2 kbps) - use 14-15 bits for margin against slave detection jitter
  • Schedule event-triggered frames (multiple slaves respond to same ID) with collision resolution time of 2x normal slot to handle simultaneous responses
  • For diagnostic frames (ID 0x3C/0x3D), allocate 8-byte response slot even if typical data is shorter - diagnostics always use 8-byte PDUs

Common mistakes

  • Setting bit rate to exactly 19200 Hz - LIN specification requires +/-14% tolerance (16512-21888 Hz), but slaves at edge cases may fail sync
  • Allocating frame slots without 40% margin, causing schedule overrun when slaves respond at maximum allowed delay (8 bit times per byte)
  • Using classic checksum (sum of data bytes only) instead of enhanced checksum (includes PID) for LIN 2.x slaves, causing 100% checksum failures

Frequently asked questions

2 questions
What is the maximum LIN bus speed?

LIN 2.2A specifies 1-20 kbps, with 19.2 kbps being most common in automotive. Higher rates are limited by single-wire noise immunity and slave oscillator tolerance (+/-14%). At 20 kbps, bit time is 50 us; at 9.6 kbps, bit time is 104 us. CAN should be used for rates above 20 kbps.

How is a LIN frame different from a CAN frame?

LIN uses time-division multiplexing with master-controlled scheduling; CAN uses CSMA/CD with priority arbitration. LIN frame: 34-bit header + 10-bit per data byte + 10-bit checksum (3.3-8.3 ms at 19.2 kbps). CAN frame: 44-bit overhead + 8-bit per data byte (0.2-0.3 ms at 500 kbps). LIN costs USD 0.30/node vs CAN USD 1.50/node.

Shop Components

As an Amazon Associate we earn from qualifying purchases.

  • USB-UART AdapterUSB to serial adapter for protocol debugging and flashingAmazon →
  • USB Logic Analyzer8-channel USB logic analyzer for capturing digital bus trafficAmazon →