AN2503 Freescale Semiconductor / Motorola, AN2503 Datasheet - Page 24

no-image

AN2503

Manufacturer Part Number
AN2503
Description
Slave LIN Driver for the MC68HC908QT/QY Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2503/D
linmsgid.h
Description
24
Use this file to define all the valid identifier fields and their functions. Code size
depends on the number of IDs defined. These IDs and the total number of IDs
used must be defined correctly to ensure proper functionality of the LIN driver.
If the application requires the use of many IDs, use the FASTER_TABLE
definition described in
will remain the same and the FindInTable() function will not be used, reducing
the overhead. If SMALLER_TABLE definition is used, the code will be smaller
and the FindInTable() function will look up the ID(s) in the ROM table. In this
case, each ID defined will increase code size by four bytes.
The ID definition must follow these steps:
Table 7
1. Define the location of ROM table in MESSAGES_ROM_ADDRESS
2. Define number of IDs to use (including reserved commands if used) in
3. Comment or erase all the unused IDs and define the ones to be used.
Slave LIN Driver for the MC68HC908QT/QY Family
Freescale Semiconductor, Inc.
u8_MAX_EXPECTED
u8_MID_EXPECTED
u8_MIN_EXPECTED
For More Information On This Product,
constant.
LIN_MSGS.
LIN_MSG_xx must contain the direction of the ID and
LIN_MSG_xx_LEN must contain the data length
u8_TO_SCALE
shows all the constants used in this file.
MAX_VALUE
MIN_VALUE
Table 6. Constants Defined in trimcfg.h (Continued)
Macro
Go to: www.freescale.com
Table
3. This is recommended because the ROM table
Maximum possible value to be read
Minimum possible value to be read
Value to be added in order to use only chars and
Expected scaled value.
Compared with the read value to check variation.
Maximum allowed value based on the variation
Minimum allowed value based on the variation
(3.2 MHz + 25%).
(3.2 MHz – 25%).
discard the high byte.
defined.
defined.
Description
(1)
MOTOROLA

Related parts for AN2503