Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #507433

Re: How often to re-initialize a character LCD display?

From Reinhardt Behm <rbehm@hushmail.com>
Newsgroups sci.electronics.design
Subject Re: How often to re-initialize a character LCD display?
Date 2018-06-06 16:00 +0800
Organization A noiseless patient Spider
Message-ID <pf84bn$gse$1@dont-email.me> (permalink)
References <a47364fd-5aea-4e85-bc04-07b0aedccd07@googlegroups.com> <%SKRC.403089$PE5.13876@fx37.iad> <pf81dg$2np$1@dont-email.me> <hYLRC.262130$Hv4.116720@fx39.iad>

Show all headers | View raw


AT Wednesday 06 June 2018 15:21, bitrex wrote:

> On 06/06/2018 03:10 AM, Reinhardt Behm wrote:
>> AT Wednesday 06 June 2018 14: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.
>> 
>> Quite often the cheap displays containing these controllers have no
>> internal caps on the power supply. I had similar problems that several
>> times when the customer switched to cheaper displays. But your argument
>> about the timing is also correct, the required timing seems to vary with
>> he moon phase.
>> 
> 
> Those eBay-special displays can be pretty sensitive to
> brownouts/droops/noise on the supply rail; even very brief dips in the
> supply or EMI injected from a motor spinning up or relay switching can
> cause the controller IC to latch up and the display won't come back up
> until the power is cycled.
> 
> I would ensure the supplies and ground were actually as "solid" as I
> thought they were

I had luck with one type - butnot all - by putting a tantal directly over 
the supply connector.

-- 
Reinhardt

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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