Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Xtal and Baud Rate

2009-03-09 by David VanHorn

On Mon, Mar 9, 2009 at 5:38 PM, John Samperi
<samperi@ampertronics.com.au> wrote:
> At 07:59 AM 10/03/2009, you wrote:
>>#define UBRRVAL (((F_CPU/(USART_BAUDRATE*4UL)))) // using the double baud flag
>
>>May want to try *8UL instead of *4UL for double speed. (usually *16)
>
> I know you would NEVER have overlooked that in ASM.  ;-)

The problem is that the equation I quoted IS giving me the right baud.
I don't know why..

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.