Re: 8051 and a C switch statement



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.

.