On Thu, Dec 08, 2005 at 09:10:26AM +0100, niklo wrote: > Date: Thu, 8 Dec 2005 09:10:26 +0100 > From: niklo <[EMAIL PROTECTED]> > To: 'Sumeet Pal Singh' <[EMAIL PROTECTED]>, [email protected] > Subject: RE: [avr-gcc-list] (Newbie)2.Delay function not working as required > > Why don't you use the avr-libc delays, _delay_ms()? > > I have myself used it in a for-loop to produce long s-range delays in some > project. For this long delays I guess though you should use timers and > interrupts.
Also check application note AVR133: Long Delay Generation Using the AVR Microcontroller on http://www.atmel.com/dyn/products/app_notes.asp?family_id=607 Best wishes -- Alexei Chetroi Smile... Tomorrow will be worse. (c) Murphy's Law _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
