>-----Original Message----- >From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Brian > >The mega16 has 3 buffer levels not 2 (I read this about a dozen times >in the data sheet but didnt think anything about it). So when figuring >out baud rate for UBRR you have to use 24 in the calculation not 16. > >I kinda understand this but if anybody has more information to clear it >up would be great. 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) No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.8/1362 - Release Date: 06/04/2008 11:12
Message
RE: [AVR-Chat] Re: comms problem
2008-04-07 by Brian Fairchild
Attachments
- No local attachments were found for this message.