AN2633 Freescale Semiconductor / Motorola, AN2633 Datasheet - Page 33

no-image

AN2633

Manufacturer Part Number
AN2633
Description
LIN Drivers for SLIC Module on the MC68HC908QL4
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
break;
case 0x14:
break;
case 0x18:
break;
case 0x1C:
break;
case 0x20:
break;
case 0x24:
break;
case 0x28:
break;
case 0x2C:
break;
case 0x30:
break;
//________________________________________________________________________TEST___
//_________________________________________________________________________
if(SLCID==LINID)
//_________________________________________________________________________
if(SLCID==0x97)
//_________________________________________________________________________
ID_found = 0;
LINSleep = 0;
if (ID_found == 0)
temp_msg_buffer[1] = SLCD1;
}
{
ID_found = 1;
SLCD0
SLCD1
SLCDLC
}
{
ID_found = 1;
SLCDLC = 0x41;
}
SLCDLC = 0x00;
{
SLCC1_IMSG = 1;
}
//___________RX Buffer Full - No errors____________
//___________Bit-Error_____________________________
//___________RX Buffer Overrun_____________________
//___________<reserved>____________________________
//___________Checksum Error________________________
//___________Byte Framing Error____________________
//___________ID received correctly - parity OK_____
//
//___________ID Parity Error______________________
= 0;
= 0xC1;
LIN Drivers for SLIC Module on the MC68HC908QL4
Freescale Semiconductor, Inc.
= LINdata;
For More Information On This Product,
Perform ID lookup
Go to: www.freescale.com
// Alpha sample workaround - write DLC = 0 before IMSG=1;
#warning "ALPHA SAMPLE WORKAROUND"
// Set IMSG bit to ignore ID if not found!
// Check ID
// Set ID found flag
// Load TX buffers
// Write DLC code to start TX - STD CHECKSUM
// Test message from master
// --------- test code....
// Set ID found flag
// Write DLC code = RX, STANDARD CHECKSUM, 2 bytes
// reset ID_found
// (should do anyway on re-entry into ISR)
// Clear LINSleep flag-due to bus activity
// Load RAM from RX buffers
Appendix B – Software Listings – SLIC_LINdriver.c
AN2633/D
33

Related parts for AN2633