Re: 8051 and a C switch statement
- From: Wayne Farmer <usenet@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Dec 2007 02:23:09 -0800 (PST)
On Dec 28, 4:39 pm, Martin Griffith <mart_in_medina@xxxxxxxx> wrote:
Got a 4k8 serial biphase signal being decoded by a at85c52 with an
external non retrig monostable (hc221), and I'm running out of time
occasionally waiting for the generic 2*8 LCD to clear it's busy flag.
The LCD is fed with the info from the incoming biphase
To reduce the "reaction time" I could use a long switch statement on
the signal's clock interrupt bitcount from the sync word, 80 per
frame, do just a little bit each interrupt.
The real question is
" how big can I make the switch statement?"
Whats the limit?
I'm using the rasionance C compiler.
'scuse typos, a bottle of wine was preferable to staring at my
lamentable code
martin
I'm guessing that you're writing to the LCD in an interrupt routine.
If waiting for the LCD busy signal to drop is creating a problem for
you, then perhaps you should be writing to the LCD in background,
rather than foreground.
Or, if the LCD is busy, why not just push the LCD data into a FIFO and
perform the access at some time in the future?
Updating an LCD shouldn't be that time-critical an affair.
.
- Follow-Ups:
- Re: 8051 and a C switch statement
- From: Martin Griffith
- Re: 8051 and a C switch statement
- References:
- 8051 and a C switch statement
- From: Martin Griffith
- 8051 and a C switch statement
- Prev by Date: Re: Embedded Linux and PCI (over AT91?)
- Next by Date: Re: 8051 and a C switch statement
- Previous by thread: Re: 8051 and a C switch statement
- Next by thread: Re: 8051 and a C switch statement
- Index(es):
Relevant Pages
|