05-08-2019, 03:30 PM
(This post was last modified: 05-08-2019, 03:36 PM by ppppenguin.)
I've been doing some work on 405 to 625 conversion. The attached photo shows result of first attempt. the interpolation is horrible but that should just be a matter of tweaking the interpolator coefficients. There are also problems relating to vertical sync and position which I hope won't be a huge problem. The 405 input to my converter is from an Aurora that's converting 625 line TCF down to 405.
The important point is that I did this without building a dedicated 405 line front end. I used the experimental 625 to 405 converter that I built a few years ago as the basis of my design. This in turn uses the hardware from a professional deisgn I did for a client. (The last generation of TBC/standards converters that I did for G2 Video Systems.) This uses a Philips SAA7118 as the analogue video input. It's designed for 625 and 525 only so I had doubts about how it would handle 405. If you stick 405 into it, the result is pretty much nothing. So what's the magic sauce?
I had the lightbulb moment last week. The SAA7118 uses a 24.576MHz xtal as its master clock. Everything else, including the 27MHz video clock output is derived from that. The actual xtal isn't phaselocked, you can use any source of 24.576MHz, so what happens if you feed (405/625) * 24.576MHz into the chip? I hooked up a signal generator, actually the output of my network analyser which is both precise and easily variable. After a very minor change to the logic in the FPGA, relating to video presence detection, there were pictures on the screen! Not full height and in the wrong place veritcally but that's just a question of tweaking some numbers in the interpolator. Easily done with my debug software. The result is what you see.
The 15.925MHz clock for the SAA7118 will be generated in the FPGA using a DTO from the 108MHz clock that's available. As far as I can tell the exact 15.925MHz is not at all critical.
The important point is that I did this without building a dedicated 405 line front end. I used the experimental 625 to 405 converter that I built a few years ago as the basis of my design. This in turn uses the hardware from a professional deisgn I did for a client. (The last generation of TBC/standards converters that I did for G2 Video Systems.) This uses a Philips SAA7118 as the analogue video input. It's designed for 625 and 525 only so I had doubts about how it would handle 405. If you stick 405 into it, the result is pretty much nothing. So what's the magic sauce?
I had the lightbulb moment last week. The SAA7118 uses a 24.576MHz xtal as its master clock. Everything else, including the 27MHz video clock output is derived from that. The actual xtal isn't phaselocked, you can use any source of 24.576MHz, so what happens if you feed (405/625) * 24.576MHz into the chip? I hooked up a signal generator, actually the output of my network analyser which is both precise and easily variable. After a very minor change to the logic in the FPGA, relating to video presence detection, there were pictures on the screen! Not full height and in the wrong place veritcally but that's just a question of tweaking some numbers in the interpolator. Easily done with my debug software. The result is what you see.
The 15.925MHz clock for the SAA7118 will be generated in the FPGA using a DTO from the 108MHz clock that's available. As far as I can tell the exact 15.925MHz is not at all critical.
www.borinsky.co.uk Jeffrey Borinsky www.becg.tv