AN2575 Freescale Semiconductor / Motorola, AN2575 Datasheet - Page 23

no-image

AN2575

Manufacturer Part Number
AN2575
Description
MC68HC908EY16 ESCI LIN Drivers
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
/******************************************************************************
Function Name
Engineer
Date
Parameters
******************************************************************************/
void Display_Data (unsigned char data, unsigned char regsel)
{
}
/******************************************************************************
*
*
*
*
*
*
******************************************************************************/
void Write_Nibble (unsigned char nibble)
{
}
MOTOROLA
while (LCD_busy() == 0x01);
if (regsel == 1)
{
}
else
{
}
Write_Nibble (data/16);
Clock_LCD();
Write_Nibble (data & 0x0F);
Clock_LCD();
PTA = (PTA & 0x9F) | nibble * 0x20;
PTC = (PTC & 0xFC) | nibble / 4;
Function name: Write_Nibble
Originator:
Date:
Parameters:
PTB |= 0x04;
PTB &= ~(0x04);
:
:
:
:
:
Display_Data
C. Culshaw
06/09/02
data - byte to be written to display
regsel - RS (0 = command mode, 1 = data mode)
P. Topping
21st March 2003
nibble - 4-bit data to be written to display
Freescale Semiconductor, Inc.
For More Information On This Product,
MC68HC908EY16 ESCI LIN Drivers
Go to: www.freescale.com
/* read LCD busy status
/* data, RS high
/* command, RS low
/* MS nibble
/* clock display
/* LS nibble
/* clock display
/* format bits for LCD
/* interface
*/
*/
*/
*/
*/
*/
*/
*/
*/
Software Listing
AN2575/D
23

Related parts for AN2575