AN2573 Freescale Semiconductor / Motorola, AN2573 Datasheet - Page 17

no-image

AN2573

Manufacturer Part Number
AN2573
Description
LINkits LIN Evaluation Boards
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
0x22, 0x23, 0x28, 0x29, 0x2A, 0x2B};
#if defined (CW12)
#endif /* defined (CW12) */
#if defined (COSMIC12)
#endif /* defined (COSMIC12) */
MOTOROLA
unsigned char idList[16] = {0x10, 0x11, 0x12, 0x13, 0x18, 0x19, 0x1A, 0x1B, 0x20, 0x21,
char activeList[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
char messageList = 16;
Time = 0;
/* Initialize driver */
LIN_Init();
/* Enable LED display */
DDRB = 0xFF;
/* Enable interrupt */
asm cli;
_asm("cli");
/* Test message for comms debug */
MsgSent[0] = 0x55;
MsgSent[1] = 0xAA;
/* Update message */
ret = LIN_PutMsg( 0x17, MsgSent );
/* Send a request for message */
ret = LIN_RequestMsg( 0x17 );
/* Wait for message processing */
do
{
}
while( ret & LIN_STATUS_PENDING );
/* Check sent message status */
ret = LIN_MsgStatus( 0x17 );
if ( ret != LIN_OK )
{
PORTB = 0xFF;
/* Initialise RTI */
InitDelay(16000);
/* Check/Enable LIN interface */
LINActive();
ret = LIN_DriverStatus();
ErrCount = 1;
while(1)
{
}
Freescale Semiconductor, Inc.
For More Information On This Product,
LINkits LIN Evaluation Boards
Go to: www.freescale.com
MC68HC9S12C32 Master Software Listings
AN2573/D
17

Related parts for AN2573