SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By spartan09
Hello, I have a AVR question that I have been set from my class. Please note: I AM NOT ASKING YOU TO ANSWER THE QUESTION!I m just asking to see if it correct as i have no simulation software or hardware available at the time. I have supplied my answer with workings the chip i m using is a ATMega164P

An AVR is running from an 11.0592MHz clock. For serial transmission only, at 4800 Baud:

Which bit(s) in the UCSR0B need to be set?

What value needs to be loaded into the UBRR0 register? (Assume U2X0 = 0.)


My Answer:

From the data sheet I would set bits: 1<<TXCIEn | 1<< TXEn | 1<<TXB8n

The values that need to be loaded into the UBRR0 register are:

UBRR0 = ( f / (16XBaud Rate)) -1
UBRR0 = 143

So values 143 needs to be loaded into the register

Can someone who is familiar with micro controllers confirm my answers as I am new to this. If they are wrong could you please correct me. Much appreciated

User avatar
By Ross Robotics
Double posting will NOT get you an answer faster, if anything, it will slow it down.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]