Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #507455
| From | Martin Brown <'''newspam'''@nezumi.demon.co.uk> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: How often to re-initialize a character LCD display? |
| Date | 2018-06-06 17:18 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <pf91go$rn9$1@gioia.aioe.org> (permalink) |
| References | <a47364fd-5aea-4e85-bc04-07b0aedccd07@googlegroups.com> <%SKRC.403089$PE5.13876@fx37.iad> |
On 06/06/2018 07:07, Clifford Heath wrote: > On 06/06/18 13:18, mpm wrote: >> I'm just wondering what "standard practice" is for re-initializing a >> character-based LCD display (i.e., a 2x16 backlit LCD)? >> >> I have a project in the works now that erratically displays a blank LCD. >> I haven't quite tracked down what might be wrong, but I could "fix" >> the whole issue by just re-initializing the LCD on every pass. (This >> is very simply loop software..., check some inputs, throw some relays, >> etc..) >> >> I don't think it's a flaky LCD, and like I said, I'm not 100% sure why >> it's doing this? The power rails are good and solid, and really >> nothing that stands out in the code (which is hand-assembler). And >> probably 95%+ of that code is from other projects over the years which >> I know to be bulletproof. >> >> So, not asking for help on the "fix". >> >> I'm just wondering how often (if ever?) folks re-initialize the LCD >> display? >> This particular code never "sleeps". >> >> If it did, I could more easily justify re-setting the LCD (via >> initialization) when coming out of low-power, or power-down modes. >> (You know, just to be sure!) >> >> This project uses an AT89LP51ED2 8-bit, 8051 derivative -- and the >> standard Hitachi language LCD character display. Nothing special. >> (The LCD is interfaced in 4-bit mode, and my code has complete control >> over it.) >> >> Nothing unexpected if I'm in front of it, even if for hours. >> But leave it a few days or weeks, and sometimes the LCD will be blank >> even though the code is working fine otherwise. A reset fixes it, as >> does a software switch (toggle a port pin) to call the LCD init routine. >> > > The Hitachi-compatible 16x2 display chips vary in the delays they need > after each kind of operation. If you have a flaky system, add some big > delays. If it's not flaky any more, go looking for which delays fixed > it and reduce them to the required duration. The other thing to check if you can get at any of the LCD pins is to make sure that there is an oscillating signal present. LCD displays fade to nothing if they are DC biassed for any length of time. -- Regards, Martin Brown
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How often to re-initialize a character LCD display? mpm <mpmillard@aol.com> - 2018-06-05 20:18 -0700
Re: How often to re-initialize a character LCD display? Clifford Heath <no.spam@please.net> - 2018-06-06 16:07 +1000
Re: How often to re-initialize a character LCD display? Reinhardt Behm <rbehm@hushmail.com> - 2018-06-06 15:10 +0800
Re: How often to re-initialize a character LCD display? bitrex <user@example.net> - 2018-06-06 03:21 -0400
Re: How often to re-initialize a character LCD display? Reinhardt Behm <rbehm@hushmail.com> - 2018-06-06 16:00 +0800
Re: How often to re-initialize a character LCD display? mpm <mpmillard@aol.com> - 2018-06-06 03:58 -0700
Re: How often to re-initialize a character LCD display? bitrex <user@example.net> - 2018-06-06 12:28 -0400
Re: How often to re-initialize a character LCD display? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2018-06-06 17:18 +0100
Re: How often to re-initialize a character LCD display? Sylvia Else <sylvia@not.at.this.address> - 2018-06-06 17:11 +1000
Re: How often to re-initialize a character LCD display? bitrex <user@example.net> - 2018-06-06 12:36 -0400
Re: How often to re-initialize a character LCD display? mpm <mpmillard@aol.com> - 2018-06-06 18:33 -0700
Re: How often to re-initialize a character LCD display? <698839253X6D445TD@nospam.org> - 2018-06-06 16:50 +0000
Re: How often to re-initialize a character LCD display? boB <boB@K7IQ.com> - 2018-06-06 16:23 -0700
Re: How often to re-initialize a character LCD display? mpm <mpmillard@aol.com> - 2018-06-06 18:41 -0700
Re: How often to re-initialize a character LCD display? Jeff Liebermann <jeffl@cruzio.com> - 2018-06-06 19:14 -0700
Re: How often to re-initialize a character LCD display? boB <boB@K7IQ.com> - 2018-06-06 21:36 -0700
Re: How often to re-initialize a character LCD display? Johnny B Good <johnny-b-good@invalid.ntlworld.com> - 2018-06-07 08:54 +0000
Re: How often to re-initialize a character LCD display? mpm <mpmillard@aol.com> - 2018-06-06 18:35 -0700
Re: How often to re-initialize a character LCD display? Neon John <no@never.com> - 2018-06-08 15:03 -0400
csiph-web