Author Topic: AVR  (Read 2155 times)

0 Members and 1 Guest are viewing this topic.

Offline g44Topic starter

  • Jr. Member
  • **
  • Posts: 38
  • Helpful? 0
AVR
« on: January 24, 2010, 09:10:49 AM »
AVR micro controller
« Last Edit: March 05, 2010, 01:16:15 AM by g44 »

Offline Pierre

  • Jr. Member
  • **
  • Posts: 47
  • Helpful? 0
Re: AVR
« Reply #1 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

Offline g44Topic starter

  • Jr. Member
  • **
  • Posts: 38
  • Helpful? 0
Re: AVR
« Reply #2 on: January 24, 2010, 10:39:47 AM »
Thanks pierre
« Last Edit: March 05, 2010, 01:16:40 AM by g44 »

Offline Pierre

  • Jr. Member
  • **
  • Posts: 47
  • Helpful? 0
Re: AVR
« Reply #3 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

Offline g44Topic starter

  • Jr. Member
  • **
  • Posts: 38
  • Helpful? 0
Re: AVR
« Reply #4 on: January 25, 2010, 06:58:22 AM »
Thanks pierre
« Last Edit: March 05, 2010, 01:17:18 AM by g44 »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: AVR
« Reply #5 on: January 25, 2010, 09:51:42 PM »
g44, is this what you meant to ask for?
http://www.societyofrobots.com/microcontroller_xtal.shtml