23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LIN-Bus 45-7<br />

times, followed by a so-called delimiter that must be at least 1 bit time long (2 bits are recommended).<br />

The slaves recognize this break after 11 bit times. This recognition can be carried out with the break<br />

detection feature of a standard SCI. The master generates a break signal that is about two bit times longer<br />

to ensure a safe synchronization to the master clock, for slaves without a crystal.<br />

45.5.2 Sync Byte Field<br />

The sync byte field follows the break field and supports the baud rate estimation. The master sends a<br />

0x55 data byte on which the slaves synchronize themselves. The slaves measure the time period between<br />

the falling edge of the start bit and those of the seventh data bit. The value is divided by 8, for example,<br />

by simply shifting the measured value three bits to the right. Only the falling edges are allowed to be<br />

used for the measurement of the baud rate because they are considerably steeper than rising ones and<br />

therefore provide more exact results. The different edge steepness is due to the characteristics of the<br />

physical layer, as the bus level is actively drawn to “zero” level by a transistor, while the “one” level is<br />

raised by a pull-up resistor.<br />

When the baud rate is adjusted on a standard SCI device, it must be ensured that it does not deviate<br />

by more than the allowed 2% from the master clock.<br />

45.5.3 Identifier<br />

LIN uses a message ID in the third and final byte of the header. This byte consists of 6 bits for the ID and<br />

two parity bits, and thus it is designated as the PID. The 64 possible IDs are shown in Table 45.1.<br />

Up until version 1.3 of the LIN specification, bits four and five of the ID had a special meaning. When<br />

the IDs 0–59 were used for the transmission of signals, bit four and five defined the number of data<br />

bytes, as seen in Table 45.2. This table does not exist for LIN version 2.0 and later.<br />

The implicit coding of the data length in the identifier is no longer obligatory since LIN version 1.2.<br />

Now a field length of one to eight data bytes is possible for every ID. The field length must be indicated<br />

at the message definition in the section “Frames” of the LDF.<br />

Table 45.1 Partitioning of the Range of Values<br />

of the “Protected Identifiers”<br />

Identifier<br />

0x0–0x3B (0–59)<br />

0x3C (60)<br />

0x3D (61)<br />

0x3E/0x3F<br />

62/63<br />

Meaning<br />

Transmission of signals<br />

Master request frame (MRF) for the<br />

configuration and diagnostics<br />

Slave response frame (SRF) to ID 0x3C<br />

Reserved for future expansions of the<br />

protocol<br />

Table 45.2 Meaning of Bit 4 and 5 of<br />

the Identifiers (Mandatory until<br />

Version 1.2; Optional from Version 1.3;<br />

Invalid from Version 2.0)<br />

ID5 ID4 Number of Data Bytes<br />

0 0 2<br />

0 1 2<br />

1 0 4<br />

1 1 8<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!