Previous in Forum: Rencode Digital TV Recordings to Save Space on HDD   Next in Forum: Two Transistors Break Down Frequently
Close
Close
Close
16 comments
Rate Comments: Nested
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194

Can Two Different ICs Use The Same Crystal Oscillator?

09/22/2009 6:42 PM

Hi Everyone,

I'm building a circuit that has a microcontroller and an interface device. They both call for a 4MHz crystal/resonator. Can one crystal or resonator be shared by the two devices?

Mike

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
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".
Anonymous Poster
#1

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/22/2009 7:12 PM

Depends on the circuit. Possibly a simple capacitive isolation between the two would suffice, if the circuit requires more elaborate isolation then the minimal cost of two crystals would be negligible.

Hope this helps

Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#2
In reply to #1

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/22/2009 8:07 PM

HI Guest,

Thanks for the reply. If I used capacitive isolation from each other (the 2 chips), would I not then be isolating one of them from the crystal?

My biggest concern is not price of components, but board space.

Mike

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
2
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#3

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/22/2009 8:14 PM

It would be nice to use a single frequency in a system like this, to avoid nasty beat frequencies & suchlike which could "leak" noise.

If you look closely at the device specs, you may find that you can override the oscillator section by driving with an external clock. If you can't use one device as a 'master' & find a suitable output to drive the other as a 'slave', you may be able to drive both from a single external clock.

This rather long-winded article from TI describes a crystal oscillator based on one unbuffered CMOS inverter (& a crystal ).

Then again, you could try just sharing the crystal between the 2 devices - try breadboarding it, maybe?

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Good Answer (Score 2)
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#5
In reply to #3

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/22/2009 8:40 PM

Hi JohnDG,

Thank you for your reply. The frequencies needed to time the devices are the same.

The microcontroller is a PIC16F88. It has an internal oscillator, but I rarely see them used, so I'm thinking that they aren't all that good; I thought "better to go external". It also appears that the internal oscillator of the PIC can be configured to be a system clock. My circuit is not all that complex, just 5 analogue inputs, two digital outputs, 3 digital inputs (keypad) and a serial LCD driver IC. Maybe I'm wrong about the quality of the PIC internal oscillator. What do you think about using the PIC internal oscillator for either the system and/or for the PIC itself?

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#8
In reply to #5

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/23/2009 3:20 AM

I've used the internal PIC oscillator many times (tho' not for some years). Timing was more-or-less irrelevant in most of the apps, - the only ones where it mattered were frequency synthesizers for driving stepper motors at defined speeds.

The accuracy wasn't particularly critical, and using the internal osc. gave results which were certainly acceptable - you couldn't notice any inaccuracy when timing moves lasting up to about 100 seconds, using a stopwatch.

If you really need the accuracy, go for an external trimmed oscillator. It just depends on your application.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#9
In reply to #8

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/23/2009 11:39 PM

Hi JohnDG,

Thanks for the advise (and to you as well, Jack of All Trades)! In light of your info, I am going to let the PIC use its own osc. For the LED interface, I will use a 4MHz resonator w/caps.

Be advised that this is a hobby project, not commercial.

I'm just a ChemE with too much time on his hands

Mike

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#11
In reply to #9

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/24/2009 3:45 AM

It'll definitely work - but try to screen it to keep down rf emissions - I'm still a bit concerned that the two unsynchronised clocks could interfere (not affecting performance, but in terms of the emissions) and muck up nearby radio/TV reception.

Maybe I'm just being over-cautious.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Power-User
United Kingdom - Member - New Member Engineering Fields - Transportation Engineering - New Member Technical Fields - Marketing/Advertising - New Member Hobbies - Target Shooting - New Member

Join Date: Sep 2007
Location: South coast of England
Posts: 411
Good Answers: 36
#12
In reply to #5

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/24/2009 6:30 AM

If your digital outputs are high speed and synchronous you may need to use a common clock, but it sounds as though you could let them free run. I have driven a pair of PIC18 devices from an external buffered clock, but I also had 4 free running devices in the same product.

Register to Reply
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
#13
In reply to #3

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/24/2009 8:04 AM

