AN2432 Freescale Semiconductor / Motorola, AN2432 Datasheet - Page 21

no-image

AN2432

Manufacturer Part Number
AN2432
Description
LIN Sample Application for the MC68HC908EY16 Evaluation Board
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Appendix IIc – slave.cfg (LIN configuration file)
#ifndef LINCFG_H
#define LINCFG_H
/******************************************************************************
*
*
*
* Functions:
*
*
* Notes:
*
******************************************************************************/
#if defined (HC08)
/*
*/
/* Selects 9600 baud rate if using a 9.8304MHz crystal */
//#define LIN_BAUDRATE
/* Selects 9600 baud rate if using a 8MHz crystal */
#define LIN_BAUDRATE
/*
*/
#define LIN_IDLETIMEOUT
#endif /* defined (HC08) */
#endif /* !define (LINCFG_H) */
MOTOROLA
This definition configures the LIN bus baud rate.
This value shall be set according to target MCU
SCI register usage.
HC08EY16: the 8-bit value will be masked by 0x37
and put into SCBR register.
This definition sets the number of user-defined time clocks
(LIN_IdleClock service calls), recognized as "no-bus-activity"
condition. This number shall not be greater than 0xFFFF.
Copyright (C) 2001 Motorola, Inc.
LIN Driver static configuration file for LIN08 Slave sample
with Motorola API
LIN Sample Application for the MC68HC908EY16 Evaluation Board
Freescale Semiconductor, Inc.
For More Information On This Product,
0x30u
500u
0x04u
Go to: www.freescale.com
Appendix IIc – slave.cfg (LIN configuration file)
AN2432/D
21

Related parts for AN2432