AN2503 Freescale Semiconductor / Motorola, AN2503 Datasheet - Page 23

no-image

AN2503

Manufacturer Part Number
AN2503
Description
Slave LIN Driver for the MC68HC908QT/QY Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
trimcfg.h
Description
MOTOROLA
This file is used to define all macros and constants used for the trimming
process defined in Trimming. The definitions used here are calculated for the
recommended bit rates for LIN. If the baud rate will be changed, the user must
configure this file properly including according to the section above.
All the constants declared in this file can be seen in
description.
ACK_INPCAPTUREINT_CH
Slave LIN Driver for the MC68HC908QT/QY Family
Freescale Semiconductor, Inc.
TIM_CH_INT_VECTOR
START_BIT_COUNT
For More Information On This Product,
STOP_BIT_COUNT
ONEPIN_TX_HIGH
ONEPIN_TX_LOW
EXPECTED_VAL
TRIM1_COUNT
TRIM2_COUNT
SET_TX_HIGH
SET_TX_LOW
PRESCALER
is_RX_HIGH
INT_COUNT
TSCCHREG
is_RX_LOW
VARIATION
PS_VALUE
TCHLREG
TSCCHF
Macro
Macro
Go to: www.freescale.com
Table 5. Auto Calculated Macros In lincfg.h
Table 6. Constants Defined in trimcfg.h
Timer channel control register
Timer channel overflow flag
Timer channel interrupt vector
Timer channel interrupt acknowledge
Timer channel low register
Set high Tx output pin if using bidirectional mode
Set low Tx output pin if using bidirectional mode
Check whether Rx pin is high
Check whether Rx pin is low
Set Tx pin high
Set Tx pin low
Allowed variation for internal oscillator.
Defined by user.
Number of bit counts for the start bit.
Number of bit counts to wait for the first trim
Number of bit counts to wait for the second trim
Number of bit counts for the stop bit.
Number of bit counts elapsed from offset to trim
Timer prescaler to perform a correct trimming.
Value loaded into timer control register to set
Expected value to be read if the internal clock is
calculation.
calculation.
calculation.
prescaler. Prescaler = 2
3.2 MHz.
Description
Description
Table 6
PS_VALUE
with a brief
.
Driver Configuration
AN2503/D
23

Related parts for AN2503