Reply by Ray Haddad December 19, 20072007-12-19
On Tue, 18 Dec 2007 21:03:36 +0100, I said, "Pick a card, any card"
and whygee <whygee@yg.yg> instead replied:

>Ray Haddad wrote: >> On Mon, 17 Dec 2007 19:18:31 -0800 (PST), I said, "Pick a card, any >> card" and ssylee <stanigator@gmail.com> instead replied: >> >>> Thanks for all your help. Just an update that I have gotten the 4-bit >>> interface working. >> >> Woo Hoo! Good job! > >I am too trying to make a LCD work and it's much more complex >than the datasheets want to make you believe...
The datasheets all use the basic chip which is normally under the blivet of epoxy. The actual use is normally very similar no matter which type of glass is being driven. Just remember to sequence the instructions properly prior to sending data and all should be well.
>There are a lot of undocumented behaviours, so it may work >if you think it doesn't, and vice versa. >I'm now trying to make some text scroll, but i'm giving up.
Scroll in which way? Horizontally is a snap. Just increment the string with spaces and all will scroll off to the left. Scrolling vertically isn't possible with an alphanumeric driver. Sorry.
>A sort of FAQ, or a wiki on this subject, with feedback >and error analysis, would be very helpful.
Start one. You're the one with the questions. See which ones are asked frequently and go from there. -- Ray
Reply by whygee December 18, 20072007-12-18
Ray Haddad wrote:
> On Mon, 17 Dec 2007 19:18:31 -0800 (PST), I said, "Pick a card, any > card" and ssylee <stanigator@gmail.com> instead replied: > >> Thanks for all your help. Just an update that I have gotten the 4-bit >> interface working. > > Woo Hoo! Good job!
I am too trying to make a LCD work and it's much more complex than the datasheets want to make you believe... There are a lot of undocumented behaviours, so it may work if you think it doesn't, and vice versa. I'm now trying to make some text scroll, but i'm giving up. A sort of FAQ, or a wiki on this subject, with feedback and error analysis, would be very helpful.
> Ray
yg
Reply by Ray Haddad December 18, 20072007-12-18
On Mon, 17 Dec 2007 19:18:31 -0800 (PST), I said, "Pick a card, any
card" and ssylee <stanigator@gmail.com> instead replied:

>Thanks for all your help. Just an update that I have gotten the 4-bit >interface working.
Woo Hoo! Good job! -- Ray
Reply by ssylee December 17, 20072007-12-17
On Dec 10, 10:47 pm, Ray Haddad <rhad...@iexpress.net.au> wrote:
> On Mon, 10 Dec 2007 22:21:42 -0800 (PST), I said, "Pick a card, any > card" and ssylee <staniga...@gmail.com> instead replied: > > > > >On Dec 10, 9:43 pm, Ray Haddad <rhad...@iexpress.net.au> wrote: > >> On Mon, 10 Dec 2007 21:38:54 -0800 (PST), I said, "Pick a card, any > >> card" and ssylee <staniga...@gmail.com> instead replied: > > >> >On Dec 8, 10:13 am, Rich Webb <bbew...@mapson.nozirev.ten> wrote: > >> >> Everett M. Greene wrote: > > >> >> [snip...snip...] > > >> >> > I believe whoever mentioned the 4-bit vs. 8-bit thing had it backward. > >> >> > The displays power up in 4-bit mode and must be switched to 8-bit mode. > >> >> > [I'm doing this from memory and it's been a long time...] > > >> >> It comes up in 8-bit mode but the 4/8 command ignores the lower nibble. > >> >> IIRC, the recommended initialization is to tell it 8-bit several times, > >> >> with specific delays between each, and then command it to 4-bit. > > >> >> As mentioned, they're picky about proper initialization and not all > >> >> otherwise compatible displays have the same minimum delays during > >> >> initialization. > > >> >I've found out that I have gotten my pin connections all wrong. I am > >> >going to reconnect the hardware connections and try the codes again. > > >> I suspected as much. That's why I suggested that you check your > >> wiring. The program control is very simple and a matter of following > >> the step-by-step instructions in the proper sequence. > > >After fixing the wiring, I have seen the contrast. However, I'm not > >seeing the text that should appear on the LCD. So my code is also one > >of the culprit as well. > > Stanley, > > Just backtrack in your code and begin anew. You probably made many > tiny errors which accumulate over time. Those errors are based on > having the wiring incorrect. Without being able to see your hardware > or your code, this is not only a guess but practical advice. > -- > Ray
Thanks for all your help. Just an update that I have gotten the 4-bit interface working.
Reply by Ray Haddad December 11, 20072007-12-11
On Mon, 10 Dec 2007 22:21:42 -0800 (PST), I said, "Pick a card, any
card" and ssylee <stanigator@gmail.com> instead replied:

