Maximum frequency generated by Arduino uno

Does anyone have idea of the maximum frequency that can be generated by Arduino uno? Thanks

If you replace the resonator, 20 MHz.

If you don't, 16 MHz.

In both cases, that would be accomplished by outputting the clock signal on a specific pin.

Palliser:
Does anyone have idea of the maximum frequency that can be generated by Arduino uno?

Maximum frequency of what? Sound? Clock speed? If clock speed, then it's 16MHz

What the maximum resonator you could use for a Arduino Uno R3? 20MHZ is the limit?

The maximum supported speed is 20 MHz.

The processor can be overclocked. I vaguely recall that the memory is physically limited to 32 MHz; it simply cannot fetch data any faster.

Palliser:
Does anyone have idea of the maximum frequency that can be generated by Arduino uno? Thanks

What do you mean by "generated"? The hardware timers can output some fraction of the clock speed.

This thread seems to ask the same question:

http://arduino.cc/forum/index.php/topic,128269

I am sorry that I do not expressed better my question but at the same time it is interesting to note all the approaches that have been generated.
I wanted in my question to know the highest frequency that can be generated switching one digital output as shown in the general example below:

int pin = HIGH;
....

void setup() {
Serial.begin(9600);
pinMode(5, OUTPUT); 
}
....

void loop()
{
...

if (pin == HIGH)
pin = LOW;
else
pin = HIGH;

digitalWrite(5, pin);
....
}

Thank you.

Try it and see. It won't be particularly high, and the signal will have artifacts due to any delays introduced by other processing, and timer interrupts.

The method of using timers will be better, in the sense that the hardware can generate a higher frequency, and it won't be affected by other processing.

int pin = HIGH;

void setup() 
  {
  pinMode(5, OUTPUT); 
  }

void loop()
  {

  if (pin == HIGH)
    pin = LOW;
  else
    pin = HIGH;

  digitalWrite(5, pin);
  }

I measured 90.566 KHz with the above sketch.

What is the best product to use if I am trying to obtain 36mhz?

What is the best product to use if I am trying to obtain 36mhz?

what is your definition of "best"?

Jayee165:
What is the best product to use if I am trying to obtain 36mhz?

I presume you mean 36 MHz? Not 36 milliHerz?

You won't get that out of an Arduino, whose clock is only 16 MHz (20 MHz tops with a different crystal).

Perhaps it's time to explain your project. Why do you need 36 MHz? Are you making a radio station?

void loop()

{
...

if (pin == HIGH)
pin = LOW;
else
pin = HIGH;

digitalWrite(5, pin);
....
}

Jayee165:
What is the best product to use if I am trying to obtain 36mhz?

I wouldn't be trying to switch that way. Period. Use a hardware timer. Whatever platform you get.

This is not something that you should really do with a microprocessor, its not what they are designed for!

All you need is a single chip such as this http://www.datasheetdir.com/MK3727+VCXO.

Mark