How to move the NTSC output on GRAPHICS_DEMO?
CannibalRobotics
Posts: 535
I'm tring to use the Graphics_Demo program as a basis for setting up my graphics display. In my implementation of the·Prop the base pin for the video is pin 4. TV_Text works fine.
On the Graphics_Demo program·the call to start the video driver is:
tv.start(@tv_status)
I have tried just hard coding it to '4' but nothing happens on the screen.
I cannot find how or where the value/location·of·[url=mailto:'@tv_status']'@tv_status'[/url] is set.
Jim-
·
On the Graphics_Demo program·the call to start the video driver is:
tv.start(@tv_status)
I have tried just hard coding it to '4' but nothing happens on the screen.
I cannot find how or where the value/location·of·[url=mailto:'@tv_status']'@tv_status'[/url] is set.
Jim-
·
Comments
Look at the first DAT block at the bottom of the Graphics_Demo. The address of those parameters gets passed to the TV driver. Make your changes there.
If you look in the TV driver, also at the bottom, you will find details on what each of them does.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
pins0 long %11110000_01110000_00001111_00000111
pins1 long %11111111_11110111_01111111_01110111
But there is no apparent corelation between what I see there and what is described in Tv_Pins.
'' tv_pins
''
'' bits 6..4 select pin group:
These seem to come in sets of 8 not 4. 7-0,12-8, etc. The only thing that looks like a 12 in 6..4 is the second byte of the first long. I messed with these but got no satisfaction. Any other hints?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A wise man told me; "All electronics are made to work by magic smoke.
Don't ever let it out as it's·very difficult·to get it back in."
j-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A wise man told me; "All electronics are made to work by magic smoke.
Don't ever let it out as it's·very difficult·to get it back in."
If you want your DAC on pin group "0" (pins 7..0); long tv_pins %000xxxx and set the lower nibble with the corresponding pin group mode bits. Do not forget to set tv_mode correctly. S-Video is trivial, the aural resistor on the DAC is connected to Chroma on S-video, and the other three are for Luma value. The only limit to the tv driver is that you can only use up to 8 pins of any pin group. Look at the last entry for pin group mode %1111, (tv_pins %xxx_1111), the upper 4 pins of the group "x" are outputting baseband & chroma (S-Video), and the lower 4 pins in the same group "x" are outputting broadcast & aural (Channel 2 or 3 with audio)!
Hope this helps de-mistify the TV driver for you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
E3 = Thought
http://folding.stanford.edu/·- Donating some CPU/GPU downtime just might lead to a cure for cancer! My team stats.
Post Edited (RinksCustoms) : 10/10/2008 11:57:27 PM GMT