AN2575 Freescale Semiconductor / Motorola, AN2575 Datasheet - Page 24

no-image

AN2575

Manufacturer Part Number
AN2575
Description
MC68HC908EY16 ESCI LIN Drivers
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2575/D
/******************************************************************************
*
*
*
*
*
******************************************************************************/
unsigned char LCD_busy (void)
{
}
24
unsigned char busy;
unsigned char wait;
DDRA &= ~(0x60);
DDRC &= ~(0x03);
PTB &= ~(0x04);
PTB |= 0x02;
PTB |= 0x01;
busy = (PTC & 0x02);
PTB &= ~(0x01);
Clock_LCD();
PTB &= ~(0x02);
DDRC |= 0x03;
DDRA |= 0x60;
wait = 0;
return (busy);
Function name: LCD_busy
Originator:
Date:
while (wait++ < 10);
P. Topping
10th February 2003
Freescale Semiconductor, Inc.
For More Information On This Product,
MC68HC908EY16 ESCI LIN Drivers
Go to: www.freescale.com
/* make LCD data pins MCU
/* inputs
/* RS low
/* RW high
/* E high
/* check busy output
/* E low
/* clock second nibble
/* RW low
/* put LCD data pins back
/* to MCU outputs
/* wait ?
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
MOTOROLA

Related parts for AN2575