CHAVA-MOLINA / arduino-tvout

Automatically exported from code.google.com/p/arduino-tvout
0 stars 0 forks source link

Improvement: Fix vertical sync pulses #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently the Vertical Sync works by simply extending the time that the sync 
line is held low.  This does not follow the NTSC or PAL spec; fixing this will 
result in higher compatibility with more devices.

Original issue reported on code.google.com by mdmetzle@gmail.com on 15 Oct 2010 at 11:29

GoogleCodeExporter commented 8 years ago

Original comment by mdmetzle@gmail.com on 17 Oct 2010 at 4:27

GoogleCodeExporter commented 8 years ago
To do after Beta 1.0 release.

Original comment by mdmetzle@gmail.com on 25 Nov 2010 at 3:09

GoogleCodeExporter commented 8 years ago
Well I tried to get vsync on my TV by setting pal_line_stop-vsync to 2 and 2.5. 
I did not get any output. I tested from 3 to 7 with increments of 0.5 but the 
PAL output still rolls up. At a higher value 34.5 it kind of gets distorted a 
bit in the Hsync 

Original comment by infi...@gmail.com on 2 Oct 2011 at 6:46

GoogleCodeExporter commented 8 years ago
So how shall I get vsync..any ideas?

Original comment by infi...@gmail.com on 2 Oct 2011 at 6:46

GoogleCodeExporter commented 8 years ago
I have fixed the v-Sync-problem in the video_gen.cpp on line 98

original: 
void vsync_line() {
    if (display.scanLine >= display.lines_frame) {
        OCR1A = _CYCLES_VIRT_SYNC;
        display.scanLine = 0;
Fixed:
void vsync_line() {
    if (display.scanLine >= display.lines_frame) {
        OCR1A = _CYCLES_VIRT_SYNC;
        display.scanLine = -1

Original comment by lerrypag...@gmail.com on 26 Nov 2013 at 3:22

GoogleCodeExporter commented 8 years ago
I can confirm the above fixed everything for me.

Original comment by Zecto...@gmail.com on 23 Jan 2014 at 4:22

GoogleCodeExporter commented 8 years ago
It fixed the problem (mega2560).
In my case it was line #204.

Original comment by melvladi...@gmail.com on 14 Apr 2014 at 10:07