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 CCS Technical Support

General pll question

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



Joined: 19 Dec 2014
Posts: 16

View user's profile Send private message

General pll question
PostPosted: Mon Feb 27, 2017 1:53 am     Reply with quote

Hi all,
I used pic18lf46k22 at internal clock of 16mhz.
i have a specific code block that took long time.. so I used the setup oscillator to 64 MHz and all work well . After the block I return to 16mhz.
So my questions please:
1. Why not using 64mhz all the time? What are the disadvantages at pll?
2. Advantages/disadvantages at clk source internal vs external?
Ttelmah



Joined: 11 Mar 2010
Posts: 19494

View user's profile Send private message

PostPosted: Mon Feb 27, 2017 2:00 am     Reply with quote

The faster the chip is clocking, the more power it uses.
The maximum 'crystal' frequency of most chips is 25MHz, so anything above this has to use a PLL. Using a lower frequency clock outside the chip reduces RF noise compared to directly operating off the higher frequency, and also reduces the power requirements of the oscillator.

Internal saves two pins, and the cost of a crystal. Downside, not terribly accurate.
id31



Joined: 19 Dec 2014
Posts: 16

View user's profile Send private message

PostPosted: Mon Feb 27, 2017 2:47 am     Reply with quote

Thank you!
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