LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 6:02

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Mar 27, 2003 14:42 
Henri,

I am using C for microcontroller in AT89C52 to program PG24064LRS but I don´t obtain success in the process of reading data. I need to read data to confirm that the LCD is operating normaly, it were not reset or had error in the process of the data write.
I put one part of my program's code.


EnviaMensagemLCDGrafico(gscMsgTestLCD);
StatusCheck(1);
DADOLCD = CODTESTLCD; // Put Data in the ports
StatusCheck(1);
COMMLCD = 0xC4; // Command Write Data
StatusCheck(1);
EnviaMensagemLCDGrafico(gscMsgTestLCD);
StatusCheck(1);
EA = 0; // Desable all interrupts
COMMLCD = 0xC5; // Read Data
if(DADOLCD != CODTESTLCD) // Case Data Read is equal Data Write
{
InicitiateGraphicLCD(); // Reset and initiate LCD
}
EA = 1; // Enable all interrupts


Top
  
 
 Post subject:
PostPosted: Fri Mar 28, 2003 19:28 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
I moved this topic here as I don't think this has much to do with LCDInfo.

Is the controller in your display T6963C ?
I don't have experience with reading data from display so I can't really give much help but have you looked at this pdf: http://www.skippari.net/lcd/t6963c.pdf ?
It has the timings for reading and writing.

And one more thing: are you writing and reading from the same place in memory ? What are exactly the results you are having, don't you get the right data or don't you get data at all ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2003 21:24 
This display use T6963C and have 240x64 bits (pixels).

This example show that I write and read same place in display memory. COMMLCD = 0xC4 it execute command write without increment counter of position. Command COMMLCD = 0xC5 Read data in memory (as show datasheet) but I don´t read correctly another data. Command EnviaMensagemLCDGrafico(gscMsgTestLCD) put counter position in address for write or read data. The connective if(DADOLCD != CODTESTLCD) verify process write/read and, case it occurs error reset LCD, executing command InicitiateGraphicLCD()
First Write/Read is OK but others proccess don´t is correct.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group