I am trying to generate a 1.6Mhz frequency from Mega 2560 board.
One told me this, I am a new users and I really don't know how to use such things.
[/quote]
16,000,000/(21(1+4)) = 1,600,000
You will need to configure: one of the timers to run in "Clear Timer on Compare Match (CTC) Mode"; with a prescaler of 1; an output compare of 4; and one of the two associated output pins set to toggle.
[/quote]
Could anyone told me how to realize this?
Besides, even though it claimed to work at 16Mhz, but when I use
digitalWrite(36, HIGH);
delayMicroseconds(1);
digitalWrite(36, LOW);
delayMicroseconds(1);
it do not work correctly and the output is not correctly as 500khz, could anyone told me why?
How could I let the microcontroler work at higher frequency? I want it to produce several signal except the clock at the frequency of 1.6Mhz.
Thanks!!!