LCDInfo.com http://forum.lcdinfo.com/ |
|
Read in PG24064LRS [T6963C] http://forum.lcdinfo.com/viewtopic.php?f=9&t=191 |
Page 1 of 1 |
Author: | Carlos Jr [ Thu Mar 27, 2003 14:42 ] |
Post subject: | Read in PG24064LRS [T6963C] |
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 |
Author: | Henri [ Fri Mar 28, 2003 19:28 ] |
Post subject: | |
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 ? |
Author: | Carlos JR [ Fri Mar 28, 2003 21:24 ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC + 2 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |