[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Error in Timing.
From: |
Joerg Wunsch |
Subject: |
Re: [avr-chat] Error in Timing. |
Date: |
Wed, 1 Mar 2006 07:06:47 +0100 (MET) |
"Royce Pereira" <address@hidden> 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. ;-)
Re: [avr-chat] Error in Timing., Terry Karlson, 2006/03/02
Fwd: Re: [avr-chat] Error in Timing., Royce Pereira, 2006/03/04
Fwd: Re: [avr-chat] Error in Timing., Royce Pereira, 2006/03/04
Re: Fwd: Re: [avr-chat] Error in Timing., Royce Pereira, 2006/03/06