AN2575 Freescale Semiconductor / Motorola, AN2575 Datasheet - Page 25

no-image

AN2575

Manufacturer Part Number
AN2575
Description
MC68HC908EY16 ESCI LIN Drivers
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
/******************************************************************************
*
*
*
*
*
******************************************************************************/
void Clock_LCD (void)
{
}
/******************************************************************************
*
*
*
*
*
******************************************************************************/
void Initialise_Display (void)
{
PTB &= ~(0x06);
count = 0;
while (count < 8)
{
}
}
MOTOROLA
PTB |= 0x01;
asm NOP;
asm NOP;
PTB &= ~(0x01);
if (TBCR & 0x80)
{
}
Function name: Clock_LCD
Originator:
Date:
Function name: Initialise_Display
Originator:
Date:
TBCR |= 0x08;
switch (count)
{
}
count++;
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
Write_Nibble (0x03);
Clock_LCD();
break;
Clock_LCD();
break;
Clock_LCD();
break;
Write_Nibble (0x02);
Clock_LCD();
break;
Display_Data (0x28, 0x00);
break;
Display_Data (0x08, 0x00);
break;
Display_Data (0x0C, 0x00);
PTB |= 0x04;
break;
P. Topping
10th February 2003
P. Topping
10th February 2003
Freescale Semiconductor, Inc.
For More Information On This Product,
MC68HC908EY16 ESCI LIN Drivers
Go to: www.freescale.com
/* E high
/* slow down for > 8MHz
/* E low
/* RW and RS low
/* is TBM flag set?
/* yes, clear it
/* Function set (8 bits)
/* and clock
/* wait and clock again
/* and again
/* Function set 4 bit mode */
/* 2 line display
/* display off
/* display on
/* RS high
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Software Listing
AN2575/D
25

Related parts for AN2575