go away spammer

Author Topic: Crystal placement  (Read 3369 times)

0 Members and 1 Guest are viewing this topic.

Offline kaposaiTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Crystal placement
« on: May 15, 2009, 04:08:36 PM »
Hello everyone,

I wanted to add a 16mhz crystal to my circuit but I don't know where to put it in the board. I've seen other projects where the crystal is placed relatively close to the microprocessor. But since this has a been a build-as-you learn project, that special spot is already occupied. Is there any problem by placing the crystal a little bit far away? Is there any problem with the timing if the leads of the crystal are of different lengths?

Thanks for any input.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: Crystal placement
« Reply #1 on: May 15, 2009, 04:11:05 PM »
how far away from the pins are we talking? an inch or a foot?
Howdy

Offline kaposaiTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: Crystal placement
« Reply #2 on: May 15, 2009, 06:17:33 PM »
about 2 inches

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: Crystal placement
« Reply #3 on: May 15, 2009, 09:55:18 PM »
im not too sure, if the mcu is in a socket you could try putting the crystal underneath the chip...
Howdy

Offline TrickyNekro

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,208
  • Helpful? 15
  • Hardware and Firmware Designer
    • The Hellinic Robots Portal
Re: Crystal placement
« Reply #4 on: May 16, 2009, 01:06:47 AM »
I don't think you are going to have a problem but try placing it as close as possible...
For whom the interrupts toll...

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: Crystal placement
« Reply #5 on: May 16, 2009, 01:42:37 AM »
just a thought, but you may be able to solder it underneath the board...
Howdy

Offline kaposaiTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: Crystal placement
« Reply #6 on: May 16, 2009, 05:07:52 PM »
It's not going to look as cool as having it at the top, but I'll give it a try. I guess I can fit the capacitors nearby too. Thanks.

Offline Asellith

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 648
  • Helpful? 9
  • "I'm a leaf on the wind. Watch how I soar"
    • CorSec Engineering
Re: Crystal placement
« Reply #7 on: May 21, 2009, 12:14:52 PM »

The Reason you want the crystal close by is because your producing a 16 Mhz signal and transmitting it over a trace or wire. I.E. an antenna. The longer the transmission line the more chance of picking up noise or if you hit the right magic length you can introduce noise into other things from the crystal. That is unlikely due to the fact that the crystal oscillator is not producing much in the way of power. On the flip side that makes it more susceptible to noise. A noisy clock can make an MCU do screwy things.
Jonathan Bowen
CorSec Engineering
www.corseceng.com

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: Crystal placement
« Reply #8 on: May 21, 2009, 12:45:56 PM »
Hi,

The main reason for close mounting is that the traces adds capacitance of an order that counts at that frequency.

2 inches is not recommendable at all, half an inch is about what I'd recommend as a maximum.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

 


Get Your Ad Here