/*basically, we do this: lines 0-9 front porch lines 10-11 Vsync lines 12-44 BackPorch lines 45-524 ActiveVideo
so, the logic is, if we're on line 10, start vsync, line 12, stop vsync. If we're in 45-524, do an hsync. */
I've just been reading these lines, and there are some mistakes :
every (i mean every) line must start with a front porch, not only the 9 first lines. These are black lines. A typical line is : 0.63µs high (front porch, video must be stopped at this point) 3.81µs low (hsync signal) 1.906µs high (back porch) 25.42µs still high (visible area, video can be sent) The first 9 lines are build like above, except there's no video during the 25.42µs of visible area.
On lines 10 & 11, we do the vsync pulse thing by putting the vsync line low during 2 lines (that's 0.06355ms). During those lines, we continue the hsync routine. Vsync pulse (remember that the front porch of the vsync pulse has been done during the first 10 lines of the screen) : 2 lines low (pulse) 33 lines high (vsync back porch) 10 + 2 + 33, we get 45 non-visible lines for a 640x480 resolution (800x525 actually)
We continue the hsync routine with black lines until the 45th. You can send some color from the 46th line to the 525th.
It's important to remember that you shouldn't send video signal during the sync pulses (that is, front porch + sync pulse + back porch time), H or V. That could be interpreted by the screen as a sync pulse.
my advice is : do no try to make fancy stuff at first. Start with trying to display a nice & solid red, blue or green. If you want to put 1v on the color lines with the 5v of your arduino, put a 300ohms resistor in series. It will do a voltage divider with the 75 ohms resistor that's in your screen. You can also try to send 5v directly to your screen, mine has survived ! Concerning the sync lines, you need a 75 ohms in series.
try my code and tell me if it works ;)
ok, I read the rest of your post, you don't need every word i wrote, but hey, it's typed ;D