Previous in Forum: matched transistor   Next in Forum: Plant Earth System
Close
Close
Close
12 comments
Rate Comments: Nested
Active Contributor

Join Date: May 2010
Posts: 15

Crystal Oscillator Problem

05/21/2010 7:05 PM

hi,I am making a microcontroller based design where the crystal oscillator (11.0592 Mhz) is used.

and I saw that some times the system does not work as the LCD(JHD 162a) does not print the characters.

I should also say that this is designed on a breadboard as a priliminary design.

I want to know are there any process to prevent this inconsistent performance of crystal oscillator?

there are also a problem that the LCD sometimes does not print right characters---

like when the print should be 22 then it prints some of the unwanted characters which are also in ASCII set....why does it disturbs for 22 only?

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

Good Answers:

These comments received enough positive votes to make them "good answers".

"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

Join Date: Jul 2008
Posts: 1688
Good Answers: 145
#1

Re: crystal oscillator problem

05/21/2010 9:35 PM

http://cr4.globalspec.com/thread/54845 digital modulation
http://cr4.globalspec.com/thread/54846
EM wave propagation
http://cr4.globalspec.com/thread/54847 matched transistor
http://cr4.globalspec.com/thread/54848
modulation
http://cr4.globalspec.com/thread/54849
transformer
http://cr4.globalspec.com/thread/54850
crystal oscillator

Is this all homework? Please tell us a bit more about yourself and what you are doing.

__________________
Few things limit our potential as much as knowing answers and setting aside questions.
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#2
In reply to #1

Re: crystal oscillator problem

05/22/2010 12:39 AM

Well found trail of problems, or should I say postings Bruce. I just might suspect that finals week has descended upon us. The question is, should we ignore or produce a plausible yet bogus answer to guarantee failure?

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
3
Guru
Engineering Fields - Electrical Engineering - Analog and Digital Circuit Design Engineering Fields - Electromechanical Engineering - Transformers, Motors & Drives, EM Launchers Engineering Fields - Engineering Physics - Applied Electrical, Optical, and Mechanical

Join Date: Jan 2008
Location: NY
Posts: 1207
Good Answers: 119
#3

Re: crystal oscillator problem

05/22/2010 3:16 AM

Some types of "bread boards" have high parasitic capacitance between contact rows or columns. This can easily affect how oscillator crystals function with their respective microprocessors. Once a true PCB is assembled, erratic (crystal) clock behavior usually goes away.

On one occasion we had significant PCB surface contamination (stray currents) cause clock problems. Simple adjustment to our board washing process quickly corrected problem.

Register to Reply Good Answer (Score 3)
2
Power-User

Join Date: May 2010
Location: Cambridge, MA
Posts: 390
Good Answers: 82
#4

Re: crystal oscillator problem

05/23/2010 5:34 AM

Actually, crystal oscillators have a long history of trouble at some point in production, when the engineer had expected proper performance. We can start with the BART train that over-ran its station, and go on from there. Sometimes it's a problem with the PCB layout, other times it's a run of crystals with high Rs, or maybe there's a missed design problem after all. The design problem might even be inside your IC. All of these issues are handily solved by using crystal-oscillator modules rather than raw crystals. They're small, cheap, well stocked and popular, and they give you peace of mind.

We have considerably expanded the section on the care and feeding of crystals in the 3rd edition of our book, H&H AoE, with lots of measured curves, formulas, modeling, and advice, etc., but we still recommend skipping the whole mess and just going for a module.

__________________
Thanks, Win
Register to Reply Good Answer (Score 2)
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#5
In reply to #4

Re: crystal oscillator problem

05/23/2010 8:13 AM

GA

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Active Contributor

Join Date: May 2010
Posts: 15
#10
In reply to #4

Re: crystal oscillator problem

05/26/2010 5:12 PM

sir,

can you please help me answering that what type of pulse shape does a crystal oscillator give?

if it gives different types of shape, then should we mention that required shape when we will buy it (to avoid the use of waveform shaping ckt)?

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#12
In reply to #10

Re: crystal oscillator problem

05/26/2010 6:07 PM

It all depends on the ancillary circuitry attached to the crystal itself. This is why somebody here recommended that you use a fully contained oscillator package that has a buffered output. But if you really wish to do an analog analysis of a quartz crystal, from Electronic Design, From Concept To Reality by Martin S Roden and Gordon L. Carpenter, Third Edition page 630 Chapter 11.

The equivalent circuit for a crystal is shown {Rs,L,Cs in series paralleled by Cp} Since the Q is so high we can neglect Rs. We write the equation for (crystal) impedance as

