Author Topic: XTAL connection question.  (Read 3606 times)

0 Members and 1 Guest are viewing this topic.

Offline kvrestoTopic starter

  • Regular Contributor
  • *
  • Posts: 164
  • Country: au
XTAL connection question.
« on: January 21, 2015, 07:22:27 am »
Hi Everyone.

Every now and again I find myself asking a question on something I would never have thought about ordinarily. This is one of those days. I’ve included 2 pics of an SMD xtal (12Mhz), each connected to my CPU in a different configuration, and my question is,.. are there any pro’s and cons on which may be the best configuration, or doesn’t it matter?

Thanks
kv
 

Offline okaresz

  • Newbie
  • Posts: 9
Re: XTAL connection question.
« Reply #1 on: January 21, 2015, 05:31:24 pm »
In my experience it does not matter much. Of course you try to match the lengths of the XIN and XOUT traces, but I just made a mistake and forgot to do this in my recent design (see attached picture), but it works fine. At these relatively low frequencies this is not so crucial.
(R55 is just a series 47R to prevent XTAL from possible overdrive). The important is to keep the crystal close to the MCU.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: XTAL connection question.
« Reply #2 on: January 21, 2015, 08:36:20 pm »
So what's the difference?

BTW, the vias are too close to the pads, and will absorb solder paste.  Not really any point in using via per pad anyway, these are modest impedance, limited bandwidth traces.  Length doesn't matter (as long as it's not obscenely long), grounding doesn't matter.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline okaresz

  • Newbie
  • Posts: 9
Re: XTAL connection question.
« Reply #3 on: January 21, 2015, 10:26:22 pm »
I have full tenting on the vias, so solder mask covers them, they came back from reflow just fine. But yeah, if someone wants to be on the very safe side, leave a larger distance from the pads, like in kvresto's layout.
 

Offline voja

  • Contributor
  • Posts: 45
  • Country: 00
Re: XTAL connection question.
« Reply #4 on: January 21, 2015, 11:29:21 pm »
Oscillator I/Os are analog signals, so you should avoid placing them close to long digital signal tracks, as they could be inductively coupled. It is also good practice to put the ground track around the Xtal and its tracks. Some ICs even have Xtal pins surrounded by Gnd pins.
:( + :( = :) :)
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: XTAL connection question.
« Reply #5 on: January 21, 2015, 11:34:57 pm »
As pointed out, placement orientation doesn't matter much. But you have routed signal traces in parallel to the crystal traces. Noise from that traces impairs the phase noise of the oscillator. In most applications it is not that important but if you need a "clean" oscillator it matters. Best is to surround the xtal traces with ground copper as much as possible and keep noise away from your xtal traces.

[edit]

Voja said the same ;)
 

Offline kvrestoTopic starter

  • Regular Contributor
  • *
  • Posts: 164
  • Country: au
Re: XTAL connection question.
« Reply #6 on: January 22, 2015, 03:27:39 am »
Thanks everyone for your good advice, much appreciated.

cheers
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->