AN2343 Freescale Semiconductor / Motorola, AN2343 Datasheet - Page 19

no-image

AN2343

Manufacturer Part Number
AN2343
Description
HC908EY16 LIN Monitor
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
}
/****************************************************************************
Function Name
Engineer
Date
Parameters
Returns
Notes
*****************************************************************************/
void Delay(unsigned long delay_var)
/****************************************************************************
Function Name
Engineer
Date
Parameters
Returns
Notes
*****************************************************************************/
void main(void)
MOTOROLA
}
{
char countloop = 0;
unsigned long mainloop = 0;
while (mainloop++ < delay_var)
}
{
LINDriverStatusType driver = LIN_STATUS_IDLE;
unsigned char count = 0x00, msg_update = 0x00, msg_sel;
Initialise_UUT();
Disable_ICG();
Initialise_Ports();
Initialise_Display();
asm cli;
Clear_Display();
while(1)
:
:
:
:
:
:
while (countloop++ < 200);
:
:
:
:
:
:
:
:
:
{
EY16PORT.ptc.bit.ptc1 = 0x01;
EY16PORT.ptc.bit.ptc0 = 0x01;
EY16PORT.pta.bit.pta6 = 0x01;
EY16PORT.pta.bit.pta5 = 0x01;
break;
Delay
C. Culshaw
06/09/02
delay_var - varies length of delay loop
None
Requires rewriting to make use of timer module
main
C. Culshaw
06/09/02
None
None
Continuously update the display with the latest data read
from the LIN bus.
Displays the id selected by PortC bit 2 (high = id 0x30,
low = id 0x20)
// Prepare display
Cursor_Home();
// Display "Message ";
for (count = 0; count < 8; count++)
{
Freescale Semiconductor, Inc.
For More Information On This Product,
Display_Data(Message[count], 0x01);
Go to: www.freescale.com
HC908EY16 LIN Monitor
// Put pcb & micro into default conditions//
// Enable interrupts
// Display D7
// Display D6
// Display D5
// Display D4
Appendix B – Source Files
AN2343/D
19

Related parts for AN2343