> FWIW, I always had good luck with the delay functions in delay.h for short > hardcoded (usec) delays.
Lucky you ! Other than wanting to avoid all this in-line stuff, the reason I replaced _delay_us(40) in my lcd routine, by an empty for loop, is that I accidentally realised that _delay_us(40) produced a 1,500us delay somehow !!! Couldn't figure out why, I set the F_CPU #define properly, and _delay_ms() works perfectly, but _delay_us clearly doesn't. Might be a bug with the particular delay of 40us, don't know, as don't use us delays anywhere else in my program. -- Vince _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list