Detecting PAL vertical sync with PIC

Mar 03, 2005 4 Replies

I would seriously consider the above advice on the 1881 chip. However, if you just *must* do it with a pic, here is one way...

Schematic:

formatting link
Source:
formatting link

Basically, detect the horizontal sync pulses and then look for the wide ones that denote vertical sync.

Luhan Monat (luhanis 'at' yahoo 'dot' com) "The future is not what it used to be..." http://members.cox.net/berniekm

Don't even go here. Just get yourself a sync separator chip like an EL1881 and the whole job is done for you.

d

Pearce Consulting

formatting link

formatting link

pin 3

martin

"An eye for an eye makes the whole world blind" Gandhi

Hi,



What would be the simplest way to detect the vertical sync with a pic (16f628) chip on a PAL video signal ?



Everything i google up is quite complex as it does a whole lot more than i want. The only thing i care about is to trigger an event for each vertical sync that passes my way.



Any suggestions would be great :)



Alex.


Hello Alex,

Assuming you are dealing with composite video I second the opinion of the others, to get a decent sync separator chip such as the LM1881. Ok, it's over a Dollar but consider this:

For a decent V-Sync locking under noisy conditions you need to run at least an integrator. Sometimes I went as far as a PLL (which low cost sync chips usually don't have). More important is that in nearly any video application you need to clamp the black level because most incoming signals will arrive AC-coupled. Chips like the LM1881 generate a black level clamp pulse. Sometimes that is called black porch clamp. This is also the time slot where the chroma burst is found.

Regards, Joerg

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required