>On Dec 10, 9:43 pm, Ray Haddad <rhad...@iexpress.net.au> wrote: >> On Mon, 10 Dec 2007 21:38:54 -0800 (PST), I said, "Pick a card, any >> card" and ssylee <staniga...@gmail.com> instead replied: >> >> >On Dec 8, 10:13 am, Rich Webb <bbew...@mapson.nozirev.ten> wrote: >> >> Everett M. Greene wrote: >> >> >> [snip...snip...] >> >> >> > I believe whoever mentioned the 4-bit vs. 8-bit thing had it backward. >> >> > The displays power up in 4-bit mode and must be switched to 8-bit mode. >> >> > [I'm doing this from memory and it's been a long time...] >> >> >> It comes up in 8-bit mode but the 4/8 command ignores the lower nibble. >> >> IIRC, the recommended initialization is to tell it 8-bit several times, >> >> with specific delays between each, and then command it to 4-bit. >> >> >> As mentioned, they're picky about proper initialization and not all >> >> otherwise compatible displays have the same minimum delays during >> >> initialization. >> >> >I've found out that I have gotten my pin connections all wrong. I am >> >going to reconnect the hardware connections and try the codes again. >> >> I suspected as much. That's why I suggested that you check your >> wiring. The program control is very simple and a matter of following >> the step-by-step instructions in the proper sequence. > >After fixing the wiring, I have seen the contrast. However, I'm not >seeing the text that should appear on the LCD. So my code is also one >of the culprit as well.
Stanley, Just backtrack in your code and begin anew. You probably made many tiny errors which accumulate over time. Those errors are based on having the wiring incorrect. Without being able to see your hardware or your code, this is not only a guess but practical advice. -- Ray
Reply by ssylee December 11, 20072007-12-11
On Dec 10, 9:43 pm, Ray Haddad <rhad...@iexpress.net.au> wrote:
> On Mon, 10 Dec 2007 21:38:54 -0800 (PST), I said, "Pick a card, any > card" and ssylee <staniga...@gmail.com> instead replied: > > > > >On Dec 8, 10:13 am, Rich Webb <bbew...@mapson.nozirev.ten> wrote: > >> Everett M. Greene wrote: > > >> [snip...snip...] > > >> > I believe whoever mentioned the 4-bit vs. 8-bit thing had it backward. > >> > The displays power up in 4-bit mode and must be switched to 8-bit mode. > >> > [I'm doing this from memory and it's been a long time...] > > >> It comes up in 8-bit mode but the 4/8 command ignores the lower nibble. > >> IIRC, the recommended initialization is to tell it 8-bit several times, > >> with specific delays between each, and then command it to 4-bit. > > >> As mentioned, they're picky about proper initialization and not all > >> otherwise compatible displays have the same minimum delays during > >> initialization. > > >I've found out that I have gotten my pin connections all wrong. I am > >going to reconnect the hardware connections and try the codes again. > > I suspected as much. That's why I suggested that you check your > wiring. The program control is very simple and a matter of following > the step-by-step instructions in the proper sequence. > -- > Ray
Ray, After fixing the wiring, I have seen the contrast. However, I'm not seeing the text that should appear on the LCD. So my code is also one of the culprit as well. Stanley
Reply by Ray Haddad December 11, 20072007-12-11
On Mon, 10 Dec 2007 21:38:54 -0800 (PST), I said, "Pick a card, any
card" and ssylee <stanigator@gmail.com> instead replied:

