maximum oscillator trace length


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2005
    Posts
    12

    Default maximum oscillator trace length

    I am working on a project using picbasic pro and have a question about the maximum trace length going to the oscillator. I am using a 18f252 that will be on a board with a display above it to save space. It is running at 4mhz currently. Everywhere I have looked I see "oscillator should be as close to the pic as possible". I may have to move mine as it will not fit under the display properly. Is there a more defininte answer to its maximum distance from the pic? Help is greatly appreciated, thanks.
    Greg

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


    Did you find this post helpful? Yes | No

    Default

    never tested the maximum distance but 1-2 inch can be safe. can you solder your crystal or ceramic resonator under your PCB directly on your PIC pins???
    Last edited by mister_e; - 5th April 2005 at 00:50.
    Steve

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

  3. #3
    Join Date
    Apr 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    Steve, you must be on here all the time for me to get an answer that fast!!!

    I can put it on the bottom, but I have no components on the bottom now. I think I have room around the display to move it, and still be within 2 inches. I was just curious to what other people may have gotten away with. Thanks again for your quick response!

    Greg

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


    Did you find this post helpful? Yes | No

    Default

    You're welcome.

    Quote Originally Posted by woodygjw
    Steve, you must be on here all the time for me to get an answer that fast!!!
    I was in the past before i answer to too many redundant questions and lazy user that don't want to do some forum search and/or home work.

    Cheers!
    Steve

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

  5. #5
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Greg,

    it also depends on what type of clock source you are using,
    Resonator, Crystal, Oscillator (w. TTL Output)

    Oscillators are less critical than crystals with external Caps.

    If traces get too long you might have problems for the OSC to start up.

    I personally would never move a crystal 2 inch away from the MCU.

    If it is just the "height" of the crystal causeing the problem:
    a Crystal in HC49U-S package is less in height than a PIC in a DIP package,
    so you might be able to fit one of these.
    SMD crystals are even smaller.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  6. #6
    Join Date
    Apr 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    Hello Ralph,

    Thanks for the response. I am now about 1 inch away so I think all is good. I appreciate the response.

    Greg

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


    Did you find this post helpful? Yes | No

    Default

    Don't forget also that long leads on oscillators also produce heaps of radiated signals... your product might fail CE certification if it's a commercial product.

  8. #8
    Join Date
    Apr 2005
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    Thanks Melanie for your input. I will not be going through any approvals so I think I am OK. Many thanks to all giving their opinion.

    Greg

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


    Did you find this post helpful? Yes | No

    Default

    For really small crystals, the Epson mini barrel crystals can't be beat. If you can use a resonator, they already have built in caps in some tiny SMT packages.

    Ron

Similar Threads

  1. HSERIN for variable length string
    By Pic2008 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2010, 05:58
  2. Maximun Cable Length for PIC to LCD
    By wildbilly in forum mel PIC BASIC Pro
    Replies: 52
    Last Post: - 1st January 2008, 19:00
  3. Maximum Distance Without Driver
    By CocaColaKid in forum Serial
    Replies: 5
    Last Post: - 5th December 2007, 20:34
  4. Cable Length Between Micros
    By markcadcam in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st June 2006, 14:29
  5. Timer Prescales - maximum time before overflow
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th August 2005, 16:52

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