AN2503 Freescale Semiconductor / Motorola, AN2503 Datasheet - Page 18

no-image

AN2503

Manufacturer Part Number
AN2503
Description
Slave LIN Driver for the MC68HC908QT/QY Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2503/D
Driver Configuration
lincfg.h Description
18
To provide the required functionality, modularity, and small code size, three
files must be configured with user options. These files contain definitions for
enabling/disabling different functional modules, defining IDs to be used, and
other configuration options. All macros must be configured properly; if the
declaration is not as stated, the driver may not work properly.
This file is used to configure the LIN driver as needed by the application. Three
main parts can be distinguished:
All of the code increments shown in
and they can reduce code as much as 300 bytes, leaving only 655 bytes of
code.
Slave LIN Driver for the MC68HC908QT/QY Family
Freescale Semiconductor, Inc.
For More Information On This Product,
Modular macros — Depending on the options enabled, code and
overhead will increase. Depending on the combination used, the desired
baud rate may not be reached.
the possible values, and the increment in code. The common
implementation of this driver (based on LIN specifications) uses
950 bytes with the following options:
Constants and media access macros — Options changeable according
to the hardware used and depending on the application.
explains these options and the possible values.
Auto-calculated macros — Defined automatically with modular macros
options and allow the use of bidirectional mode and different channels
from the timer.
Includes main.c example.
Using internal oscillator
9600 baud rate
Rx and Tx pins
Timer channel 1 is used
Using a transceiver
Error checking (bit error, parity and checksum)
Sleep mode V1.2 enabled
No quick commands
Using smaller ROM table with seven IDs defined
Go to: www.freescale.com
Table 4
explains all the macros defined here.
Table 2
Table 2
are based on these arguments,
explains all the options available,
Table 3
MOTOROLA

Related parts for AN2503