Dear All,
I have succesfully displaying text & graphic to my LCD with T6963 controller using T6963c module from Ahmed Lazreg ([email protected]).. Thanks.
But now, i will control the LCD from PC using serial communication.
F.Y.I, i have succesfully send/receive a string from PC to PC using my serial module written in visual C++ 6.0.
Sending code is as follow:
{ . .
send_string = "123456789";
port.Write(send_string , send_string.GetLength() , len);
. .
}
Can anyone give an example how to receive a string data to be displayed on the LCD. I am using PIC18F452.
Thanks a lot.
Serial Comm PC to PIC for Graphic LCD
Moderators: David Barker, Jerry Messina
yudi,
I found the easiest way is to use the Rx buffer in conjuntion with the USART.DataAvailable boolean.
Then write a loop using USART.Readbyte to pick up the string of chars from your PC. There will be variations on this theme. Once your chars are in an array or string you can then write them to your GLCD.
Some may prefer to use interrupts, it depends on your app.
I found the easiest way is to use the Rx buffer in conjuntion with the USART.DataAvailable boolean.
Then write a loop using USART.Readbyte to pick up the string of chars from your PC. There will be variations on this theme. Once your chars are in an array or string you can then write them to your GLCD.
Some may prefer to use interrupts, it depends on your app.