I am routing a development board for STM32F030R8T6 which can use external 8 MHz crystal. Here are the schematics and board for the crystal part:



Crystal traces are routed on bottom layer (blue color).

Initially I have worked with atmega and I never saw a resistor in a crystal circuit. What's the role of R5 (390 ohms) in this crystal circuit?

I have tried to keep other gpio traces away from crystal traces but a few of them are going over them on the top layer. Should I be concerned?

Also, the traces originating from pin 17-30 have too many twists and turns. Will it create any issues during the fabrication process? I am using 10 mil traces.

  • \$\begingroup\$ Regarding the traces of pins 17 - 30, they should not cause any trouble during fabrication. \$\endgroup\$ Jul 27, 2016 at 9:08
  • \$\begingroup\$ Why make the traces snake like that though? Would be much more aesthetically pleasing for them to all be straight \$\endgroup\$
    – bitshift
    Jul 27, 2016 at 9:15
  • \$\begingroup\$ @bitshift - The first twist after taking it out from pin was done to align the traces to the grid so that I could make clean 45 degree second turns. The snake pattern near the headers was required so as to keep the traces away from the crystal. I'll give it another try to make them straight. That'd actually look better if I am able to achieve it. \$\endgroup\$ Jul 27, 2016 at 9:29
  • \$\begingroup\$ Here is a document about crystal feedback oscillators from NXP and an image from it. \$\endgroup\$ Jul 27, 2016 at 11:47

1 Answer 1


R4 and R5 are often included in order to match the impedance of the IC and crystal. My guess is that the two pins of the IC are (for whatever reason) mismatched, and so one side needs this extra impedance to give a good clock signal.

As for the signal traces crossing the crystal traces, it really depends on the strength of the signal trace, the distance between them and how long they run together, if they just cross at right angles, I wouldn't expect it to be an issue. My main aim would be to make sure the crystal traces are as short as possible.

I would not worry about the length or snaking of the trace. You are after signal integrity and low EMI, not to make it look nice. It is better to have a strange snaking trace on a PCB that works, than straight neat lines on a PCB that doesn't work, or doesn't work reliably.

  • \$\begingroup\$ How would straight traces affect signal integrity? \$\endgroup\$
    – bitshift
    Jul 27, 2016 at 10:13
  • \$\begingroup\$ Unless you are right on the edge of functionality (as in you really need to redesign the thing), they won't, which is why I said not to worry about it. \$\endgroup\$
    – Puffafish
    Jul 27, 2016 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.