>
> I've been thinking about sync detect without using an external sync
> separator. Doesn't seem to be much on the web about doing that with a
> microcontroller...
>
> ...but it also seems to me like it ought to be very possible.
>
> Referring to
> www.sxlist.com/techref/io/video/ntsc.htm
> if we add a check for a sync pulse in the character loop of the code below,
> so that it will pick up the sync pulse on the half scan line for even
> fields, and count scan lines so we know when to stop on the odd fields, we
> can enter a vertical refresh detection loop that counts the width and number
> of the pulses...
>
> We just need to look for 5 more fast (double the hsync rate) narrow pulses,
> then 6 fast wide pulses, then 6 fast narrow pulses. If we are counting
> narrow pulses and we see a wide pulse, then we resync to the wide pulse
> loop. If we see hsync rate pulses, we have missed the vertical sync and have
> to wait for the next one. If we match up with the entire vertical sync
> pattern and then miss one fast pulse, we are on an even field, otherwise we
> are starting an odd field.
>
> Doesn't it seem like that could pretty easily be turned into code?
>
>
http://www.sxlist.com/techref/scenix/contest/video.htm
>
> ---
> James Newton
> 1-619-652-0593
>
jamesnewtonEraseME
.....sxlist.com
> SX FAQ:
http://www.sxlist.com
>