Z(s)={s2+1/(LCs)}/{sCp[s2+(1/Cs+1/Cp)/L]}

Two frequencies exist, one for the zero and one for the pole.

ωz=1/√(LCs)

ωp=√{(1/L)(1/Cs+1/Cp)}

Cp is much larger than Cs, so the two frequencies are approximately equal.

Now this means that only at the resonant frequency will the impedance be a low impedance. The crystal acts like a very narrow bandwidth bandpass filter. What I didn't put the effort to show was the 74HC04 oscillator circuit that this is from that has a 60 pF adjustable trim capacitor to tweak this into oscillation. Circuit board impedance changes from uncleaned flux and oscilloscope probes will change the circuit operation.

Now that I've given you all of the math, the oscillating wave shape depends on the circuitry around a crystal. The buffered output signal could be a square wave, sine wave or even with some clever circuit topology a triangular wave.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply Score 1 for Good Answer
Active Contributor

Join Date: May 2010
Posts: 15
#11
In reply to #4

Re: crystal oscillator problem

05/26/2010 5:29 PM

sir,

we have very high Q factor of crystal oscillators as an advantage.

I want to know that do we have any other pursuits compared to crystal oscillators like LC tuned oscillators--colpitts or hartley? ( the cost effectiveness is also an issue here, sir)

Register to Reply
Anonymous Poster
#6

Re: crystal oscillator problem

05/23/2010 9:36 AM

If you are having a problem with the oscilator take a look at the "NXP"data sheet for the 74HC4060. It has good information regarding the design of the oscilator ckt which is built into the counter. You could also use a seperate NAND gate. I have used both. Check out Fig 13 on page 16 it shows typical ckt. I used a 11.288MHz crystal, a bias resistor of 4.7M ohms R2= 2.2K and both Caps = 22pF. The oscilator is solid as a rock and the Rs & Cs are not very critical so you should get the same performance in both your breadboard and PCB lay out. One word of caution, Use Vcc bypass cap right at the IC ( I used a ceramic .1uF & Tan 10uF in parallel) Rember you are working at 11MHz but the rise and fall times could put you close to 50MHz so a clean glitch free Vcc - Gnd is critical. Vcc and Gnd layers in your PCB would be advisable. ----- Good luck

Register to Reply Score 1 for Good Answer
Guru
Hobbies - HAM Radio - New Member

Join Date: Oct 2006
Location: Vancouver (not BC) Washington (not DC) US of A
Posts: 1261
Good Answers: 12
#7

Re: Crystal Oscillator Problem

05/23/2010 11:36 PM

Make sure your crystal is CLOSE to the pins on the micro c where it connects... also the components associated with the crystal should be close. I don't know what kind of breadboard you are using, but if it is one which is wired with plug in wires... I would take a different approach. Personally, I still wire wrap.

Bill

Register to Reply Score 1 for Good Answer
Anonymous Poster
#8
In reply to #7

Re: Crystal Oscillator Problem

05/24/2010 8:11 AM

My soldering iron and "stash" of real live 60/40 solder are treated like gold. Nobody knows where I keep them hidden and nobody uses but me then only in an emergency...

Register to Reply
Associate

Join Date: Apr 2010
Location: Chicago's western suburbs
Posts: 35
Good Answers: 2
#9
In reply to #7

Re: Crystal Oscillator Problem

05/24/2010 2:52 PM

I strongly agree that close connections are required for all components associated with the oscillator. That having been said (my total track length for crystal, capacitors, and grounding, is generally less than 1.5 inches), in my 35 years of hands-on MPU/MCU design I've never had a well-connected oscillator fail. I do use good domestic crystals!

Don't use the crystal connections to provide external clocks. It doesn't work. My personal preference is to use an external crystal module for any application where external loading might be a factor. By the same token, use lower clock frequencies where possible to minimize radiation/RFI and to save power. My favorite is 3.6864 MHz for '51-based designs.

For that breadboard, since the other holes are there as load, whether you need them or not, I would use a crystal module and take the hit on cost. It saves on worry about the most important signal in the design.

Finally, look more carefully at the programmng around your LCD module! Good luck.

__________________
"When in doubt - check it out!"
Register to Reply Score 1 for Good Answer
Register to Reply 12 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"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:

Andy Germany (1); Anonymous Poster (1); BruceFlorida (1); mjb1962853 (1); rajchakraborty (2); redfred (2); Sciesis2 (1); TLC Designer (1); Winfield Hill (1)

Previous in Forum: matched transistor   Next in Forum: Plant Earth System

Advertisement