How would you make it 31kHz mode perhaps?
gcvideo - Open source GameCube component cable solution
Modding and Hacking - Consoles and ElectronicsHello everyone. I'm new to the forums and I have been following this project for a couple months now. Great work to all of those involved! You have saved me from wasting the money I don't have on an official Component cable. I have a few questions I would like to ask and some ideas for those wanting to make a cable.
1. What parts would I need for the DVI version?
2. Can I use a custom connector and keep it all external?
3. Can both the analog version and the digital version be installed at the same time?
4. I have an American NTSC DOL-101. Is there any way to get at the very least RGB out of my Cube or will I have to get a DOL-001? If so, can someone get it up and running?
I also have an idea for cable makers. Can we make a box with the Digital AV connector (once it is recreated) that plugs into the back of the system (designed like the PS2 Network adapters) and has HDMI out for Video and possibly audio, TOSLINK for Digital Audio, a custom VGA port with support for both RGBHV and YPbPr, and a multi-out pass-through that has RGBS added?
1. What parts would I need for the DVI version?
2. Can I use a custom connector and keep it all external?
3. Can both the analog version and the digital version be installed at the same time?
4. I have an American NTSC DOL-101. Is there any way to get at the very least RGB out of my Cube or will I have to get a DOL-001? If so, can someone get it up and running?
I also have an idea for cable makers. Can we make a box with the Digital AV connector (once it is recreated) that plugs into the back of the system (designed like the PS2 Network adapters) and has HDMI out for Video and possibly audio, TOSLINK for Digital Audio, a custom VGA port with support for both RGBHV and YPbPr, and a multi-out pass-through that has RGBS added?
(*) Minor exception: The "cable detect" signal on pin 1 flows from the external board to the cube, but it's just connected to 3.3V. You could just wire that one to 3.3V (pin 17) directly in the cube and not connect it to the converters at all. Things would work without that signal, the Cube just won't give you the option to switch to 480p.
Thank you Unseen. I was planning on making a box that attaches to the back of the GameCube with a standard DB25 parallel port and put everything in it. Is there any way to generate the 54MHz signal needed so we could get 480p out of the DOL-101s? If you need a DOL-101 I might be able to help with that.
Can that be changed so its enabled?
I happened to come across this topic. Apparantly there still is a 54MHz clock signal on the board.
It seems he is also able to still get 480P. Doesn't that mean that the VDATA inputs can run at the 54MHz rate even if there is only a 27MHz clock going into the encoder?
I might want to mess around with this some day. What is an easy way to get 480p from a PAL cube? Also, does the 480p (and also other resolutions) comply to any standard? I believe 4:3 480p is supposed to have 858 pixels horizontally and 525 lines. I am worried that if the GC does not closely follow that spec some displays will not accept the HDMI output, since you provide a clock for the pixels there.
It seems he is also able to still get 480P. Doesn't that mean that the VDATA inputs can run at the 54MHz rate even if there is only a 27MHz clock going into the encoder?
I might want to mess around with this some day. What is an easy way to get 480p from a PAL cube? Also, does the 480p (and also other resolutions) comply to any standard? I believe 4:3 480p is supposed to have 858 pixels horizontally and 525 lines. I am worried that if the GC does not closely follow that spec some displays will not accept the HDMI output, since you provide a clock for the pixels there.
And for those who know about the finer details of NTSC: The 1000/1001 factor is much smaller than the 1% pixel clock frequency deviation allowed by HDMI.
(How to obtain rather detailed knowledge about video signals: Build something that converts/outputs them =) )
I also have an idea for you Unseen:
Can you make a DVI version that supports both analog and digital like many PC Video cards?
Thank you everyone for the info on the DOL-101s! Now I don't have to buy a "new" GameCube.
Allright, so the GC seems to output video that more or less complies with CE-861. I checked on of the HDMI spec documents (I believe those are not supposed to be available freely), but could not really find much about the signal timings (number of pixels per line, number of lines, blanking periods etc.). That surprises me a bit. Do you happen to have a source with the timings for different video modes more detailed?
I have been working on an N64 to VGA mod and planning to add HDMI once I have new PCBs. The N64 video has some really weird timings. It has about 773 pixels per line. I do not think every TV would accept this signal if it was converted to HDMI directly, since the 773 pixels is kind of weird (if it is 240p you first line double it of course, but then you still have the weird 773 pixels). Do you have any idea if it would be possible to get a more standard video output (640x480 with 800 pixels per line for instance)?
I would be able to write the image to a framebuffer and then read out the image and output it with more compliant timings. Ideally you would then use two framebuffers, one for reading and one for writing and switch between these. Otherwise you would get tearing. However, in that case an N64 and a VGA frame need to take exactly the same amount of time (the VSYNC of the N64 and VGA are then sort of "phase locked"). That seems really hard to do.
Perhaps you have any suggestions how to solve this problem. Currently I just use one framebuffer which I write to and read from at the same time. I do not really notice any tearing. That way I can also output VGA that is close to timing specs.
I have been working on an N64 to VGA mod and planning to add HDMI once I have new PCBs. The N64 video has some really weird timings. It has about 773 pixels per line. I do not think every TV would accept this signal if it was converted to HDMI directly, since the 773 pixels is kind of weird (if it is 240p you first line double it of course, but then you still have the weird 773 pixels). Do you have any idea if it would be possible to get a more standard video output (640x480 with 800 pixels per line for instance)?
I would be able to write the image to a framebuffer and then read out the image and output it with more compliant timings. Ideally you would then use two framebuffers, one for reading and one for writing and switch between these. Otherwise you would get tearing. However, in that case an N64 and a VGA frame need to take exactly the same amount of time (the VSYNC of the N64 and VGA are then sort of "phase locked"). That seems really hard to do.
Perhaps you have any suggestions how to solve this problem. Currently I just use one framebuffer which I write to and read from at the same time. I do not really notice any tearing. That way I can also output VGA that is close to timing specs.
You would need a partial or complete frame buffer if the line-rate or frame-rate is non-standard and you want a standard-compatible output. One example of this is the Gameboy Advance, it refreshes its display about 60 times per second (good), but with a line rate of about 13.something kHz (bad). For that system you would need to buffer a larger part of the image to be able to output it in a monitor/TV-compatible manner, but frame sync would still be possible (but more complicated).
When I tried to sync at least the input and output frame rates, tearing suddenly became extremely visible because the tear line always hovered around the same Y position (no capture available, sorry).
(Disclaimer: Certain contents of this post may suggest the existence of currently-unreleased hardware projects. I can currently neither confirm nor deny the existence of such projects. Furthermore, the existence of these contents does not imply any plans for future release of any such projects, existing or nonexisting, by me or anyone else. Do not use the contents of this posting as basis for financial decisions. This posting does not constitute financial advice. Void where prohibited by law. Do not taunt Happy Fun Ball.)
I agree.
This is what I have been thinking off as well, but when I thought about how to do it, it seems kind of hard. In one line for the N64 we have 773 pixels (actually there is also a half pixel as well, but let's ignore that). If we would line double it, we would need a VGA clock that is twice as high. Let's say we also want to switch to 800 pixels per line for VGA, so it complies with 640x480 specifications. Then you would need to multiply the N64 pixel clock by 2*(800/773). I do not think a PLL in an FPGA can give you this level of preciseness. Unless it is okay to sometimes give 779 clocks per line and sometimes 801 for instance. Maybe I am overthinking this whole thing?
Also I believe N64 has 263 lines in 240p, so if line doubled we would end up with 526 lines. This is most likely not an issue for most monitors/TVs.
For DVI/HDMI modulating the output pixel clock slightly so that it has the correct value on average may be an option, but I have no idea what the maximum allowed jitter is for those transmission standards. The non-standard pixel clock of the N64 is basically the main reason why I'm not looking into building a digital video solution for it myself and instead wait for someone else to solve these problems.
I noticed the Neo Geo HDMI project does that but then for the Neo Geo clock itself. Here is the code snippet:
[TABLE="class: highlight tab-size-8 js-file-line-container"]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]// Neo Geo Clk Gen[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]////////////////////////////////////////////////////////////////////////[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"][/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]`define NEOGEOCLK_LIMIT (`FULL_WIDTH*`FULL_HEIGHT*5) // 5x as TMDS clock is 5x pixclk[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]`define NEOGEOCLK_ADDITION (`NEOGEO_FULL_WIDTH*`NEOGEO_FULL_HEIGHT*2) // 2x as want 2 transitions[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"][/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]reg [23:0] neoGeoClks;[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]reg neoGeoClk;[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"][/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]initial[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]begin[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] neoGeoClks=0;[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] neoGeoClk=0;[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]end[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"][/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]always @(posedge clk_TMDS)[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]begin[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] if (neoGeoClks>=`NEOGEOCLK_LIMIT)[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] begin[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] neoGeoClks<=neoGeoClks+`NEOGEOCLK_ADDITION-`NEOGEOCLK_LIMIT;[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] neoGeoClk<=!neoGeoClk;[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] end[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] else[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"] neoGeoClks<=neoGeoClks+`NEOGEOCLK_ADDITION;[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[TD="class: blob-code js-file-line"]end[/TD]
[/TR]
[TR]
[TD="class: blob-num js-line-number, align: right"][/TD]
[/TR]
[/TABLE]
I tried the opposite: calculating the pixelclock for VGA from the N64 pixelclock. I tried to use a clock as high as possible for the calculation process (so multiply the N64 pixel clock as much as possible). I got it to work at 350 MHz. I took a look at the pixelclock on an oscilloscope and it would jump from 24-26 MHz. The picture showing on screen was still looking fine. I have something weird however, my N64 is PAL and when I run NTSC games (through a flashcard) the framerate is 61 Hz. I think the PAL console has some input frequencies differently. One thing however, the VGA picture was now 61 Hz as well. The N64 frames and VGA frames are not in sync yet however (checked it with signaltap), but I think I did the calculation wrong slightly.
When I finally have my board with HDMI I will give this pixel clock generation a try to see if HDMI accepts the jitter in the clock.
I was thinking of the last thing. The lower the clock you generate the lower the jitter is relatively. I was thinking of generating a pixel clock/2 (perhaps I can go lower, but I can not find it in the datasheet, using cyclone IV FPGA) and then feed it to a PLL to multiply it by 2 again. Not sure exactly how a PLL works, but if it then averages the clock again, the resulting output may have less jitter again, which might make this thing viable as HDMI clock.
I'll give the PLL method a try this weekend. I also need to see if I can get the N64 frames and VGA frames to sync correctly with this method.
Oh yeah, and I will try to swap some oscillators on my N64 at some point.

Original thread: https://assemblergames.com/threads/gcvideo-open-source-gamecube-component-cable-solution.53464/
![[IMG]](https://web.archive.org/web/2im_/http://i.imgur.com/XaCtan1.jpg)