Go to Post I don't really have a problem with school, as long as it doesn't get in the way of learning. - lukevanoort [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2004, 22:25
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
PIC XT oscillator question.

Ok, i'm hoping there is someone on these forums who can help me here. My problem is this: I am trying to clock a PIC18F252 at 40Mhz, but can't seem to find a way to do so. I can't find non SMD 40Mhz ceramic resonators. I can find 40Mhz crystal oscillators, but that is not their fundamental frequency. They are all designed to operate on a third harmonic and i have no idea how to do this. What about a 10Mhz crystal + the PLL? I don't understand that either? Anybody have any advice as to how i can get 40Mhz? It must be FIRST legal. Also, i have never designed anything this high frequency before, will 40Mhz even work with through hole?
__________________
1139 Alumni

Last edited by Rickertsen2 : 20-01-2004 at 22:34.
  #2   Spotlight this post!  
Unread 21-01-2004, 00:31
Caleb Fulton's Avatar
Caleb Fulton Caleb Fulton is offline
Z = Z^2 + C ......WHEEEE!
AKA: aXvXiA
#0461 (West Side Boiler Invasion)
Team Role: College Student
 
Join Date: Dec 2002
Location: West Lafayette, Indiana
Posts: 205
Caleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura aboutCaleb Fulton has a spectacular aura about
Send a message via AIM to Caleb Fulton
Re: PIC XT oscillator question.

Quote:
Originally Posted by Rickertsen2
Ok, i'm hoping there is someone on these forums who can help me here. My problem is this: I am trying to clock a PIC18F252 at 40Mhz, but can't seem to find a way to do so. I can't find non SMD 40Mhz ceramic resonators. I can find 40Mhz crystal oscillators, but that is not their fundamental frequency. They are all designed to operate on a third harmonic and i have no idea how to do this. What about a 10Mhz crystal + the PLL? I don't understand that either? Anybody have any advice as to how i can get 40Mhz? It must be FIRST legal. Also, i have never designed anything this high frequency before, will 40Mhz even work with through hole?
http://www.npcamerica.com/oscillators.htm
Would any of these work?

BTW...You have my watch, and your cat is hilarious.
__________________
  #3   Spotlight this post!  
Unread 21-01-2004, 07:40
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: PIC XT oscillator question.

you said oscillators but do you really mean crystals?

dont worry about that third harmonic stuff - just get a 40Mhz crystal and connect it with the correct caps on each side, and it will work fine.

Crystals are standard - they have been for years - you do have to worry about what harmonic its oscillating at, they mark and spec them according to the resulting frequency. If you want a 40Mhz clock you get a 40Mhz crystal.

Have you checked DigiKey?
  #4   Spotlight this post!  
Unread 21-01-2004, 14:46
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: PIC XT oscillator question.

Quote:
Originally Posted by KenWittlief
you said oscillators but do you really mean crystals?

dont worry about that third harmonic stuff - just get a 40Mhz crystal and connect it with the correct caps on each side, and it will work fine.

Crystals are standard - they have been for years - you do have to worry about what harmonic its oscillating at, they mark and spec them according to the resulting frequency. If you want a 40Mhz clock you get a 40Mhz crystal.

Have you checked DigiKey?
Yesi did mean resonators. Are you absolutely sure that they will oscillate on their third harmonic automatically. This is against everything i have read and common sense, which dicates that they would run at 13.333 Mhz in a normal configuration rather that their third harmonic of 40Mhz.
__________________
1139 Alumni

Last edited by Rickertsen2 : 21-01-2004 at 22:51.
  #5   Spotlight this post!  
Unread 21-01-2004, 19:41
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: PIC XT oscillator question.

OK, Hold it guys!
First, Rick, you need to know your prey. the Pic you refer to does not take a 40 MHz crystal input. It has an internal 4 x multiplier PLL that you can enable which will take a 10MHz resonator to 40 MHz internal to the chip.
See p. 19 of http://www.microchip.com/download/li...xx2/39564b.pdf

As far as crystals are concerned, I think the only ones you will find that are in your price range are third overtone crystals. These crystals are cut to produce harmonic energy at intervals above their fundamental in this case three times the frequency there are cut for. By designing an oscillator that will produce significant harmonic energy, using a crystal cut for overtone use and then tuning the output for the third harmonic, you can get crystal operation at higher frequencies. The layout of the circuit is critical and the crystal manufacturers specs need to be followed closely.
I think you will be better off with a 10MHz resonator and the 4X multiplier selected.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #6   Spotlight this post!  
Unread 21-01-2004, 20:24
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: PIC XT oscillator question.

Quote:
Originally Posted by Al Skierkiewicz
OK, Hold it guys!
First, Rick, you need to know your prey. the Pic you refer to does not take a 40 MHz crystal input. It has an internal 4 x multiplier PLL that you can enable which will take a 10MHz resonator to 40 MHz internal to the chip.
See p. 19 of http://www.microchip.com/download/li...xx2/39564b.pdf

As far as crystals are concerned, I think the only ones you will find that are in your price range are third overtone crystals. These crystals are cut to produce harmonic energy at intervals above their fundamental in this case three times the frequency there are cut for. By designing an oscillator that will produce significant harmonic energy, using a crystal cut for overtone use and then tuning the output for the third harmonic, you can get crystal operation at higher frequencies. The layout of the circuit is critical and the crystal manufacturers specs need to be followed closely.
I think you will be better off with a 10MHz resonator and the 4X multiplier selected.
Thanks, i will go with a 10Mhz crystal x4 w/the PLL, like you suggested. Digikey sells 10Mhz fundamental mode crystals. Specifically i am loking at Digikey PN:X422-ND, X443-ND and XC953-ND. What is the difference? Which should i use? The X443-ND and XC953-ND specify 18pF load caps. The X422-ND just says "series" under load cap. What does that mean? Does this indicate that the crysta lis series cut rather than parallel cut? Also, if i ever want to use a third overtone crystal, do i use it like normal, or do i have to build a circuit that filters out the fundamental or something like that? Your help is GREATLY appreciated.
__________________
1139 Alumni

Last edited by Rickertsen2 : 21-01-2004 at 20:52.
  #7   Spotlight this post!  
Unread 21-01-2004, 21:55
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: PIC XT oscillator question.

Quote:
Originally Posted by Rickertsen2
Thanks, i will go with a 10Mhz crystal x4 w/the PLL, like you suggested. Digikey sells 10Mhz fundamental mode crystals. Specifically i am loking at Digikey PN:X422-ND, X443-ND and XC953-ND. What is the difference? Which should i use? The X443-ND and XC953-ND specify 18pF load caps. The X422-ND just says "series" under load cap. What does that mean? Does this indicate that the crysta lis series cut rather than parallel cut? Also, if i ever want to use a third overtone crystal, do i use it like normal, or do i have to build a circuit that filters out the fundamental or something like that? Your help is GREATLY appreciated.
James,
Again you have to really refer to the data sheet on the PIC. It describes a variety of oscillator circuits. When a crystal refers to capacitance it is referring to the maximum loading (capacitance in parallel with the crystal) that the crystal will oscillate reliably with. When the crystal is referred as series, it is cut to only work with series fed oscillator circuits. The PIC data sheet specifically calls for a parallel cut crystal or resonator. It also lists the crystals that were tested for various frequencies. Unfortunately none of your selection was on the list.
As you page through the catalogs and manufacturers websites, you will see crystals marked for overtone operation and the intended frequency range. The PIC data sheet has a lot of info. For other crystal oscillators you need to get a textbook to help you. I use the Radio Amatuer's Handbook (pub. Amateur Radio Relay League or ARRL) a lot for this kind of help and your library should have a recent copy as well as other electronics books on oscillator design and layout.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #8   Spotlight this post!  
Unread 21-01-2004, 22:52
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: PIC XT oscillator question.

Quote:
Originally Posted by Al Skierkiewicz
James,
Again you have to really refer to the data sheet on the PIC. It describes a variety of oscillator circuits. When a crystal refers to capacitance it is referring to the maximum loading (capacitance in parallel with the crystal) that the crystal will oscillate reliably with. When the crystal is referred as series, it is cut to only work with series fed oscillator circuits. The PIC data sheet specifically calls for a parallel cut crystal or resonator. It also lists the crystals that were tested for various frequencies. Unfortunately none of your selection was on the list.
As you page through the catalogs and manufacturers websites, you will see crystals marked for overtone operation and the intended frequency range. The PIC data sheet has a lot of info. For other crystal oscillators you need to get a textbook to help you. I use the Radio Amatuer's Handbook (pub. Amateur Radio Relay League or ARRL) a lot for this kind of help and your library should have a recent copy as well as other electronics books on oscillator design and layout.
I looked up crystal oscillators in a few of my books (including the 2003 ARRL handbook) and it was quite insightful.
__________________
1139 Alumni
  #9   Spotlight this post!  
Unread 22-01-2004, 09:55
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: PIC XT oscillator question.

we keep switching words here between crystal, oscillator and (ceramic) resonator.

these are three different things

if you really feel overwhelmed by getting the crystal circuit right, you can buy oscillator packages in surface mount or DIP packages. these have a crystal and buffer circuit inside, all you need to do is put power and gnd on two pins, and a squarewave clock comes out the output pin.

Some also have an 'enable' pin that allows you to turn it off, if you want to run in standby or lowpower mode.

If you are building a one of a kind board, and you dont want to waste time messing with the crystal or ceramic resonator to get it to run, just get an oscillator device. They are not that expensive, esp considering the amount of time they might potentially save you.

DigiKey sells these too.
  #10   Spotlight this post!  
Unread 22-01-2004, 12:32
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: PIC XT oscillator question.

Quote:
Originally Posted by KenWittlief
we keep switching words here between crystal, oscillator and (ceramic) resonator.

these are three different things

if you really feel overwhelmed by getting the crystal circuit right, you can buy oscillator packages in surface mount or DIP packages. these have a crystal and buffer circuit inside, all you need to do is put power and gnd on two pins, and a squarewave clock comes out the output pin.

Some also have an 'enable' pin that allows you to turn it off, if you want to run in standby or lowpower mode.

If you are building a one of a kind board, and you dont want to waste time messing with the crystal or ceramic resonator to get it to run, just get an oscillator device. They are not that expensive, esp considering the amount of time they might potentially save you.

DigiKey sells these too.

Really i havn't been confusing Ceramic, and crystal, but i may have used oscillator in place of crystal. I am still unclear whether or not i can use 40mhz clock sources with the PIC or if i must use a 10mhz clock source and the PIC's PLL to acheive 40Mhz. To be safe i went w/a 10mhz crystal and the PLL for my final design. I was looking at the oscillator things you spoke of. They look REALLY simple. I will have to keep those in mind for future projects.
__________________
1139 Alumni

Last edited by Rickertsen2 : 22-01-2004 at 17:49.
  #11   Spotlight this post!  
Unread 22-01-2004, 12:48
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: PIC XT oscillator question.

Quote:
Originally Posted by KenWittlief
we keep switching words here between crystal, oscillator and (ceramic) resonator.
these are three different things
Ken,
Like many microprocs or microcontrollers, this chip has an onboard oscillator that can use either a ceramic resonator, crystal, an RC oscillator or an external clock. The External clock option might be needed if there was a need to run this from a master for some reason, but as a stand alone it may not be worth the extra expense. I made the recommendation on cost, parts count and complexity. I am sorry for any confusion on the use of the terms and hope that everyone understands that given the right circuitry a crystal and/or a ceramic resonator and/or an RC network all work well in an oscillator. The stability of an oscillator is what governs the decision on which to use. Least stable being the RC followed by the ceramic, crystal, external clock, temperature stabilized (oven) external crystal oscillator and finally atomic reference. I would think in this application the crystal at 4X PLL is the way to go.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone have a pic of my HUGE bottle of Mt. Dew from Bash @ The Beach 2003 mini comp? Elgin Clock Off-Season Events 1 09-01-2004 01:03
Linux with the PIC rwaliany Programming 3 29-12-2003 02:08
TCP/IP on a PIC Venkatesh Electrical 1 18-11-2003 21:00
pic: Another pic of Team 930 CD47-Bot Robot Showcase 7 25-02-2003 21:07


All times are GMT -5. The time now is 00:02.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi