Hi, Thanks for the reply. > I read this thread, but I thing that using an external 40MHz clock > won't have any difference in your problem. If you lock the 40MHz > clock to your external source, then you don't known in which cicle > the PIC is running. When at 40Mhz it always locks into exactly the same point of the cycle. I am not 100% certain that this will be the correct cycle but from what I have seen using a 40Mhz oscillator module it should be. Or have I misuderstood what you are saying? Can you explain a little more? You need to phase-lock the internal PIC cicle to your external clock. > If I needed something as you describe, I'd try generating in the PIC > a stable signal at hscan freq. (i.e. from an internal PIC timer) and > using that to phase lock the main oscilator. It's simpler than it seems. > It has to be locked to the 15.625Khz Hsync coming from the camera (via sync separator) as this signal does vary and causes all sorts of picture wobble. I do generate hsync in the PIC exactly and have tried to feed this into the ext divide of the Genlock IC to stabilise, but the one I generate is too perfect when compared the camera sync and the differences between them are too great for my PLL to correct them (don't know how well i explanied that, hope it makes sense) Cheers, DAN -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics