Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/03/04 09:02
Read: times


 
#73572 - Ks0108 Graphics LCD read problem
Hi all,

I am using Keil micro vision and Proteus simulator to write Graphics API for GDM12864 graphic LCD which is connected to AT89C51 microcontroller.I am able to write to LCD fine but i cannot read that. I am testing the code in Proteus simulator and not on actual device for the time being. My dataRead function is as follows.

U8 LcdDataRead ()
{
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);
LCD_E = 1;
LcdDelay(1);
return LCD_DATA; /* return the data read */
}

but this always returns 0xFF. Is there any problem with the delay or Proteus Simulator does not read properly. Any help would be highly appreciated.

Thanks,


List of 6 messages in thread
TopicAuthorDate
Ks0108 Graphics LCD read problem            01/01/70 00:00      
   RE: Simulator            01/01/70 00:00      
   RE: Ks0108 Graphics LCD read problem            01/01/70 00:00      
      Oops!            01/01/70 00:00      
   RE: Ks0108 Graphics LCD read problem            01/01/70 00:00      
      RE: Ks0108 Graphics LCD read problem            01/01/70 00:00      

Back to Subject List