TVOUT running at 20mhz

Does anyone here know what I need to do to change the TVOUT software library so that I can use it with a 20mhz crystal ?

Thanks in advance

Bob

Its ok, I sorted it out, all I had to do was modify the entry in boards.txt for F_CPU to become 20000000L

I was also wondering why do I have to change the xtal back to 16mhz when programming ?
Is there any way to keep the 20mhz xtal permanently ??

Bob

Also, I will be trying TVOut at 24mhz (using a xtal) and at 32mhz (using a clock module) - its a very cheap experiment !!

mcnobby:
I was also wondering why do I have to change the xtal back to 16mhz when programming ?
Is there any way to keep the 20mhz xtal permanently ??

Unless you did some changes to the bootloader, and reflashed that too, the bootloader will run too fast at 20 MHz, and it will not be able to communicate properly when running the wrong speed.

// Per.

Google search
http://bit.ly/1diu83z
Arduino ATMEGA328 20mHz bootloader
http://forum.arduino.cc/index.php?topic=24119.0

I was also troubled by the same.

I rewrite the bootloader and keep the 14.318MHz(for NTSC Color) crystal permanently.
So, I need not change the crystal now.
I was referring to the article of this site.
http://penguin.tantin.jp/hard/Arduino/home_made_board.html

Nabe

OK no problem, I will stick with the method I am using cos I am moving up higher than 20mhz mainly cos I need more processing time for other things, especially during vbi and hbihooks

I am guessing that the speed wont affect programming over ICSP ??

I had tried to generate VGA signal with only Arduino and resistors.
And I think the work of this video is the limit of resolution at 16MHz crystal.

Nabe

I got 8 bit colour graphics on VGA 128x96 at 32mhz with 250kbps data input being processed - Im happy now !

some essential timing changes are required, otherwise you end up with only half a screen !!

I will be making this into a DUAL colour version soon - see here ->> http://forum.arduino.cc/index.php?topic=216136.0