GA

Eloquent and fully correct (and faster than me!).

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Guru
United Kingdom - Member - Not a new member!

Join Date: Jun 2008
Location: USA/Europe
Posts: 4547
Good Answers: 68
#15
In reply to #3

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/24/2009 12:26 PM

Hi JohnDG,

GA to you Sir.

For very good advice. I am a HAM Listener but have forgotten a lot of the stuff mentioned, which I used to know off by heart!

Take care.

__________________
Take it easy, bb. >"HEAR & you FORGET<>SEE & you REMEMBER<>DO & you UNDERSTAND"<=$=|O|=$=>"Common Sense is Genius dressed in its Working Clothes"<>[Ralph Waldo Emerson]
Register to Reply Off Topic (Score 5)
Guru
New Zealand - Member - Kiwi Popular Science - Weaponology - New Member Engineering Fields - Power Engineering - New Member Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: Auckland, New Zealand
Posts: 8777
Good Answers: 376
#4

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/22/2009 8:35 PM

Have you checked the microcontroller website for application notes that may cover this or more compact clock circuits (perhaps an internal clock option)?

eg, http://www.maxim-ic.com/appnotes.cfm/an_pk/2154

http://www.piclist.com/techref/microchip/osc.htm

What's the application and devices?

__________________
jack of all trades
Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#6
In reply to #4

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/22/2009 8:43 PM

Hi jack of all trades,

Thank you for replying. Please see my reply to JohnDG re my concerns about the quality/stability/robustness of the PIC internal oscillator. Do you have any experience with these?

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Guru
New Zealand - Member - Kiwi Popular Science - Weaponology - New Member Engineering Fields - Power Engineering - New Member Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: Auckland, New Zealand
Posts: 8777
Good Answers: 376
#7
In reply to #6

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/23/2009 12:18 AM

No personal experience but have a look at the following document for more information on the internal RC oscillator (page 2-7), and other external clock options and tricks.

http://ww1.microchip.com/downloads/en/DeviceDoc/01146B.pdf

http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010243

There is a reason they (and other microcontroller manufacturers) provide an internal clock source as a feature, a +/-5% frequency variation is fine in many applications.

__________________
jack of all trades
Register to Reply
Guru

Join Date: Feb 2006
Posts: 1758
Good Answers: 6
#10

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/24/2009 1:20 AM

Yes !

Haajee

Register to Reply
Guru
Hobbies - Musician - New Member Greece - Member - New Member

Join Date: Mar 2007
Location: Greece / Athens
Posts: 722
Good Answers: 28
#14

Re: Can Two Different ICs Use The Same Crystal Oscillator?

09/24/2009 11:20 AM

I made two drawings to show you the way.

These two 33Ω (or 22Ω) resistors must be placed very close to the output of your Xtal oscilator. In this way you have no reflections from each track. So the two clock signals that travels to the 2 chips (microcontroller and interface) will not affect each other. If the Xtal oscilator is not able to drive both inputs of these two chips then you can use a clock buffer as in the follow drawing.

(Again you place two resistors 33Ω closed to the two outputs of the clock buffer in order not to have reflections.) However, I don't think that there will be a need for such a clock buffer.

I hope that it helps.

__________________
George
Register to Reply
Guru
Hobbies - Musician - New Member Greece - Member - New Member

Join Date: Mar 2007
Location: Greece / Athens
Posts: 722
Good Answers: 28
#16
In reply to #14

Re: Can Two Different ICs Use The Same Crystal Oscillator?

10/01/2009 3:03 AM

I forgot to say that the two long tracks (from the xtal oscilator to the chips) must be a kind of transmission line (microstrip or stripline) having an impedance of ≈50R.

__________________
George
Register to Reply
Register to Reply 16 comments

Good Answers:

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

Users who posted comments:

Andy Germany (1); Anonymous Poster (1); babybear (1); Chankley (1); G.K. (2); Haajee (1); jack of all trades (2); JohnDG (3); Mikerho (4)

Previous in Forum: Rencode Digital TV Recordings to Save Space on HDD   Next in Forum: Two Transistors Break Down Frequently

Advertisement