AN2575 Freescale Semiconductor / Motorola, AN2575 Datasheet - Page 30

no-image

AN2575

Manufacturer Part Number
AN2575
Description
MC68HC908EY16 ESCI LIN Drivers
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2575/D
slave.cfg
#ifndef LINCFG_H
#define LINCFG_H
/******************************************************************************
*
*
*
* Functions:
*
*
* Notes:
*
******************************************************************************/
#if defined (HC08)
/*
#define LIN_SCIPRESCALER
/*
/*
/*
/*
/* Selects 9600 baud for a nominal 2.4576 MHz clock (ICGMR=32)
//#define LIN_BAUDRATE
/* Selects 9600 baud for a nominal 4.9152 MHz clock (ICGMR=64)
#define LIN_BAUDRATE
/* Enable ESCI (fractional divide prescaler) baudrate synch.
#define LIN_SYNC_SLAVE
/* The following numbers assume that the ESCI prescaller = 1
/* Selects 9600 baud rate if using a 4.9152MHz crystal
//#define LIN_BAUDRATE
/* Selects 9600 baud rate if using a 9.8304MHz crystal
//#define LIN_BAUDRATE
/* Selects 9600 baud rate if using an 8.000MHz crystal
//#define LIN_BAUDRATE
/* Selects 9600 baud rate if using a 16.000MHz crystal
//#define LIN_BAUDRATE
/* Selects 9600 baud rate if using a 32.000MHz crystal
//#define LIN_BAUDRATE
/*
#define LIN_IDLETIMEOUT
#endif /* defined (HC08) */
#endif /* !define (LINCFG_H) */
30
This definition configures the ESCI Prescaler divide ratio
This definition configures the LIN bus baud rate. This value
shall be set according to target MCU SCI register usage.
HC08EY16: the 8-bit SCBR value will be masked by 0x37.
The following numbers assume that the ESCI prescaller = 4
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
Freescale Semiconductor, Inc.
For More Information On This Product,
0x01u
500u
0x00u
0x03u
0x04u
0x30u
0x31u
0x32u
MC68HC908EY16 ESCI LIN Drivers
0x60u
Go to: www.freescale.com
/* divide by 4
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
MOTOROLA

Related parts for AN2575