Crystal oscillator tied to supply voltage?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2009
    Location
    Huntsville, AL
    Posts
    32

    Default Crystal oscillator tied to supply voltage?

    Is it acceptable to connect a crystal oscillator circuit to the supply voltage instead of ground? I've gotten into the practice of doing this because (1) the OSC pins are closer to the supply voltage so it's easier to solder, and (2) it works...so far.

    Is there any drawbacks to this? (design, reliability, or otherwise?)

    Thanks in advance!
    Dave

  2. #2
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    I was once flamed on the piclist for suggesting just that: connecting the common terminal of a resonator (or a crystal cap common, same thing) to Vdd instead of Vss, as the Vdd pin is usually on the same side and makes routing simpler, shorter and cleaner.

    My argument is Vdd is an AC ground (for those of us who remember our small signal analysis). The counter arguments I was flamed with were the current is going thru a reactive element and therefor I was RADIATING EMI, and also the Microchip data sheet did not explicitly allow this.

    The first argument is nonsense, capacitors are not radiating elements. They do generate RF but that is the displacement current going plate to plate. The second argument may hold some weight but I doubt it.

    Bottom line: I've had literally thousands of a medical use sensor I designed ship with the resonator connected to Vdd. If this device was to fail at the wrong moment it is possible someone would literally die.

    I sleep well knowing just where I put that resonator.

  3. #3
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    I think both ways are OK. More important is to understand, which is more noiseless: Vdd or Vss. You should always try to minimise noise, which can couple to XTAL.

    If decoupling to Vss (=GND) is sharing common impedance with some other high current source, then it might be wiser to connect XTAL caps to Vdd. This requires that PDN (power delivery network) has a low impedance also at XTAL frequencies and above. Might require some capacitor optomizations...

    Normally GND potential has lower noise level than power supply, but not always. Basic EMC!

    BR,
    -Gusse-
    Last edited by Gusse; - 26th March 2009 at 15:25.

  4. #4
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    Actually, oscillators like a little noise: one old guy trick from the days men were men and oscillators were built on a single transistor and gains were very finite one trick to make sure an oscillator oscillated was to put a cheap carbon resistor in the signal path. The resistor did nothing but generate some nice thermal noise pulses that were enough to kick start the oscillations.

    If your power supply has enough noise riding on it to disturbs the oscillator then it's gonna break something else before the frequency goes off.

    As the resonator operates at a small multiple (ummm, FOUR?) of the processor frequency (the major power line noise source) you dang well better optimize your capacitors for that frequency. But that's pretty simple anyway, just bypass anything using Vcc at the part. Ceramic caps are good and cheap.

  5. #5
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Quote Originally Posted by ErnieM View Post
    If your power supply has enough noise riding on it to disturbs the oscillator then it's gonna break something else before the frequency goes off.
    PIC's can operate in quite large voltage range (2.0 - 5.5V, some smaller 4.2 -5.5V). So (small) voltage drops in supply are not problematic for PIC itself, but might be high enough to upset XTAL, if caps are connected to Vdd. Therefore you have to pay attention to PDN impedances at frequencies you are operating. If you have resonaces in PDN at peak current frecuencies, that will generate lots of noise to power supply. And that noise can couple to XTAL, if caps are also connected to Vdd.

    Therefore it is more save to use GND for XTAL caps.

    BR,
    -Gusse-

Similar Threads

  1. Battery charger - power supply issue affecting ADC
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 14th December 2008, 00:12
  2. Expanded Scale Voltmeter
    By Pic_User in forum Schematics
    Replies: 6
    Last Post: - 8th February 2008, 20:32
  3. MAX133 Interface to PIC16F877, how to?
    By phreakerzoid in forum Off Topic
    Replies: 6
    Last Post: - 14th June 2007, 13:58
  4. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35
  5. 16f628 supply voltage 3.3v
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 24th July 2006, 15:05

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