AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 13

no-image

AN2103

Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2103
MOTOROLA
3.4.5 Motorola
Components used
4 Software Description
4.1 Motorola
LIN Drivers and
API
master. The switches are input to Port D and allow each node to have a
status and identifier value that can be changed in real time and
transmitted on the LIN bus.
The LEDs and switches are positioned at the edge of the boards and can
easily be removed and the board used to drive an actual application. For
example, the port lines that interface to the LEDs and switches could be
connected to a power drive board and could be used to control motors
of a mirror module. This makes the board very flexible and allows quick
prototyping of LIN applications.
MC68HC908AZ60 – General purpose flash MCU with CAN.
MC33399 – LIN Physical interface.
MC33388 – Low speed, fault tolerant, CAN physical interface.
The demo comprises a single master and 12 slave nodes. The master
software is responsible for scheduling LIN messages, providing a CAN
to LIN gateway and general communications. The slave software
interrogates all header frames transmitted on the bus and either receives
a response frame from another slave or transmits a response frame on
to the bus. Each slave waits for a pre-configured message, decodes the
command and either outputs the data to its LED port, if it is a
NodeX_Write or broadcast message, or transmits a status message to
the LIN network, if a NodeX_Read message was detected. The code for
each slave is practically identical, the only difference being the
messages configured are specific to individual nodes. See
details.
The master and slave code implementations both use the Motorola
HC08 LIN low level drivers to manage all the LIN communications. The
drivers and the application code for the demo are described in this
section. All data flow diagrams and flow charts are included. Refer to the
appendix for code listing.
The driver provides the full LIN protocol eliminating the application code
from implementing the LIN low level kernel. The user interfaces with the
drivers, statically at compile time and dynamically at run time through an
API. Two versions of the drivers exist: one with a custom Motorola API
and the second with the LIN API. The project used the Motorola API
drivers.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Motorola LIN Drivers and API
Software Description
Table 1
for
13

Related parts for AN2103