Posted: Mon Feb 23, 2009 12:21 am Post subject: high frequency by atmega 128?
We drive a atmega128 with 16MHz ext. crystal and need a 7MHz signal from timer0 or timer1, but the maximum frequency is 2MHz. what's the problem?
Thanks
->((dashtesobh@gmail.com)))
There isn't a problem with the AVR... it isn't possible to generate a 7MHz output from the AVR running at 16MHz - see the datasheet sections on system clock options and the timer clock generators.
You will need a separate crystal oscillator or some kind of PLL/DDS clock generator to get a 7MHz signal. _________________ If all else fails, read the manual. Even better: read the manual before something fails. If you can't find it in the manual, search the forum.
BascomAVR 2.0.8.5
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum