|
|
View previous topic :: View next topic |
Author |
Message |
pulsar.nova12
Joined: 06 Jul 2017 Posts: 5 Location: colombia
|
Crystal or oscillator |
Posted: Mon Aug 28, 2017 1:11 pm |
|
|
When you create a project you can choose crystal or oscillator, what is the difference between both ? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19516
|
|
Posted: Mon Aug 28, 2017 1:36 pm |
|
|
A crystal, is just what it says. A crystal fitted across two pins of the chip. These pins internally have an inverting gate, that then makes it oscillate.
The external oscillator, is a complete module including the drive electronics, that oscillates and generates a clock signal. This single signal can then be fed into one pin on the PIC. You can then elect to use the second pin for either logic I/O, or as a clock output to drive other circuitry.
So the first plus for the external oscillator, is that it only needs one pin.
Then most have sufficient output drive, that the same signal can be used to drive other circuitry.
Then you can also get modules that perform far better than the simple crystal. So a good crystal will give perhaps 50PPM tolerance. You can get external oscillator modules that include their own temperature compensation, and give much better accuracy. 2PPM is quite common, and 0,5PPM is readily available.
The crystal needs more careful layout, requires the right loading capacitance, but is generally cheaper, but the prices of TCXO modules have plummeted in recent years with the increasing needs for highly accurate oscillators, and are now often little more expensive than the crystal. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9228 Location: Greensville,Ontario
|
|
Posted: Tue Aug 29, 2017 5:05 am |
|
|
I would like to add that an 'oscillator' does require power, so be sure to check it's specs before using especilly on battery powered projects !
The more accurate ones use more power than the 'regular' ones.
Just something to consider....
Jay |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|