Following tutorials online, I know that I am able to use the ATmega328p chip of the Arduino UNO with 16Mhz crystal and two 22pF ceramic capacitors, and it should function as normal.
I know that the TVout library requires accurate timing for video output. My question is: is it possible to use the above set up with TVout? Have anyone tried it before? Or are there anything I should do to make it work?
PS I have actually tried it once before, and it didn't work. I didn't test it thoroughly but I don't have the materials with me right now so I want to see if it works before I buy them.
Thanks a lot!
The TvOut library states that it with work with an Arduino Uno,
which is actually just a 328p with 16Mhz crystal.
So: Yes, it will work.
(EDIT: See next post)
The TvOut library states that it with work with an Arduino Uno, which is actually just a 328p with 16Mhz crystal.
So: Yes, it will work.
An UNO actually has a ceramic resonator with 0.5% tolerance for timing, so if anything using a barebones ATMega328P with a crystal will provide even more accurate timing.
"Following tutorials online, I know that I am able to use the ATmega328p chip of the Arduino UNO with 16Mhz crystal and two 22pF ceramic capacitors, and it should function as normal."
Don't forget 0.1uF caps from VCC, AVCC, and AREF to Gnd and 10K pullup resistor to VCC. Do not connect AREF to 5V.
Include a 4th 0.1uF cap from DTR pin of USB/Serial adapter to Reset so PC software create a reset & kickoff the bootloader for serial downloads.
Timing is not critical on a TV signal, it should work using a crystal or a resonator. There is enough "slack" in a TV system to compensate for a wide range of timing.
Having said that the "TV out" is quite crap at producing correctly timed signals anyway, that is more of a problem than the accuracy of the Arduino.
Thanks for all your replies!
So now that I can use an ATmega328p DIP chip of the Arduino Uno with the setup above, can I use ATmega328 TQFP SMD Chip?
I found the diagram from Hobbytronics:
It seems that the pins are identical with the DIP chip. Can I just move the setup to the SMD chip?
Yes, it's the same die inside both packages.
Promini, Nano, Uno, Duemilanove, all are interchangeable. I build the same functionality into my cards - you can see the '328P and support components at the lower left of this Programmer card (TQFP) and this shift register board (DIP) for example.