Re: 8051 and a C switch statement
- From: Martin Griffith <mart_in_medina@xxxxxxxx>
- Date: Sat, 29 Dec 2007 14:15:40 +0100
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
.
- References:
- 8051 and a C switch statement
- From: Martin Griffith
- Re: 8051 and a C switch statement
- From: Wayne Farmer
- Re: 8051 and a C switch statement
- From: Martin Griffith
- Re: 8051 and a C switch statement
- From: Arlet Ottens
- 8051 and a C switch statement
- Prev by Date: Re: 8051 and a C switch statement
- Next by Date: Re: C for Polynomial Fit
- Previous by thread: Re: 8051 and a C switch statement
- Next by thread: Re: 8051 and a C switch statement
- Index(es):
Relevant Pages
|