Society of Robots - Robot Forum

Software => Software => Topic started by: Joker94 on November 27, 2009, 12:53:53 AM

Title: AVR Frequency
Post by: Joker94 on November 27, 2009, 12:53:53 AM
Hi

I have looked around but have found no conclusive answers.

My question is in "configuration Optioins"  what do i set the "frequency" as.

thanks Joker94
Title: Re: AVR Frequency
Post by: Webbot on November 27, 2009, 12:57:25 AM
For an ATMega8 (you dont say which AVR!)
The default frequency is 1000000 (!Mhz) unless you change the fuse bits to use 8000000 (8Mhz).
Of course if your board has an external clock then thats another story.
Sorry if I'm a bit vague - but so is your question!
Title: Re: AVR Frequency
Post by: Joker94 on November 27, 2009, 01:11:20 AM
extremley sorry i thought of all of those things but forget to add them when writing the question.

It is pretty much the $50 robot board. So Atmega 8.

Hope that helps


thanks again
Title: Re: AVR Frequency
Post by: devlaam on November 27, 2009, 03:33:57 AM
As the atmega8 does not have a hardware prescaler i really think you have to fuse it to 8MHz if you want to use that frequency.
At the same time, you can enter that value at the configuration options.  Otherwise, if you have the default, you set it to 1MHz

Ruud.