CLK ARDUINO

Hi, I have an Arduino Uno. I want to generate clk on a digital pin( I suppose pin 9). Clk I want max 1-4 MHz. Anybody can help me. Thanks.

An Uno operates at 16MHz, Pulses at 1GHz are quite impossible.

...R

Sebid:
I understand, but can I get 4GHz?

If 1GHz is impossible, then 4 GHz is equally impossible.

I want to say 1MHz.. sorry I didn't see that I wrote GHz am realy tired..

You could probably get 1MHz by using one of the hardware timers.

...R

Using Timer1 or Timer2 you can get frequencies up to 8 MHz that divide evenly into 16 MHz: 8, 5.333, 4, 3.2, 2.666... That includes 4, 2, and 1 MHz.