??? 10/08/04 13:50 Read: times |
#79026 - RE: Why did you not follow Olegs advice? Responding to: ???'s previous message |
Hi All,
The archive Oleg has told has lot of information. i have read the complete thread. but according to following thread: http://www.8052.com/forum/read.phtml?id=76480 Okay, let assume you calculated that refresh routine takes 100ìs. My refresh routine when calculated, completes in atleast 2000ìs. Can anyone help me to enhance this routine. I am giving my display routine code: void DisplayMsg() { unsigned char value, j, k, a; short xloc, i; unsigned int Address; unsigned int Max, index; MsgLength = GetLength(); Max = MsgLength - 16; //Get String Now Address = 2; ReadText(Address, 16); Address = 18; for(index = 0; index < Max; index++, Address++) { for(j = 0; j < 15; j++) RText[j] = RText[j + 1]; //shift one char to left RText[j] = ReadChar(Address); //Read Next Char to add to message for(xloc = 0; xloc >= -5; xloc--) { for(i = 6; i >= 0; i--) { for(j = 15; j > 0; j--) { value = CharSet[RText[j] - 32][i]; for(k = 6; k > 0; k--) //output binary data { xd = value & 1; xc = 1; //reset clk xc = 0; value >>= 1; } }//end for index value = CharSet[RText[j] - 32][i]; for(k = 6 + xloc; k > 0; k--) //output binary data { xd = value & 1; xc = 1; //reset clk xc = 0; value >>= 1; } // if(bF1 | bReset) return; Set_y_data(ydata[i]); st = 1; st = 0; }//end for i }//end for xloc }//end for index }//end void DisplayMsg() here, CharSet[] is the character set we have to display, this is in code memory, ReadText() reads data from EEPRom, i have used AT24C64 to store data. Actually the most of the time is taken by for(j = 15; ...), this is because we have to shift 90 bits per row in every case. Regards, Farrukh Lodhi |