VGA Vsync protocol

Hello,

I've only done one or two things with the arduino microcontroller so im still learning. I have a long way to go to learn, so any help is appreciated.

For a project that i am working on, i need to read data from pin14 (Vsync) from a VGA cable and have a led be synchronized to that signal. In terms of dealing with the LED and the output, i think im ok, but im really unsure on how to deal with the input.

Looking online, what i could find was the pin 14 on a VGA cable is a TTL signal. I'm assuming this is a digital signal.

Do i just connect this signal to RX 0 on mega adk arduino board?
Would i specify it as serial input and then user serial.read to read the input?

Or do i just connect to any digital pin and just specify it as a digital input and use digitalRead to get the values?

Yeah, this is a really basic question but im unsure what to do.

Or do i just connect to any digital pin and just specify it as a digital input and use digitalRead to get the values?

Yes.

Better still use an interrupt pin so you don't have to continually look at the pin with a digital read.