[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?

From: Vincent Trouilliez
Subject: Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?
Date: Tue, 20 Sep 2005 08:15:00 +0200

On Tue, 2005-09-20 at 00:56 -0500, David Kelly wrote:
> I prefer to read the busy flag in bit 7 of register 0 on the LCD  
> rather than timed loops. Text LCDs are fairly predictable but I'm  
> more comfortable delaying my next write until the particular LCD says  
> its ready. Some LCD commands take longer than others (scrolling and  
> clearing) and I fear a slightly different model or brand would take a  
> different length of time.
> Might take longer to change the DDR, poll, and restore than your  
> calibrated delay loop.

Yeah might take longer, but surely not as long as the 30 instructions
inserted by the _delay_us(45) statement. Plus, polling a flag is both
more elegant and safe than an ugly blind delay. really the only reason 
why I didn't poll the flag is simply that I found it overkill to use a
precious I/O pin to wire the R/W line, when a simple delay can do the
job. But I do feel guilty now, and will probably start polling from now
on... a blind delay just isn't quite serious enough... shame on me...

Vince, hiding in the corner...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]