TV Display Basics
Philldapill
Posts: 1,283
Hey, I've read the Propeller Cookbook and I love the DIY alternatives to the items that can be purchased commercially. One of these was the TV adapter consisting of 3 resistors and an RCA plug. I want to be able to use my prop to display information on the tv screen for debug purposes and possible a real solution later on. However, I know virtually nothing of how to begin. Is this design of 1.1k, .560k, 270k and an RCA plug the correct way to go? If so, how do I impliment this into software? i.e. how do I tell the software what pins to use? Thanks!
Comments
When the driver is initialized, you provide the first I/O pin number (always a multiple of 4) of the pins being used. The resistors are used to implement a 3 bit video DAC. The 4th resistor is optional and is used to mix in audio when using broadcast mode.
Have a look at the demo programs and the text / graphics drivers.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 1/3/2008 8:24:29 PM GMT
Don't get absurd with the resistor values: 220, 470, 1k will do fine!
(Don't forget the ground connection.. [noparse]:)[/noparse]
Use the graphics demo that comes with the Propeller Tool to check your work, IIRC, it should
already be configured for the same pins as specified by the Cookbook, used on the demoboard as well.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
The pins in TV_terminal.spin are defined as follows:
· tvparams_pins := (basepin & $38) << 1 | (basepin & 4 == 4) & %0101
basepin is set in the top level (Ch3-Ex11)-Display.spin file with
· TV.Start(12)·
If you wire your board up like that and use·those statements·in your code·it should work.
If you have a choice with your monitor, use NTSC. You will get a steadier and clearer image as the PAL frequencies are slightly wrong due to the 5 MHz oscillator.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 1/3/2008 9:10:16 PM GMT