T6963C Controled LCD display
TC
Posts: 1,019
Hello all. after learning how to get a 4 X 16 LCD display to work ( Thanks to deSilva for all the help ). I have now moved to an Optrex DMF5005 graphic display. the display is controled by a Toshiba T6963C controler.
My question is, has anyone worked with this controler?
If not, maybe I could get some help. Toshiba recommends that there should be a Status Check befor any byte is to be sent. what I do not understand how to do with the PROP is take a byte and and split it up in to 8 BITs. I know how to do it with PBASIC.
Thanks
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
My question is, has anyone worked with this controler?
If not, maybe I could get some help. Toshiba recommends that there should be a Status Check befor any byte is to be sent. what I do not understand how to do with the PROP is take a byte and and split it up in to 8 BITs. I know how to do it with PBASIC.
Thanks
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
Comments
Yes, you have to check the status bit so you need to take into account that the lcd is running from +5V and take basic precautions such as using current limit resistors on the data lines. Check the sticky threads which discuss interfacing to +5V logic.
A byte is composed of 8-bits, why do you need to split it? In Spin it is very easy to access a byte from memory or an array and write to the output pins using a range expression. Surely the code you have for the 4x16 lcd gives you more than a clue or two?
I assume you have the datasheet for this controller. I found a copy here:
home.comet.bg/datasheets/LCD%20Grafical/T6963c.pdf
As with the character lcd you would have found it didn't release any magic smoke simply because of program errors. Keeping that in mind there is nothing holding you back from writing and testing some Spin code to make the graphics lcd work. Start off simple and just try to read the status register and display the value on your serial terminal or whatever you might have for debugging.
*Peter*
For the status check. I need to see if STA0 & STA1 = 1. And since I am learning SPIN I can not get a grip on how to do it, yet. with PBASIC I could do somthing like:
temp·· VAR·· byte
STA0·· VAR·· temp.BIT0
STA1·· VAR·· temp.BIT1
main bla-bla:
temp = INL
then I could make the program keep repeating untill STA0 & STA1 = 1
The code I am using does not do much with status checking. it will only put the byte in to result. Thank you for the confidence. I am using that character lcd for debugging.
Thanks
TC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
We all make mistakes when we are young………That’s why paste is edible!
Try "repeat until INA[noparse][[/noparse]1..0] == 3" or something like this that.
*Peter*