<b>
U8 LcdDataRead(void) 
{ 
   U8 DataValue;

   LCD_DATA = 0xFF;  /* set LCD_DATA port in input mode */ 
   LCD_DI = 1;       /* Data mode */ 
   LCD_RW = 1;       /* Read mode */ 
   LCD_E = 1;        /* strobe to start read cycle */ 
   LcdDelay(1); 
   DataValue = LCD_DATA; /* read data from controller */
   LCD_E = 0;        /* end read cycle */
   LcdDelay(1); 
   return(DataValue); /* return the data read */ 
} 

</b>