Project

General

Profile

Actions

Feature #14

closed

Svideo core for first prototype

Added by foft about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
04/24/2017
Due date:
% Done:

0%

Estimated time:

Description

Waiting the Chinese sun to rising, I decide to proceed with the "video mod" of our v 1.0 board. So I desolder the "vsync" pin 12 of video dac, and solder it again using a "kynar cable" to a near via, which drive directly to F15 of FPGA.
So, when you have ready some core to try it, let me know it.


Files

composite_eclaire_basic.png (83.4 KB) composite_eclaire_basic.png scanline atari basic on eclaire foft, 06/30/2017 09:49 PM
composite_atari_basic.png (88 KB) composite_atari_basic.png scanline atari basic on atari foft, 06/30/2017 09:49 PM
composite_eclaire_max.png (82.3 KB) composite_eclaire_max.png foft, 06/30/2017 10:09 PM
composite_atari_max.png (82.1 KB) composite_atari_max.png foft, 06/30/2017 10:09 PM

Related issues 1 (0 open1 closed)

Has duplicate Feature #1: Svideo sync line supportClosed04/04/2017

Actions
Actions #1

Updated by foft about 7 years ago

Panos tried out a new core with composite only - on green using the sync pin. Looks brighter but just black and white - on several TVS.

I think its black and white because...

Basically I re-scaled Y to use the full DAC range. Composite is made by basically Y + chroma. Since Y is now a larger range (say 0-255 instead of 140-255) I need to scale chroma similarly. So basically chroma is 50% of the voltage it should be...

Actions #2

Updated by foft about 7 years ago

Should add that this should not be done for direct chroma output for svideo... Since that is still on a 0-0.7V DAC output.

Actions #3

Updated by foft almost 7 years ago

Setting this up in the simulator so I can understand chroma better.

The problem seems to be that I've used all the space for luma and chroma is a sine wave +-255. For some reason it only allows space of 32 though - which is odd! Anyway I need to allow some space of the chroma in composite video - and rescale it larger.

Reading video demystified this isn't really to spec. I think changing R5 might actually yield more 'correct' results. In any case I think we might be able to get good results from the sync-on-green approach so will continue to try that first.

Actions #4

Updated by foft almost 7 years ago

Scaled luma with 64 space for chroma - when in composite mode only. No point throwing away svideo brightness.

Added composite to video selection menu - since the G pin is used for both it can't be generated together.

Built for v1 and v2 - untested as yet.

Actions #5

Updated by foft almost 7 years ago

Debugged in isim to get lots of overflow/underflow/blanking/burst incorrect cases!
Added colour bars and asserts for under/overflow. Looks like we have more space than I thought to allow slightly higher luma scaling (224/256). Verifying...

Actions #6

Updated by foft almost 7 years ago

  • Priority changed from Normal to High
Actions #7

Updated by foft almost 7 years ago

  • Has duplicate Feature #1: Svideo sync line support added
Actions #8

Updated by foft almost 7 years ago

Worth a read for some background: http://codeandlife.com/2012/10/09/composite-video-decoding-theory-and-practice/#more-1032
After this its 'Video Demystified' for the details

Updated by foft almost 7 years ago

Added traces of Atari basic from the scope, to see the voltage level differences.

Eclaire is driving my monitor, Atari is through a 66ohm resistor (little low, so voltage is suppressed a little).

Still, a stark difference!

Actions #10

Updated by foft almost 7 years ago

Atari
scanline atari basic on atari

Eclaire
scanline atari basic on eclaire

We have a range of 0-1v on the DAC. 0-0.3V sync and 0.3V-1.0V is set by changing the dac level. So trouble is its not really enough. Might still need to change R5 on the V2, so perhaps we need a jumper for 'composite level'/'rgb level' as well as vhdl changes. Still sure we can make it might better with pure vhdl.

Actions #11

Updated by foft almost 7 years ago

I mean see how the 'white' on ready already takes most of the range, without trying to increase it.

Updated by foft almost 7 years ago

Added a poke 712,15 for comparison of max values. Interesting how the amplitude for basic 'blue' is so much higher yet the peak amplitude is comparable...

Atari:

Eclaire:

Actions #13

Updated by foft almost 7 years ago

Interesting...

http://atariage.com/forums/topic/29621-atari-video-circuits-experiment/

So fixed saturation (except gray), just phase shifted for the cols. Then add luma. Might try that rather than generic rgb component.

Actions #14

Updated by foft almost 7 years ago

Writing an 'atari-style' implementation instead of going via RGB. Fixed saturation, simple phase shift for colour.

Actions #15

Updated by foft almost 7 years ago

That works, kind of! Basic screen and star wars shields look the correct colours, but I have no red. Also very grainy and svideo is a single colour?!

Actions #16

Updated by sadosp almost 7 years ago

Maybe is time to think about implementing one external RGB -> composite/s-video converter, fit directly to VGA output connector.
But the question still remain for me if people really need it.

Actions #17

Updated by Stephen almost 7 years ago

sadosp wrote:

Maybe is time to think about implementing one external RGB -> composite/s-video converter, fit directly to VGA output connector.
But the question still remain for me if people really need it.

My thoughts (coming from NTSC land). We haven't had TVs or monitors with S-Video connections available new for probably 15 years now. Also, s-video will not allow artifacting. So I would say that composite is good to have for games which rely on artifacting. VGA and HDMI will cover any other device. It's a safe bet to say I'll be using mine via HDMI 99.9% of the time.

Also, I will pretty much be running in PAL mode all the time with this device.

Actions #18

Updated by foft almost 7 years ago

I mean svideo and composite, it's the same thing pretty much.

I've got the gtia style one running pretty well for ntsc now. Its interesting to implement if nothing else:)

Actions #19

Updated by foft almost 7 years ago

For anyone with composite/svideo setup. Please can you tell me what you think of svideo_gtia6.sof vs the previous version.

This is generated more the 'atari way' - i.e. off hue/brightness with phase shifts, rather than being based on the RGB palette.

Actions #20

Updated by Stephen almost 7 years ago

foft wrote:

For anyone with composite/svideo setup. Please can you tell me what you think of svideo_gtia6.sof vs the previous version.

This is generated more the 'atari way' - i.e. off hue/brightness with phase shifts, rather than being based on the RGB palette.

Hate to be a dunce - where is the documentation for cabling s-video from this board? I have a Commodore 1084S monitor as well as a 20" Sony PVM which I can test.

Actions #21

Updated by sadosp almost 7 years ago

Stephen wrote:

Hate to be a dunce - where is the documentation for cabling s-video from this board?

You can use Green signal for composite video, or Green signal for Luma and Blue signal for Chroma for S-Video, from RGB connector.

Actions #22

Updated by foft almost 7 years ago

Hmm, just reading that IRE is relative so that might be why increasing voltage didn't make anything brighter!!

https://en.wikipedia.org/wiki/IRE_(unit)

So I wonder if I could have a 0V-0.5V signal that uses the correct relative scale and get it nice and bright?!

Actions #23

Updated by foft about 6 years ago

  • Status changed from In Progress to Closed

I don't see composite and svideo as core outputs, much worse quality even when perfectly done. I'm pretty happy with the current state, sometimes the TV controls need adjusting a little but that isn't a big problem.

Actions

Also available in: Atom PDF