Help required for KS0108B based Graphic LCD

hi all,

I am using Proteus simulator and keil uvision2 to develop some graphic LCD library function.I am using the code from one of the sites to write pixel which is working fine. but reading is getting me problems.I am using LGM12864BS1R graphic LCD with AT89c51 microcontroller running at frequency 11.0592MHz.The read function is as follows.

any help would be highly appreciated.


U8 LcdDataRead ()
{
LCD_DATA = 0xFF; /* set LCD_DATA port in input mode */

LCD_RW = 1; /* Read mode */
LCD_DI = 1; /* Data mode */

LCD_E = 1; /* strobe */
LcdDelay(1);
LCD_E = 0;
LcdDelay(1);


return LCD_DATA; /* return the data read */
}

Parents Reply Children
No data
More questions in this forum