Text output to graphic LCD
Hi I'm working on a little project, but I ran in to a little problem that I dont seem to be able to solve.
I want to be able to write text on my graphic LCD (KS0108B circuit) without using to much of the memory.
I was hoping to create something similar to the LCDout function.
For example: LCDout "IE"
I'm using this config for the datapins:
MCU--------LCD
portd.0 = pin7 (DB0)
portd.1 = pin8 (DB1)
portd.2 = pin9 (DB2)
portd.3 = pin10 (DB3)
portd.4 = pin11 (DB4)
portd.5 = pin12 (DB5)
portd.6 = pin13 (DB6)
portd.7 = pin14 (DB7)
portb.2 = pin6 (Enable)
So the letter "I" for example would be:
PORTD = %11111111
PORTB.2 = 1 ' Enable activated
Pauseus 1
PORTB.2 = 0 ' Enable deactivated
and the letter "E" would be:
PORTD = %11111111
PORTB.2 = 1 ' Enable activated
Pauseus 1
PORTB.2 = 0 ' Enable deactivated
PORTD = %10001001
PORTB.2 = 1 ' Enable activated
Pauseus 1
PORTB.2 = 0 ' Enable deactivated
PORTD = %10001001
PORTB.2 = 1 ' Enable activated
Pauseus 1
PORTB.2 = 0 ' Enable deactivated
PORTD = %10001001
PORTB.2 = 1 ' Enable activated
Pauseus 1
PORTB.2 = 0 ' Enable deactivated
PORTD = %10001001
PORTB.2 = 1 ' Enable activated
Pauseus 1
PORTB.2 = 0 ' Enable deactivated
And so on...
The only problem is that I dont know how to divide a string into seperate letters.
So If anyone has the answer please answer, and If you don't understand what the heck I'm talking about please let me know and perhaps I can explain a little better.
Text output to graphic LCD
could you give us the complete code of your project and the diagrams? thus we would have finally an example of code in pbp for the KS0108.
thanks
Text output to graphic LCD
1 Attachment(s)
How to use a GLCD display
Thanks for coming back
I didn't see that this thread was so old !
It is the first time for me with GLCD display
I have uploaded the PDF, is it suffisant to find which kind of controller it uses ?
I hope so ..
Tell me if I am right ...
I have a process that fill a variable "toto" with a value (let say H for HELLO as a numeric value, because in PBP we can't handle alphanumeric)
Through a Lookup table (as described in this thread) I will be able so feed a table
with ROW1 to ROW7 ...(for example)
I just need to send thoses rows to get the character displayed ?
That would be nice, is to get a Sub routine (like LCDOUT) and just jump to it with
the character fill in "toto" .. I am right or outside my shoes ?
thanks in advance
Francois F1CHF
GLCD 132x32 with KS0713 controller
Are these things hard to drive?
Can I write, in PBP, simple programs to display text easily, or is it tres dificile?
I am an Old Timer, born before 1940 but still trying to learn, some people say I am very trying!
Rgds
Mike