CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Crystal or oscillator

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pulsar.nova12



Joined: 06 Jul 2017
Posts: 5
Location: colombia

View user's profile Send private message

Crystal or oscillator
PostPosted: Mon Aug 28, 2017 1:11 pm     Reply with quote

When you create a project you can choose crystal or oscillator, what is the difference between both ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19327

View user's profile Send private message

PostPosted: Mon Aug 28, 2017 1:36 pm     Reply with quote

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: 9161
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Aug 29, 2017 5:05 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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