Previous in Forum: Effects of Voltage Drop in Submersible Pump   Next in Forum: What's the Meaning of Fast Phase Back?
Close
Close
Close
13 comments
Rate Comments: Nested
Member

Join Date: Mar 2013
Posts: 8

Crystal Oscillator Problem

03/24/2013 1:37 PM

Hi All,

I am currently doing a project which incorporates the use of an audio codec which needs a 27Mhz clock crystal oscillator.

The problem is that I am using a crystal oscillator of 27 MHz and when I connect it to the codec pins (the normal XIN and XTAL) with capacitors I read a sine wave of around 9 MHz. It seems to be very strange and I don't know what to do. Is there anyone who has already met this problem?

Please help me!

Thanks!

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#1

Re: Crystal oscillator problem

03/24/2013 1:46 PM

The circuit layout near a crystal needs to be tight and tidy, the IC it's connected to needs good decoupling on it's power supply too.
Read the IC data sheet, there may well be a paragraph on the oscillator layout or Google application notes for your IC, there will prob' be good info' there.
Also, how do you know it's a 9Mhz sine wave? Connecting a 'scope can stop correct operation of the osc' especially if it's already marginal (or your scope may be aliasing!)

The capacitance of the circuit board tracks count towards the capacitnce needed by the crystal, so you may need to adjust the values (usually go to a smaller C)
Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply Score 1 for Good Answer
Member

Join Date: Mar 2013
Posts: 8
#2
In reply to #1

Re: Crystal oscillator problem

03/24/2013 1:54 PM

First of all thanks for the reply! I don't think its an aliasing problem, I am using a scope with a bandwidth of 200 MHz. But the datasheet does not include any specifications on the crystal, since I read all the datasheet. I am currently using a breadboard for all the connections since I am still in the designing part, do you think the breadboard can alter the frequency? (since the breadboard acts as an antenna at high frequencies!)

I know its a 9Mhz since I measured its frequency on the scope. Also when I read the clock that got through the IC was also 9 MHz :( I can't figure it out

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#3
In reply to #2

Re: Crystal oscillator problem

03/24/2013 2:33 PM

I bet the breadboard is adding a load of 'C'.
try bending the legs of the IC upwards out of the breadboard and soldering the crystal straight across the legs. Make sure you have a 0.1uF across the power pins of the IC too.
Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Member

Join Date: Mar 2013
Posts: 8
#4
In reply to #3

Re: Crystal oscillator problem

03/24/2013 3:01 PM

will it help if I use a veroboard (stripboard) instead of using the breadboard? since now I am only testing and simulating and also the IC is set on a breakout-board and is not connected to the breadboard.

Register to Reply
Guru
Popular Science - Evolution - New Member Popular Science - Weaponology - New Member

Join Date: May 2006
Location: The 'Space Coast', USA
Posts: 11119
Good Answers: 918
#5
In reply to #4

Re: Crystal oscillator problem

03/24/2013 3:36 PM

Bread boarding HF is difficult. Typically you can use blank copper clad PC board as a ground plane and then apply or glue strips or pieces of the same PCB to solder components to. We did this type of bread boarding with a lot of RF stuff.

We simulate everything in LTSpice (its free from Linear Technology website) and then go directly to a PC house for prototype boards. Express PCB charges $100 for a 4-layer production style board 2.5" by 3.8". You get three boards for that price. That includes silk screen and solder mask. They have a free PC layout and schematic capture software that is a breeze to use.

Also, if you want a good solid 27.0000 mHz signal, use an oscillator IC instead of a crystal to feed the input of your chip. You will get a nice TTL square wave with plenty of fanout.

Register to Reply Score 1 for Good Answer
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#6
In reply to #4

Re: Crystal oscillator problem

03/24/2013 6:03 PM

Just try what I said in #3!

__________________
health warning: These posts may contain traces of nut.
Register to Reply Score 1 for Good Answer
Guru

Join Date: Sep 2009
Posts: 1056
Good Answers: 88
#7

Re: Crystal Oscillator Problem

03/24/2013 11:17 PM

Your crystal is probably an overtone type and too much added capacitance or other motional parms make it oscillate on its fundamental frequency. Did you follow the original design including crystal type or you're improvising? Not all crystals are created equal. S.M.

__________________
Life is complex. It has a real part and an imaginary part.
Register to Reply Score 1 for Good Answer
Member

Join Date: Mar 2013
Posts: 8
#8
In reply to #7

Re: Crystal Oscillator Problem

03/25/2013 2:11 AM

i got the crystal from a store and did not include any datasheet so i dont know the exact load capacitance. i added 2, 30pF capacitors in the normal topology connected to ground and it seems to have a "non noisy" wave but still i am reading 9.07MHz i also think its something related to the fundamental or ovrtone frequency since 9 is a multple of 27 sincemy xtal is 27MHz

Register to Reply
Guru
Popular Science - Evolution - New Member Popular Science - Weaponology - New Member

Join Date: May 2006
Location: The 'Space Coast', USA
Posts: 11119
Good Answers: 918
#9
In reply to #8

Re: Crystal Oscillator Problem

03/25/2013 6:39 AM

Well, I have experience chasing my tail. You may be having a similar experience. You need to recheck the way you are measuring and what you are measuring with to be sure you are seeing what you really think you are seeing.

Sometimes a rose is just a rose, too. You may simply have the wrong part that either got dropped into the wrong bin at the store or was mismarked by the manufacture.

Register to Reply
Guru

Join Date: Sep 2009
Posts: 1056
Good Answers: 88
#11
In reply to #8

Re: Crystal Oscillator Problem

03/25/2013 9:19 AM

I'd start by half or third of the capacitance, 30pf is kinda high for 27 Mhz clock. Also crystal's and IC's datasheet can give you some clues. But there's always the chance your IC clock gen cirquit is static damaged. In most cases one of iC pins connected to crystal can be used as an external clock input for testing, just mind the input levels. S.M.

__________________
Life is complex. It has a real part and an imaginary part.
Register to Reply
Guru

Join Date: Sep 2009
Posts: 1056
Good Answers: 88
#13
In reply to #11

Re: Crystal Oscillator Problem

03/25/2013 10:45 AM

As (almost) always I've read all members replies, including OP's clarifications, long after posting.(LOL). And don't take me wrong, what I said stands, but only in normal conditions. Breadboarding 27 Mhz (!) is no normal condition. Hell, most HF and up crystal osc stages, can't handle the 15pf+ added from a 10X or some 300pf from a 1X probe tip as was mentioned. Added to the high capacitance, God knows how long your cap leads are, and how close to digital ground the crystal is refered. A photo could give us more info. S.M.

__________________
Life is complex. It has a real part and an imaginary part.
Register to Reply
Associate
Australia - Member -

Join Date: Sep 2010
Location: Western Austraila
Posts: 34
#12

Re: Crystal Oscillator Problem

03/25/2013 9:41 AM

I had a look around and found a chip with XIN, XTAL and there are no capacitors needed. Search and find a datasheet on the chip you are using and see what it recommends for the Xtal.

From memory way back usually the input capacitor is about half the output capacitor.

If you CRO does not have 10:1 probes then when you connect it to the device it will slow it down usually.

__________________
smokingwheels
Register to Reply
Register to Reply 13 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Hero (2); ci139 (1); sgal0027 (3); SimpleMind (3); smokingwheels (1); user-deleted-1105 (3)

Previous in Forum: Effects of Voltage Drop in Submersible Pump   Next in Forum: What's the Meaning of Fast Phase Back?

Advertisement