ntsc video
DGRE
Posts: 8
has anyone written code in sx/b for a video generator? Im ok with hor.line timing but Im having trouble with interlacing-Im trying to make a black and white bar generator. I can get an ok 3 step grey scale-black grey and white but my monitor goes out of sync when i try to add interlacing -thanks
Comments
Is there a reason you NEED interlacing ?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·
How can you not be using interlacing when the NTSC is based on an interlacing scheme? When the picture is scanned out, it's done every other scanline (a field) followed by all the missing scanlines (the other field). This is interlacing and it's the only way NTSC works. Even if you send the same data on each field you're still interlacing, you're just cutting your vertical resolution in half.
Thanks, PeterM
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I guess it depends on what you call interlaced.
A "normal" interlaced video signal will do one frame then send a "half-line" at the beginning of the 2nd frame, and that gets the vertical position in between the 1st frames scan lines. Non-interlaced video just sends the same frame 60 times a second. And if you look closely you will see a tiny black horizontal lines between each scan line. This is because it doesn't include the "half-line" of video to get the lines in between.
Many older video games (Atari 2600) generate non-interlaced video. In other words the same frame 60 times a second.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·
On my NTSC system, I support 160 colors, 256x192 pixels and full screen scrolling at 60fps. All you have to worry about is the scanline.
I've done B/W bars with a PIC at 20Mhz (in assembly) and I know it can be done in as low as 4Mhz.
What kind of generator are you trying to do? Maybe we can help.
-cbmeeks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://metroidclassic.com
=========
DMCA Sucks
RIAA Sucks
The color carrier on NTSC uses two signals to describe color.· I Q modulation of _two_ signals with variable amplitude but constant phase and frequency can be described as _one_ signal with variable phase and amplitude, etc.etc.etc.etc.
Basically, the highest multiple of the color carrier frequency within the abilities of the SX28 is 20 * 3.579545 MHz or 71.59090 Mhz.
My problem is that I don't know much about crystals or such things, and I can't seem to find a way to generate a 71590900 hertz clock.· I've checked google and wikipedia, and everything seems very expensive or very large or very both.
The application is a procedurally generated birthday card that just plugs into·a TV set for a friend.· Any ideas?
I'd suggest looking at the new Propeller chip. It has color video generation hardware built-in.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
COMING SOON "SD DATA LOGGER" www.sddatalogger.com
"I reject your reality, and substitute my own." Mythbusters
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Here are some pics of my homebrew GPU.
galaxy.signaldev.com/hardware/gpu/
I managed to get over 160 colors in NTSC and even hardware scrolling.
Go over to xgamestation.com and get Andre's book. That will teach you everything you need to know about NTSC and video using the SX.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Metroid Classic:
http://metroidclassic.com
Metroid Forums:
http://eblarg.com/bbs/mc
=========
DMCA Sucks
RIAA Sucks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1+1=10
Hehehe.
Let's just say I know something you don't....a top secret feature of the SX-Key....
Nah, I'm just joking with you. The reason I did that was because my workbench is on a table opposite of my computer so I had to string a cable up and over the ceiling to my bench. The reason I used a DB-25 was because that was literally all I had and I had no money to buy a DB-9. I could have waited until next payday and bought some but I just couldn't wait.
So, I wired the needed pins into a DB-25 and it works perfectly.
cbmeeks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Metroid Classic:
http://metroidclassic.com
Metroid Forums:
http://eblarg.com/bbs/mc
=========
DMCA Sucks
RIAA Sucks
The same crystal signal was passed through an Op-Amp that drove a home made delay line with·6 adjustable taps. Each tap fed another Op-Amp that that I could control from the PIC to Pass the 3.58 Color signal for that particular color.
Only One 'Color Bar' Amp was on at any one time.
The output DC level of the Op-Amps was also adjustable, just how I'm not remembering, this was many moons ago. I think I chose using Op-Amps over Analog Switches for this reason.
Finally the Color information was added to the PIC Video generated stuff.
Clear as Mud.
In other words·for example, when generating the Red Color Bar the Red Op-Amp would be turned on and the total delay from the·Crystal through the delay line and Op-Amps was such to produce·the Red Signal. I should note,·there was an additional Op-Amp used for the Burst Reference.
Sounds complicated but turned out fairly simple overall and adjusting the various delays to within 2 degrees was quick and easy using a Vectorscope.
The Delay Line resembled one·of those straight adjustable Power Resistors, except with very fine wire.
Using the same crystal for the PIC Clock and color signal greatly simplified the timing in the PIC Coding.
If I remember, the Burst was the most critical, I think I used 8 cycles, which is the lower limit.
I did use interlacing, I find that most video devices are very tolerant but some are not.
I can't remember that the code was all that more complicated for interlacing.
I do remember that the code was heavy with 'straight-line' coding (not a lot of subroutine calling), most calls were to delay routines and padded with nop's.
Tom M.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Metroid Classic:
http://metroidclassic.com
Metroid Forums:
http://eblarg.com/bbs/mc
=========
DMCA Sucks
RIAA Sucks
Seriously. She's awesome.