Synchronizing Xtal Osc


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373

    Question Synchronizing Xtal Osc

    I am doing some video OSD work, and need to synchronize the crystal oscillator on a 16F628 to the horizontal sync signal.
    My question is, can I stop the oscillator by switching the xtal pin to ground, then turn it back on (reliably) with a horizontal sync pulse? I have seen this done with an RC oscillator, but I don't know if the crystal will start up reliably each time when it is "released"? Has anyone tried something similar?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    My question is, can I stop the oscillator by switching the xtal pin to ground, then turn it back on
    at my opinion, answer is no. it will cause pic to reboot or malfunction or maybe freeze to some adress.

    If want to add text to a video signal, why not using some BOB-3 Video-Text Overaly Module

    http://www.hvwtech.com/downloads/man...ions_Guide.PDF

    or may want you to design your own... have a look over the net, i'm sure there's still IC that mixe 2 signal together without you have to care about synchronise them together like the old STV5730A wich seems to be obsolete or hard to find for now.

    May ST9936 or ST9937 be a good start for easy solution. Seems also hard to find them too.

    regards
    Last edited by mister_e; - 22nd October 2004 at 04:06.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    You don't actually need any of these modules or video processor chips. Those options are manufactured for technicians and hobbyists that are clueless in video theory and can't do it otherwise (quite apart from the fact that one of those chips on their own probably costs more than the rest of all the other components combined!).

    1. What you DO need is a sync separator chip... anything cheap and cheerful that you can get your hands on... LM1881 springs to mind but it doesn't have to be. That chip will provide the Line and Frame timing signals from your Video Input so the PIC knows (a) the Start of the Display Page (Frame), and (b) where it is on the Page (Line) and (c) if the video is being interlaced.

    2. Then all you need is a method of mixing the signal generated by the PIC back with the incoming video, to produce a combined Video Out. A 1 cent Transistor and a small splattering of Resistors is about as simple as I can figure it...

    The rest is all done in software, with only one exception... if you have a large alphabet of characters, you may need an external EEPROM to hold the character pattern (font) for the display unless you chose a PIC with a sizeable memory in which to build the font table.

    Melanie

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Of course that's a lot of other way to do this. As melanie said It depend of your knowledge on video, the time you have to spend on (developpement, Character database,font, special character, and more.....)... thats for sure. LM1881 is one of those cheap IC i use in the past and it's working really well + you can find it almost anywhere for a few $.

    You can mix your video signal with high freq op amp and it give to you the benefit to adjust the gain of each signal depending if it's neat or not at the end. But a few cents transistor+load of resistor may do the job too.

    if you want to see how easy vdo can be done look this article i found with a few second Google search
    http://www.rickard.gunee.com/project.../pic/howto.php

    good luck
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Thumbs up Synchronizing Xtal Osc

    Thanks for the input. I have the LM1881, and I am using it for both the vertical and comp sync pulses. I have gone to 14.316 MHz for the uP crystal. When divided by 4, it gives me the 3.58 MHz needed to address single pixels. Even if the oscillator is out of step with the video clock, the jitter is minimal. I will experiment with stopping the oscillator to sync it up with the vertical pulse and see if there is any perceptible difference.

    Thanks again,
    Ron

Similar Threads

  1. 16F877A with 20MHz XTAL not working?
    By ustredna in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th August 2011, 15:04
  2. Internal vs. external osc for comms
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th January 2010, 14:58
  3. Replies: 4
    Last Post: - 9th October 2009, 08:01
  4. Replies: 2
    Last Post: - 7th October 2009, 00:06
  5. Define osc 1
    By ronsimpson in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st October 2009, 06:35

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts