AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 52

no-image

AN2103

Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
52
Application Note
/******************************************************************************
Function Name
Engineer
Date
Parameters
Returns
Notes
******************************************************************************/
void DefaultHandler(void)
/******************************************************************************
Function Name
Engineer
Date
Parameters
Returns
Notes
******************************************************************************/
void InitialiseMSCAN08(void)
/******************************************************************************
Task Name
Engineer
Date
Parameters
Returns
Notes
******************************************************************************/
}
{
}
{
AZ60_MSCAN08.cmcr0.bit.sftres = 1;
AZ60_MSCAN08.cbtr0.byte = CBT0_125K;
AZ60_MSCAN08.cbtr1.byte = CBT1_125K;
AZ60_MSCAN08.cid.mr.l = 0xFFFFFFFF;
AZ60_MSCAN08.cmcr0.bit.sftres = 0;
AZ60_MSCAN08.crier.bit.rxfie = 1;
while(!AZ60_MSCAN08.cmcr0.bit.synch)
}
case IDENT:
default:
}
;
DemoMode = BROADCAST;
BroadcastIndex = 0;
break;
DemoMode = IDENT;
break;
;
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
DefaultHandler
R38917
11/02/00
None
None
InitialiseMSCAN08
R38917
10/02/00
None
None
TimerB Overflow
R29414
none
none
Overflow period set at 1ms.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
// Put demo in broadcast mode
// Put demo in IDENT mode
//put CAN module in soft reset
//accept all messages
//release CAN module from soft reset
//enable CAN receive interrupts
//wait for CAN bus to synchronize
MOTOROLA
AN2103

Related parts for AN2103