U8 LcdDataRead ()
{
U8 tempRead;         /* Temporary var to hold the data read from the LCD */

LCD_DATA = 0xFF;     /* set LCD_DATA port in input mode */
LCD_DI = 1;          /* Data mode */
LCD_RW = 1;          /* Read mode */
LCD_E = 0;           /* strobe */
LcdDelay(1);
<b>tempRead = LCD_DATA; /* Read the data here */</b>
LCD_E = 1;
LcdDelay(1);
return tempRead;     /* return the data read */
}