>On Dec 8, 10:13 am, Rich Webb <bbew...@mapson.nozirev.ten> wrote: >> Everett M. Greene wrote: >> >> [snip...snip...] >> >> > I believe whoever mentioned the 4-bit vs. 8-bit thing had it backward. >> > The displays power up in 4-bit mode and must be switched to 8-bit mode. >> > [I'm doing this from memory and it's been a long time...] >> >> It comes up in 8-bit mode but the 4/8 command ignores the lower nibble. >> IIRC, the recommended initialization is to tell it 8-bit several times, >> with specific delays between each, and then command it to 4-bit. >> >> As mentioned, they're picky about proper initialization and not all >> otherwise compatible displays have the same minimum delays during >> initialization. > >I've found out that I have gotten my pin connections all wrong. I am >going to reconnect the hardware connections and try the codes again.
I suspected as much. That's why I suggested that you check your wiring. The program control is very simple and a matter of following the step-by-step instructions in the proper sequence. -- Ray
Reply by ssylee December 11, 20072007-12-11
On Dec 8, 10:13 am, Rich Webb <bbew...@mapson.nozirev.ten> wrote:
> Everett M. Greene wrote: > > [snip...snip...] > > > I believe whoever mentioned the 4-bit vs. 8-bit thing had it backward. > > The displays power up in 4-bit mode and must be switched to 8-bit mode. > > [I'm doing this from memory and it's been a long time...] > > It comes up in 8-bit mode but the 4/8 command ignores the lower nibble. > IIRC, the recommended initialization is to tell it 8-bit several times, > with specific delays between each, and then command it to 4-bit. > > As mentioned, they're picky about proper initialization and not all > otherwise compatible displays have the same minimum delays during > initialization. > > -- > Rich Webb Norfolk, VA
I've found out that I have gotten my pin connections all wrong. I am going to reconnect the hardware connections and try the codes again.
Reply by Rich Webb December 8, 20072007-12-08
Everett M. Greene wrote:
[snip...snip...]
> I believe whoever mentioned the 4-bit vs. 8-bit thing had it backward. > The displays power up in 4-bit mode and must be switched to 8-bit mode. > [I'm doing this from memory and it's been a long time...]
It comes up in 8-bit mode but the 4/8 command ignores the lower nibble. IIRC, the recommended initialization is to tell it 8-bit several times, with specific delays between each, and then command it to 4-bit. As mentioned, they're picky about proper initialization and not all otherwise compatible displays have the same minimum delays during initialization. -- Rich Webb Norfolk, VA
Reply by Everett M. Greene December 8, 20072007-12-08
"TT_Man" <Someone@ntlworld.com> writes:

> >> Are you trying to operate it in 8-bit or 4-bit mode and does the wiring > >> correspond to that? The part always starts in 8-bit mode and must be > >> set into 4-bit mode. > > > > Thanks for all the replies. I'll answer your questions one by one: > > > > Ray Haddad: I have ensured that the pins that the program uses match > > the hardware connections. > > SamSvL: Thanks for the link. It provides a lot of conceptual > > instructions on its operation. > > John Devereux: I have tried to adjust the contrast voltage by > > connecting an adjustment potentiometer as instructed in the datasheet > > and adjusting the potentiometer. > > John B: I'm trying to operate it in 8-bit mode, and the wiring > > correspond to that. I'm not sure about the benefits of operating it in > > the 4-bit mode though.
> when adjusting the contrast voltage, you will know it is correct if and when > you see all the pixels go from 'light' to dark. If you cannot make the > pixels go dark, the contrast is not correct. Without this step, you will > never se anything.
> In my experience, the delays during set-up are the biggest stumbling block. > Make them 10x longer than you think they should be.
And equally bad is to try to use the (ready/busy/status?) signal for its intended use before initialization is complete. You are forced to use time delays during initialization and make them generous. Otherwise, the display will never work. I believe whoever mentioned the 4-bit vs. 8-bit thing had it backward. The displays power up in 4-bit mode and must be switched to 8-bit mode. [I'm doing this from memory and it's been a long time...]