AN2633 Freescale Semiconductor / Motorola, AN2633 Datasheet - Page 31

no-image

AN2633

Manufacturer Part Number
AN2633
Description
LIN Drivers for SLIC Module on the MC68HC908QL4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Appendix B – Software Listings – SLIC_LINdriver.c
;********************************************************************************************
//_______________________________________________________________________________
// Title: SLIC_LINdriver.c
//
// Assembler:
// Compiler:
//
// Revision History:
// Rev #
// ------
//
//
// Filename:
// Author:
// Revision:
//
// Functions:
//
// History:
//
// Description:
//
// Notes:
//
//_______________________________________________________________________________
#include "global.h"
#include "MC68HC908QL4.h"
#include "SLIC_LINdriver.h"
extern unsigned char temp_msg_buffer[8];
extern unsigned char LINdata;
extern unsigned char LINID;
extern unsigned char BusOff;
extern unsigned char LINSleep;
//+-----------------------------------------------------------------------------+
//|
//|
//|
//|
//|
//|
//|
//+-----------------------------------------------------------------------------+
void SLIC_Init(void)
MOTOROLA
0.1
{
SLCC1_INITREQ = 0;
while(SLCS_INITACK==1){;;}
SLCC2_SLCWCM = 0;
SLIC_Init - Initializes SLIC module
Configures SLIC for:
-----------
1. LIN or BTM mode operation
2. Clock Operation in MCU Wait Mode
3. Receive filter prescaler adjustment for data rate
4. Bit timing setting (BTM mode)
11-Aug-03
Date
P&E Microcomputer Systems - CASM08Z
Codewarrior....
LINQL4-C/src/SLIC_LINdriver.c
Matt Ruff
0.1
SLIC module routines
Who
------
MR
LIN Drivers for SLIC Module on the MC68HC908QL4
Freescale Semiconductor, Inc.
For More Information On This Product,
Comments
------------------------------------------------
Initial release -
Go to: www.freescale.com
// Clear INITREQ bit in SLIC
// Wait for INITACK to clear
// Wait Clock Mode
// Temporary storage of SLIC buffer contents
Copyright (c) Motorola 2003
(v3.16)
Appendix B – Software Listings – SLIC_LINdriver.c
|
|
|
|
|
|
|
AN2633/D
31

Related parts for AN2633