Author Topic: AVR Frequency  (Read 1387 times)

0 Members and 1 Guest are viewing this topic.

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
AVR Frequency
« 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

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: AVR Frequency
« Reply #1 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!
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: AVR Frequency
« Reply #2 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

Offline devlaam

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: AVR Frequency
« Reply #3 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.

 


Get Your Ad Here

data_list