"Royce Pereira" <[EMAIL PROTECTED]> wrote: > I checked my code(TCNT0 values etc) and found no error there.
TCNT0... are you using the "overflow reloads TCNT0" method? This one has a huge systematic error, and some statistical error depending on how long interrupts might be blocked occasionally. Better use CTC mode (clear timer on compare match) on a timer channel that can understand it, as that performs everything in hardware, so software latency issues don't affect the accuracy. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
