AN2503 Freescale Semiconductor / Motorola, AN2503 Datasheet - Page 30

no-image

AN2503

Manufacturer Part Number
AN2503
Description
Slave LIN Driver for the MC68HC908QT/QY Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2503/D
Modify trimcfg.h
Configure
linmsgid.h
Write main()
30
Modify this file according to the needs of the application. Review
Description
implementation for 9600 bps is used.
This file must include the definition of all the IDs used in the application. Review
linmsgid.h Description
defined:
The main files already include the definition for configuration registers and LIN
peripherals, but they can be changed by the user if the application requires it.
LIN is a one-master/multi-slave protocol, and slaves can’t participate on the
bus until they are required to. The buffers are updated in the interrupts, and it’s
the user’s responsibility to ensure their proper use. The main file for
AN2503SW contains an example of LIN use. Also, keep in mind that any
defined buffer can be accessed directly — including the resolver.h file. Any
access to the buffers can be direct or indirect (through the use of pointers) to
help increase readability.
In AN2503SW, the example sends with ID 0x1B. The first five bytes of the
buffer receives ID 0x1A and two error counters (one for reception and one for
transmission).
Notice that the sixth element is undefined. Because the buffer isn’t initialized,
the value will be undefined with the actual RAM value.
Slave LIN Driver for the MC68HC908QT/QY Family
Freescale Semiconductor, Inc.
For More Information On This Product,
for a complete description on this file. In this example, the normal
Go to: www.freescale.com
0x1A
0x1B
0x1C
0x1D
0x1E
0x3C
0x00
ID
Table 12. Example ID Definitions
for using this file. In this example, the following IDs are
Transmission
Transmission
Transmission
Reception
Reception
Reception
Reception
Mode
Length
2
8
8
4
2
2
8
trimcfg.h
MOTOROLA

Related parts for AN2503