23.03.2017 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

45-6 Industrial Communication Systems<br />

The duty cycle parameters are very important for the waveform of the LIN signal. They establish<br />

limits that ensure the correct determination of the logical bit value for the serial <strong>communication</strong> interface<br />

(SCI) of the receiver. They cover the issues of drift, oscillator tolerances, and asymmetries of<br />

receiver propagation delay rising edge with respect to the falling edge [TR0363].<br />

45.4.2 topology<br />

The specification does not regulate the wire topology. One can use a line, tree, or star topology. However,<br />

the length of the bus line must be limited to 40.m. The effective criterion of a bus line is the RC time<br />

constant τ. It covers the capacitances and loads of all nodes and the bus line. The RC time constant must<br />

be in the range of 1–5.μs.<br />

The number of nodes in a LIN cluster should not exceed 16. Every additional node lowers the network<br />

resistance by approximately 3%, because it integrates a parallel 30.kΩ resistor and can cause <strong>communication</strong><br />

errors under worst-case conditions.<br />

However, although the LIN baud rate is slow, the large voltage swing can be a source of radiated emissions;<br />

therefore, attention must be paid to physical wiring design and layout.<br />

45.5 LIN Message Frames<br />

The LIN message frame, as represented in Figure 45.7, is composed of a header and a message field,<br />

the so-called response. The header field consists of the break field (Synch_Break), the synch byte field<br />

(Synch_Field), and the identifier field, which is designated as the protected identifier (PID). The message<br />

field (response) consists of the data field with one to eight data bytes and the checksum. All fields<br />

except the break field are byte oriented and can be generated with the integrated serial interface of a<br />

microcontroller.<br />

Message activity is coordinated by the periodic execution of the LIN message schedule. For each<br />

frame slot, the master task transmits a frame header with a frame identifier (ID). All slaves evaluate<br />

the frame header, and a slave immediately transmits the frame response that is associated with the ID.<br />

The LIN frame is the combined frame header and response.<br />

45.5.1 Break Field<br />

A synchronization mechanism, which permits slaves without stabilized clock frequencies to synchronize<br />

themselves from the master clock, is implemented in the protocol. The break field informs the<br />

slaves in the network when the data transmission of a frame starts. The master sends a zero, 13 bit<br />

Frame<br />

Frame slot<br />

Idle<br />

Break<br />

field<br />

Header<br />

Sync field<br />

Response<br />

PID Data 1 Data 2 Data 3 Data N Checksum<br />

Inter-frame<br />

space<br />

Idle<br />

Break delimiter<br />

Inter-byte<br />

>=1 bit<br />

space<br />

(recommend 2 bits)<br />

Response<br />

space<br />

Inter-byte<br />

space<br />

Inter-byte<br />

space<br />

Inter-byte<br />

space<br />

FIGURE 45.7<br />

LIN message frame.<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!