Re: 8051 and a C switch statement



On Sat, 29 Dec 2007 13:03:09 +0100, in comp.arch.embedded Arlet Ottens
<usenet+5@xxxxxxxxxx> wrote:

Martin Griffith wrote:

Updating an LCD shouldn't be that time-critical an affair.

Yes, that is what I'm trying to do.
After a night's sleep, it is a lot clearer now.
The biphase signal is just a bunch of 8 bit characters and a sync word

I hope to use the clock from the biphase decoder, which are about
250uS apart, to just send one command to the LCD when required instead
of trying to enter a complete string at once, and ignoring the busy
flag, as 250uS should be ample, as my scope shows about 10uS is
required for the busy flag to be cleared.

One less thing to worry about.

I would recommend still checking the busy flag to make sure the LCD is
still responding. If not, send it a reset, and re-initialize it. You
could check it just before sending the next command, for instance.

I've noticed on several occasions that the processor inside the LCD
module can get stuck, leaving the screen in a dead state. One particular
LCD module I had was so sensitive that it could be locked up by
tapping the outside of the metal enclosure with a screwdriver.

This, of course, assumes you have the reset signal under control of your
CPU.

Good point, I'll initialise using the "check busy flag", and maybe do
one busy flag per frame check



martin
.



Relevant Pages

  • Re: 8051 and a C switch statement
    ... it is a lot clearer now. ... I would recommend still checking the busy flag to make sure the LCD is still responding. ... You could check it just before sending the next command, ... One particular LCD module I had was so sensitive that it could be locked up by tapping the outside of the metal enclosure with a screwdriver. ...
    (comp.arch.embedded)
  • Re: 8051 and a C switch statement
    ... occasionally waiting for the generic 2*8  LCD to clear it's busy flag. ... I'm guessing that you're writing to the LCD in an interrupt routine. ... required for the busy flag to be cleared. ...
    (comp.arch.embedded)
  • Re: Help getting an LCD to work
    ... > leads me to think my initialization routines aren't working (gee, ... > the LCD. ... The main problem with getting Optrex LCDs to work is the ... The BUSY flag can and should be used from there onward. ...
    (comp.arch.embedded)
  • Re: I love trash day.
    ... the native LCD resolution, an LCD is MUCH clearer than a CRT (to my ... CRTs are much clearer. ...
    (comp.sys.cbm)
  • Re: To upgrade or not to upgrade
    ... The two reasons I upgraded to LCD are the text is a lot clearer and there ... isn't a heat plume rising from the back of the monitor heating up my ... I haven't seen an LCD with good colour reproduction yet. ...
    (rec.games.computer.ultima.dragons)