Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Do i need a series resistor for an external crystal with a microcontroller?

Status
Not open for further replies.
T

treez

Guest
I am using a PIC24FJ64GA004 micro with external crystal oscillator...

Page 10, fig 6-3 of the following says that a series resistor may sometimes be needed with an external crystal....

https://ww1.microchip.com/downloads/en/DeviceDoc/39700a.pdf

....though how do i know it any given crystal is "AT cut"

....for example, this CMX-7X crystal doesnt say if its "AT cut" or not.
https://www.ecsxtal.com/store/pdf/csm-7x.pdf

...do you know if its "AT cut"?, and if it is, do you know what value of series resistor is needed?
 

According to this: https://en.wikipedia.org/wiki/Crystal_oscillator#Crystal_cuts, AT cut crystals are the most common and it is estimated that more than 90% of all crystals are AT cut. However, I've never used the resistor myself and honestly, haven't seen it being used. The first document you linked to, says that the resistor may be required. May be. So, it isn't necessarily a strict requirement. And you probably won't need it. Just connect the oscillator to the PIC, like pretty much everyone does.

Hope this helps.
Tahmid.
 

The datasheet says rather precisely under which conditions a series resistor should be used.

A series resistor, Rs, is added to the circuit if, after all other external components are selected to satisfaction, the crystal is still being overdriven. This can be determined by looking at the OSC2 pin, which is the driven pin, with an oscilloscope. Connecting the probe to the OSC1 pin will load the pin too much and negatively affect performance. Remember that a scope probe adds its own capacitance to the circuit, so this may have to be accounted for in your design (i.e., if the circuit worked best with a C2 of 22 pF and the scope probe was 10 pF, a 33 pF capacitor may actually be called for). The output signal should not be clipping or flattened. Overdriving the crystal can also lead to the circuit jumping to a higher harmonic level, or even, crystal damage.

The OSC2 signal should be a clean sine wave that easily spans the input minimum and maximum of the clock input pin. An easy way to set this is to again test the circuit at the minimum temperature and maximum VDD that the design will be expected to perform in, then look at the output. This should be the maximum amplitude of the clock output. If there is clipping, or the sine wave is distorted near VDD and VSS, increasing load capacitors may cause too much current to flow through the crystal or push the value too far from the manufacturer’s load specification. To adjust the crystal current, add a trimmer potentiometer between the crystal inverter output pin and C2 and adjust it until the sine wave is clean. The crystal will experience the highest drive currents at the low temperature and high VDD extremes.

The trimmer potentiometer should be adjusted at these limits to prevent overdriving. A series resistor, Rs, of the closest standard value can now be inserted in place of the trimmer. If Rs is too high, perhaps more than 20 kΩ, the input will be too isolated from the output, making the clock more susceptible to noise. If you find a value this high is needed to prevent overdriving the crystal, try increasing C2 to compensate or changing the oscillator operating mode. Try to get a combination where Rs is around 10 kΩ or less and load capacitance is not too far from the manufacturer’s specification.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top