AN2343 Freescale Semiconductor / Motorola, AN2343 Datasheet - Page 10

no-image

AN2343

Manufacturer Part Number
AN2343
Description
HC908EY16 LIN Monitor
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2343/D
Appendix B – Source Files
ey16 giveaway.c
/*******************************************************************************
File Name
Originator
Location
Date Created
Current Revision
Function
Notes
******************************************************************************
Motorola reserves the right to make changes without further notice to any
product herein to improve reliability, function or design. Motorola does not
assume any liability arising out of the application or use of any product,
circuit, or software described herein; neither does it convey any license
under its patent rights nor the rights of others. Motorola products are not
designed, intended, or authorized for use as components in systems intended
for surgical implant into the body, or other applications intended to support
life, or for any other application in which the failure of the Motorola product
could create a situation where personal injury or death may occur. Should
Buyer purchase or use Motorola products for any such unintended or
unauthorized application, Buyer shall indemnify and hold Motorola and its
officers, employees, subsidiaries, affiliates, and distributors harmless
against all claims costs, damages, and expenses, and reasonable attorney fees
arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unauthorized use, even if such claim
alleges that Motorola was negligent regarding the design or manufacture of
the part.
Motorola and the Motorola logo* are registered trademarks of Motorola Ltd.
******************************************************************************/
#pragma DATA_SEG SHORT _DATA_ZEROPAGE
// Prototypes for functions
#include "ey16port.h"
#include "ey16config.h"
#include "ey16icg.h"
#include "linapi.h"
// Global register definition
#define EY16PORT (* ((tEY16PORT *)0x00))
#define EY16SI (* ((tEY16SI *)0x0D))
#define EY16CONFIG (* ((tEY16CONFIG *)0x1E))
#define EY16TIMER (* ((tEY16TIMER *)0x20))
#define EY16ICG (* ((tEY16ICG *)0x36))
#define EY16ATD (* ((tEY16ATD *)0x3C))
10
:
:
:
:
:
:
:
ey16 giveaway.c
C. Culshaw
EKB
8/3/02
1.0
Demonstrate LIN functionality using the EY16 Sample board
Utilises the HC908EY16 as a LIN monitor.
Software requires companion hardware,
’EY16 SAMPLE BOARD, BEAPP038’ & a hitachi LCD display
// Include the Motorola EY16 LIN drivers as part of the project
Freescale Semiconductor, Inc.
For More Information On This Product,
Copyright (c) Motorola 2002
Go to: www.freescale.com
HC908EY16 LIN Monitor
//Register block definition
//Serial ports
//Configuration registers
//ECT registers
//ICG registers
//ATD registers
MOTOROLA

Related parts for AN2343