Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 28th June 2004, 01:43 AM   (permalink)
Default Simple crystal oscillator circuit

I have a 32 kHz crystal that I want to use as a clock pulse source. I have tried searching the net for oscillator circuits and have found some, but haven't had any luck simulating them.

Can someone tell me, in the simplest way possible, how to reliably make my crystal oscillate? I want to use in a clock and the O/P will go straight into a frequency divider then a counter. I want to ideally run it from a 9v battery, or two (depending on the overall current pull of the system).

Any help would be appreciated.
canadianpoet2012 is offline  
Old 28th June 2004, 11:05 AM   (permalink)
Default

http://www.electro-tech-online.com/v...rystal&start=0
Exo is offline  
Old 28th June 2004, 02:18 PM   (permalink)
Default 32Khz osc

And look over this thread

http://www.electro-tech-online.com/v...056&highlight=

The CD4060 has an on board oscillator (see diagram in thread) and can run off 9V. It's a 14-stage divider, so the lowest frequency output will be (32.768Khz = 2^15 Hz)/(2^14) = 2Hz = 1/2 sec. An additional flip-flop will give you a one second output.
laroche73 is offline  
Old 28th June 2004, 07:38 PM   (permalink)
Default

Crystal oscillators can take a long time (thousands of cycles) to start, due to the high "Q" of the crystal. In addition, oscillators sometimes need a kick to get them started in simulation (not necessary in hardware). Try adding an initial condition to one of the capacitors. If this doesn't work, you can add a one time PWL (100ua for 10usec) current pulse which is zero except for the duration of the pulse. This should work on almost any node in the circuit.
Roff is offline  
Old 28th June 2004, 10:53 PM   (permalink)
Default

Thanks you for all the replies and help.

Ron, I tired your suggestion in my simulator and I still had problems. It seemed to stop after a cycle or two, and the whole thing would freeze up. This is a software problem, not a circuit problem I assume.

So, could anyone tell me if the circuit I have attached will oscillate my 32 kHz crystal? As you can probably tell I've had no experience with crystal oscillators before, so I'm kind of in the dark with all of this! Has anyone used this circuit, or had any experience with it?

Anymore advice or suggestions will be equally appreciated.
Attached Images
File Type: jpg xtal.jpg (37.6 KB, 400 views)
canadianpoet2012 is offline  
Old 29th June 2004, 04:16 AM   (permalink)
Default

Can you post the subcircuit or the parameters for your crystal? I think I can help you. I got a sim to run (with some changes), but I need to have the crystal model you are using.
Roff is offline  
Old 30th June 2004, 01:05 PM   (permalink)
Default

Ron,

Unfortunately, I have no idea what the crystals sub circuit is! As I said previously, I am new to XTAL oscillators. I was planning to work it all out for myself and teach myself the basics of them, but without any luck.

The crystals that I have (10 from eBay), have KDSIL down the side, and nothing else. I won them months ago on eBay, so the auction page is no longer viewable, so I can't get you any more information! All I know, well assume, is that they are 32 kHz. They are in metal cans which are about 8mm in length and 3mm in diameter.

Can I ask how you got the simulation to run, and what software you are using? Thank you for the help so far though, and sorry I can't provide you with more information.
canadianpoet2012 is offline  
Old 30th June 2004, 03:09 PM   (permalink)
Default

I'm using Linear Technology's SwitcherCAD III, a totally free, no restrictions version of Spice.
What are you using? You should be able to view the netlist after simulation. The subcircuit for X1 will have the crystal model. If you can copy and paste it here, it would allow me to help you get your sim running. I'll post a schematic here if I do.

I got a 32kHz xtal oscillator to sim by cobbling up a model for a crystal and changing some component values in your schematic. I could post it here, but my crystal model is undoubtedly different from yours.
Roff is offline  
Old 30th June 2004, 10:27 PM   (permalink)
Default

Ron,

I'm using the Textbook version of Multisim 2001. It came free with a text book I needed for universtiy. It's pretty good, simulates most things, but it does have one very big draw back - it can be overwhelmed. I tried simulating a counter circuit with some logic and 3 counters. One and two by themselves worked great, but adding a third confused it and it all fell apart.

As for the crystal model, its virtual. It's the only one the simulation has, but I did find some details about it's subcircuit. Although I don't know how useful you will find it!

* EWB Version 4 - CRYSTAL Model
* LS= 0.00254648 CS= 9.9718e-014 RS= 6.4 CO= 2.868e-011
LS 1 3 0.00254648
CS 3 4 9.9718e-014
RS 4 2 6.4
CO 1 2 2.868e-011

I hope this helps you in some way. I will look into your SwitcherCAD, sounds quite good.
canadianpoet2012 is offline  
Old 30th June 2004, 10:42 PM   (permalink)
Default

Ron,

I'm using the Textbook version of Multisim 2001. It came free with a text book I needed for universtiy. It's pretty good, simulates most things, but it does have one very big draw back - it can be overwhelmed. I tried simulating a counter circuit with some logic and 3 counters. One and two by themselves worked great, but adding a third confused it and it all fell apart.

As for the crystal model, its virtual. It's the only one the simulation has, but I did find some details about it's subcircuit. Although I don't know how useful you will find it!

* EWB Version 4 - CRYSTAL Model
* LS= 0.00254648 CS= 9.9718e-014 RS= 6.4 CO= 2.868e-011
LS 1 3 0.00254648
CS 3 4 9.9718e-014
RS 4 2 6.4
CO 1 2 2.868e-011

I hope this helps you in some way. I will look into your SwitcherCAD, sounds quite good.
canadianpoet2012 is offline  
Old 1st July 2004, 04:37 AM   (permalink)
Default

That crystal model you have is for a 10MHz crystal.

Fc~1/(2*pi*sqrt(Ls*Cs))

The attached circuit oscillates for me on SwitcherCAD III. You have to let it run for about a second to get full amplitude. The crystal model is an educated guess, so you may get different results if you build it in hardware.
The output swings from a little below GND almost to VCC. It should drive CMOS logic OK, but you might want to improve the rise and fall times by running it into a Schmitt trigger. If you want to use TTL, we need to talk.
Attached Images
File Type: gif 32khz_osc.gif (10.0 KB, 322 views)
Roff is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:35 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker