Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: kaposai 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.
-
how far away from the pins are we talking? an inch or a foot?
-
about 2 inches
-
im not too sure, if the mcu is in a socket you could try putting the crystal underneath the chip...
-
I don't think you are going to have a problem but try placing it as close as possible...
-
just a thought, but you may be able to solder it underneath the board...
-
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.
-
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.
-
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.