# Clocks

## Requirements

### Layout

• Crystal are as close as possible to the device
• Crystal trace width is at least 12 mils
• There is a ground ring around crystals

## Design

### Compute Crystal capacitors

The following formula may be used to calculate a parallel resonant crystal's external load capacitors:

where:
the crystal load capacitance
the stray capacitance in the oscillator circuit, which will normally be in the 2pF to 5pF range.

Assuming that then the equation becomes:

It is difficult to know exactly what the stray capacitance is, but if you find the oscillation frequency is too high, the load capacitor values can be increased. If the frequency is too low, the load capacitors can be decreased.
The device data sheet may also define a maximum crystal series resistance .

• Bookmark at