Explanation of how the Propeller demo board outputs sound and video signals
unebonnevie
Posts: 20
Hi,
It's been a long since I last visited Parallax. Time to pick up electronics. I saw the Propeller demo board schematic at http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropDemoDschem.pdf.
And, I don't understand how the 3 resistors, 1.1Kohm/560ohm/270ohm, form a 1V 75ohm 3-bit DAC to output TV signals? What's the math behind this? Same question for the 3 sets of two resistors form 1V 75ohm 2-bit DACs that are used to generate red, green, and blue.
Thanks for any explanation. I understand the Propeller has built-in hardware to encode NTSC signals. How it works with the above DACs is what I am trying to understand.
It's been a long since I last visited Parallax. Time to pick up electronics. I saw the Propeller demo board schematic at http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropDemoDschem.pdf.
And, I don't understand how the 3 resistors, 1.1Kohm/560ohm/270ohm, form a 1V 75ohm 3-bit DAC to output TV signals? What's the math behind this? Same question for the 3 sets of two resistors form 1V 75ohm 2-bit DACs that are used to generate red, green, and blue.
Thanks for any explanation. I understand the Propeller has built-in hardware to encode NTSC signals. How it works with the above DACs is what I am trying to understand.
Comments
With the loading of the 75 Ohm TV input, this voltage drops closer to 1V and comes closer to 75 Ohms. The circuit can be modified slightly to produce an output closer to 75 Ohms impedance with a 1V range, but the existing circuit is fine for most uses.
Try the various bit combinations of the VGA outputs (0V/0V, 0V/3.3V, 3.3V/0V, 3.3V/3.3V) with the resistors used. You'll see how it works.
The sound output is handled with a PWM (pulse width modulated) output (in stereo). There's an application note downloadable from Parallax (AN001) that describes how both the PWM ADC and the Sigma-Delta DAC work and provide sample code.
Post Edited (Mike Green) : 5/15/2010 6:44:06 AM GMT
I wonder how deep any of the Propeller books out there get into this topic.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
I think a video driver app-note would be great.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
www.parallax.com/dl/docs/prod/prop/Hydra-Ch16Sample-v1.0.pdf
The entry page for these is:
http://www.parallax.com/Store/Microcontrollers/PropellerProgrammingKits/tabid/144/CategoryID/20/List/0/SortField/0/Level/a/ProductID/467/Default.aspx
[noparse]:)[/noparse]
@Bean: I love RUSH. Nice tagline!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
8x8 color 80 Column NTSC Text Object
Safety Tip: Life is as good as YOU think it is!
Thanks for posting the hydra video driver link pages...That sure helps.
How do you get to the app note? Thanks!
P.S. Two words "Tom Sawyer" OH YEAH!!!
P.S.S. "Closer to the heart" and "The Trees" are great too...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]
Post Edited (Bean) : 5/15/2010 6:50:31 PM GMT
The data sheet is actually pretty good. Some things are not well documented, but that plus working driver code is an awful lot. My own experience is favorable. There is bias because I have consistently hacked away at video related things, starting with old machines in the 80's. But, I don't think that's too much bias. The Parallax TV driver is a beast. It's great, but difficult to understand. No question there. Some of the other, simpler scan line buffer, or bitmap drivers are a lot easier, and perhaps it makes sense to incorporate some of that for newbies.
Of all the graphics code done so far, I find the simple 8x8 and bitmap stuff I and others have worked on to be the easiest. Most of that is right out of the late 70's and 80's era and just sort of rocks in that way. The Parallax driver chip wrote is actually bad *** powerful. IMHO, it could use a better interface, probably something done with a SPIN wrapper, and more documentation on the signal subtleties. Eric's templates are very, very good,and capable of evolving into most any desired graphics scheme. I give the nod to him on the better color driver too. That one hasn't been exploited much, but it's got a lot of potential, and it generates the color signal directly, putting many things under the control of the programmer that the other drivers don't.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
8x8 color 80 Column NTSC Text Object
Safety Tip: Life is as good as YOU think it is!
The video circuitry and code seem like magic to me too
I'm way better at understanding purely digital things...
I am an on/off type I guess.
Digital to analog and the reverse still seem puzzling.
I don't have an intuitive grasp of it yet. I can use it
and modify the code but I'm still puzzled.