Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: g44 on January 24, 2010, 09:10:49 AM

Title: AVR
Post by: g44 on January 24, 2010, 09:10:49 AM
AVR micro controller
Title: Re: AVR
Post by: Pierre on January 24, 2010, 09:31:46 AM
Datasheet for a specific ATmegaXXX

     Equation for calculating Baud Rate:
     Three(3) operating mode and this is one of them.

     Asynchronous Normal mode (U2Xn=0)-->  BAUD= Fosc / 16(UBRRn+1).

     This is for the ATmega168.  An easy search for your microcontroler
Title: Re: AVR
Post by: g44 on January 24, 2010, 10:39:47 AM
Thanks pierre
Title: Re: AVR
Post by: Pierre on January 24, 2010, 03:58:01 PM
To know about Baud rate would be that you are looking to use UART.  You will look for the least amount of error on the Baud rate you take(look for the table on UBRRn.  Important to use the same Baud Rate for the microcontroler and your laptop.

Quote
What are the 3 operating mode
1.  Asynchronous Normal mode;
2.  Asynchronous Double Speed mode; and
3.  Synchronous Master mode.

Look for the tutorial on UART. ;)  Hope this will help you a little
Title: Re: AVR
Post by: g44 on January 25, 2010, 06:58:22 AM
Thanks pierre
Title: Re: AVR
Post by: Admin on January 25, 2010, 09:51:42 PM
g44, is this what you meant to ask for?
http://www.societyofrobots.com/microcontroller_xtal.shtml (http://www.societyofrobots.com/microcontroller_xtal.shtml)