Yes the shift register could work... As long as you can deal with the limitations. It's a cheap an proved to work solution so far.
anyway, here's the link Skimask talked about http://www.myke.com/lcd.htm
Yes the shift register could work... As long as you can deal with the limitations. It's a cheap an proved to work solution so far.
anyway, here's the link Skimask talked about http://www.myke.com/lcd.htm
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
mister-e , in the "C" psuedo-code give on the link mentioned above ,
This is what i understood so far.
To send any data to the LCD, the "LCDNybble" function has to be called twice with the character / command data in the variable "Nybble".
The Nybble variable should be fed with the corresponding upper and lower bits sequentially.
Does the "LCDNybble" function take care of pulsing the E pin of LCD?
Myke has mentioned that before strobing the E pin, a 450ns pause is necessary.
Will PAUSEUS 1 work?
Last edited by shahidali55; - 6th June 2007 at 13:43.
Math are good... but depending your OSC speed, you may want to use a serie of @ NOP instead.
Have a look in the manual about PAUSEUS limitations.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Based on the pseudo C code on page http://www.myke.com/lcd.htm,
i made my own code. I have attached it with this post.
Can someone chech it out and tell if what i've done is correct?
I tested the commands using Dincer's JavaScript LCD Simulator V 1.05.
(http://www.geocities.com/dinceraydin.../djlcdsim.html)
This code should display the digit "1" on the display.
Last edited by shahidali55; - 6th June 2007 at 18:43.
might be kinda nice to have a least-significant-digit location set. for instance if you need to display a variable that changes from 1 digit (0-9) to 3 digits (100, etc), and you need to display 4 of them at a time, the code starts to get very lengthy....
i normally do an IF+THEN and if less than X, then add a space, but doing this for 4 variables, with 1 to 3 digits gets be rather long, and very hard to debug...
LCDOUT $FE, 1, DEC VAR [10], "Hello" 'display decimal value of <VAR> with least significant digit at space 10
Sorry i don't follow youcould you shed some light on that?
Why not updating only some fields on the LCD? Do you need Left/Right Aligned thingy?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks