Yeah, it is a primitive wait routine - It is set to overflow after 1ms, it rolls over to zero where the while() fails. Since this is pretty much just banged out I've not been too complete with comments. ;) DLC John Samperi wrote: > At 02:47 PM 27/01/2008, you wrote: >> while (TCNT0); > > By the way is the above correct? I don't speak Martian too > well. > > Regards > > John Samperi > > ******************************************************** > Ampertronics Pty. Ltd. > 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA > Tel. (02) 9674-6495 Fax (02) 9674-8745 > Email: john@ampertronics.com.au > Website http://www.ampertronics.com.au > *Electronic Design * Custom Products * Contract Assembly > ******************************************************** > > > > > Yahoo! Groups Links > > > -- ------------------------------------------------- Dennis Clark TTT Enterprises www.techtoystoday.com -------------------------------------------------
Message
Re: [AVR-Chat] What is wrong with this?
2008-01-27 by dlc
Attachments
- No local attachments were found for this message.