[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] howto: accurate fast usart with IntRC clock and OSCCA

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] howto: accurate fast usart with IntRC clock and OSCCAL
Date: Wed, 28 Feb 2007 20:40:54 +0100 (MET)

David McNab <address@hidden> wrote:

> So it occurred to me that, if accurate timing for other
> functionality is not critical, and if one is using the internal
> clock, one can tune OSCCAL to get very close to the real target
> baudrate.

> If one wants good timing, one can recompile the code with:
>   #define F_CPU 7372800
> and end up with reasonable timing with the delay function

IIRC, 7.3728 MHz is guaranteed to be in the range that can be tuned
with OSCCAL, I guess what reasons the engineers might have had in mind
when they spec'ed it that way. ;-)

cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]