Yahoo Groups archive

AVR-Chat

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

Message

Re: comms problem

2008-04-07 by Brian

> Have a look at the Mega16 datasheet on page 145 and you'll see that
> nowhere does it say to use 24 as a UBRR divisor, it's always 16 (or 
8
> for double speed mode). If you're having to use 24 then either your
> clock speed is wrong or you ar esetting the wrong divisor. You 
stated
> that '0x51' is the correct divisor, however it should be a 
decimal '51'
> not hex '51' which is what you are setting.
> 
> Brian (another one)

I have read the datasheet. I'm not sure why it worked but it does and 
yes I would like to figure it out.

I have uploaded photos for my clock signal for a 2.4576 xtl
http://tech.ph.groups.yahoo.com/group/AVR-Chat/photos/view/ba64?b=1

and the data stream set at 9600 baud.
http://tech.ph.groups.yahoo.com/group/AVR-Chat/photos/view/ba64?b=2

Is there a prescaler for the system clock? Not sure what to look at 
next to figure it out.

Brian

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.