AN2600 Freescale Semiconductor / Motorola, AN2600 Datasheet - Page 18

no-image

AN2600

Manufacturer Part Number
AN2600
Description
A Simple Keypad Using LIN with the MC68HC908QT/QY MCU
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2600/D
}
/******************************************************************************
*
*
*
*
*
*
*
*
*
******************************************************************************/
void LIN_Msg (void)
{
}
/******************************************************************************
* Function:
* Description:
*
******************************************************************************/
void LIN_Command()
{
}
18
else
{
}
for EVER
{
}
Function name: LIN_Msg
Originator:
Date:
Function:
keypadcount = 0;
keypad_last = keypad;
data1 = 0;
data2 = 0;
MsgSent[0] = data1;
MsgSent[1] = data2;
LIN_GetMsg (ID_RECEIVE, MsgRcvd);
if (MsgRcvd[0] & LED_STATUS)
{
}
else
{
}
LIN_PutMsg (ID_SEND, MsgSent);
LED_SET;
LED_CLEAR;
LIN_Command
User call-back. Called by the driver after transmission or *
reception of the Master Request Command Frame (ID: 0x3C).
D.Svrcek
8th August 2003
The keypad status variables are saved to the buffer used
by the drivers for sending. The function ‘LIN_GetMsg’
receive two bytes, if bit 0 in the first byte is set,
then the LED on the PTA3 pin is enabled.
A Simple Keypad Using LIN with the MC68HC908QT/QY MCU
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
/* no, different, so reset */
/* count and save status
/* clear keypad status 1
/* clear keypad status 2
/* read LIN message
/* if first bit is set
/* enable LED
/* yes, set LED
/* no, clear LED
/* LIN response to 0x1B
/* 0x1B with parity = 0x5B */
*/
*/
*/
*/
*/
*/
*/
*/
*/
*
*
*
*
*
*
*
*
*
*
*
MOTOROLA

Related parts for AN2600