12.12.2012 Views

Xcell Journal: The authoritative journal for programmable ... - Xilinx

Xcell Journal: The authoritative journal for programmable ... - Xilinx

Xcell Journal: The authoritative journal for programmable ... - Xilinx

SHOW MORE
SHOW LESS

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

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

In addition to CAN, LIN also complements<br />

Media Oriented Systems Transport<br />

(MOST) <strong>for</strong> high-speed data rates and<br />

FlexRay <strong>for</strong> safety-critical applications such<br />

as steer- and brake-by-wire. Figure 1 shows<br />

the relative cost per node and speed of various<br />

automotive networks.<br />

Conceived in 1998, the LIN consortium<br />

comprises car manufacturers Audi,<br />

BMW, DaimlerChrysler, Volvo,<br />

and Volkswagen. LIN is an inexpensive<br />

serial bus used <strong>for</strong> distributed body control<br />

electronic systems in vehicles. It enables<br />

effective communication <strong>for</strong> smart sensors<br />

and actuators where the bandwidth and versatility<br />

of CAN is not required. Typical<br />

applications are door control (window lift,<br />

lock, and mirror control), seats, climate regulation,<br />

lighting, and rain sensors. In these<br />

units the cost-sensitive nature of LIN<br />

enables the introduction of mechatronic elements<br />

such as smart sensors, actuators, or<br />

illumination. <strong>The</strong>y can be easily connected<br />

to the car network and become accessible to<br />

all types of diagnostics and services. Outside<br />

the automotive sector, LIN is used <strong>for</strong><br />

machine control as a sub-bus <strong>for</strong> CAN.<br />

A LIN network comprises one master<br />

node and one or more slave nodes. All<br />

nodes include a slave communication task<br />

that is split into a transmit and a receive<br />

task, while the master node includes an<br />

additional master transmit task. <strong>The</strong> communication<br />

in an active LIN network is<br />

always initiated by the master task: the<br />

master sends out a message header that<br />

comprises the synchronization break, synchronization<br />

byte, and message identifier.<br />

Exactly one slave task is activated upon<br />

reception and filtering of the identifier,<br />

which starts the transmission of the message<br />

response. <strong>The</strong> response comprises two,<br />

four, or eight data bytes and one checksum<br />

byte. <strong>The</strong> header and the response part<br />

<strong>for</strong>m one message frame.<br />

<strong>The</strong> identifier of a message denotes the<br />

content of a message but not the destina-<br />

25M<br />

10M<br />

1M<br />

125K<br />

20K<br />

LIN<br />

Time Triggered<br />

Master/Slave<br />

Single Wire, No Crystal<br />

tion. This communication concept enables<br />

the exchange of data in various ways: from<br />

the master node (using its slave task) to one<br />

or more slave nodes, and from one slave<br />

node to the master node and/or other slave<br />

nodes. It is possible to communicate signals<br />

directly from slave to slave without the<br />

need <strong>for</strong> routing through the master node, or<br />

broadcasting messages from the master to all<br />

nodes in a network. <strong>The</strong> sequence of message<br />

frames is controlled by the master and may<br />

<strong>for</strong>m cycles including branches.<br />

Flexible LIN Solution<br />

Programmable logic has long been accepted<br />

as an effective way to bring designs to<br />

market quickly and also allow design flexibility<br />

right up to production and beyond.<br />

Historically, this time-to-market advantage<br />

and flexibility had to be balanced with<br />

higher component costs.<br />

But times have changed. PLDs cost<br />

much less and can now be used in highvolume,<br />

cost-sensitive applications such as<br />

mobile phones, PDAs, and automotive infotainment<br />

systems. To enable designs to be<br />

brought to market quickly, some <strong>Xilinx</strong><br />

AllianceCORE third-party IP providers<br />

SMARTwireX<br />

Copper Twisted Pair<br />

ByteFlight<br />

FlexRay, TTx<br />

Time Triggered (TDMA)<br />

Fault Tolerant<br />

2 x 2 Wire Optical<br />

CAN-A<br />

Arbitration (CSMA)<br />

Dual Wire<br />

CAN-B<br />

Arbitration<br />

Fault Tol. Dual Wire<br />

Bluetooth<br />

Wireless Bus<br />

1 2 5 10<br />

have developed robust and fully verified IP<br />

cores aimed at FPGA and CPLD architectures.<br />

One example is their LIN core, which<br />

occupies a fraction of a low-cost FPGA (<strong>for</strong><br />

example, 13% of a 200,000 system-gate<br />

device), thus leaving space <strong>for</strong> additional<br />

LIN nodes, CAN nodes, UARTs, soft core<br />

processors, or simply glue logic.<br />

<strong>The</strong> LIN interface – whether implemented<br />

in <strong>programmable</strong> logic, ASIC, or<br />

ASSP – is approximately half the cost of a<br />

CAN node.<br />

LIN Bus Benefits<br />

<strong>The</strong> reliability of LIN is high, but it does<br />

not have to meet the same levels as CAN.<br />

A LIN bus is designed to be a logical<br />

extension to CAN. It is scalable and lowers<br />

the cost of satellite nodes. No crystal<br />

oscillator or resonator is required. It is<br />

easy to implement, has a low reaction<br />

time (100 ms max), and predictable<br />

worst-case timing.<br />

<strong>The</strong> LIN bus can be implemented using<br />

just a single wire, while CAN needs two<br />

wires. This means that a LIN network can<br />

also be lower in cost through simpler connectors<br />

and wiring – thus also reducing the<br />

Winter 2004 <strong>Xcell</strong> <strong>Journal</strong> 93<br />

J1850<br />

D2B, MOST<br />

Token Ring<br />

Optical Bus<br />

Figure 1 – Relative cost per node of automotive networks<br />

Programmable logic has long been accepted as an effective way to bring<br />

designs to market quickly and also allow design flexibility...

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

Saved successfully!

Ooh no, something went wrong!