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
Inputs
One frame on the bus
sample point
Standard values of Baud Rate
Select a row to use it| Baud Rate | Bit Time | Frame Time | Maximum Frame Time | Status |
|---|---|---|---|---|
| 416.7µs | 51.67ms | 72.33ms | CHECK | |
| 104.2µs | 12.92ms | 18.08ms | CHECK | |
| 96µs | 11.9ms | 16.67ms | CHECK | |
| 52.08µs | 6.458ms | 9.042ms | PASS |
- Bus LoadBL
- 96.9%
Formula
LIN Specification Package Revision 2.2A
| Symbol | Quantity | Your value |
|---|---|---|
| Tbit | Bit time (μs) | 52.08 µs |
| N | Number of data bytes | 8 bytes |
| Tframe | Total frame time (μs) | 6.458 ms |
Assumptions
5 items
- 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.
- 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.
- 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.
- 04The clock tolerances LIN allows the master and the slaves, and the slaves' synchronisation on the sync byte, are not modelled.
- 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?
| Step | Expression | Result |
|---|---|---|
| Bit time | 1/10 417 Bd | 96 µs |
| Break field | 13 × 96 µs | 1.248 ms |
| Nominal frame | (34 + 10 × (4 + 1)) × 96 µs | 8.064 ms |
| Maximum frame, against the 20 ms slot | 1.4 × 8.064 ms | 11.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.