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

How to set PLL in CCS

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



Joined: 30 Sep 2012
Posts: 24

View user's profile Send private message

How to set PLL in CCS
PostPosted: Sat Oct 06, 2012 8:38 am     Reply with quote

Hi everyone, I'm using PIC18F4550. Now, I want to use external crystal with 10MHz. I want to set it at 20MHZ (use PLL). How can I do that in CCS ? Smile
falcon1877



Joined: 30 Sep 2012
Posts: 24

View user's profile Send private message

PostPosted: Sat Oct 06, 2012 12:53 pm     Reply with quote

:( Please help me
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Oct 06, 2012 1:27 pm     Reply with quote

First of all, be patient.
Many people on this forum live in a different time zone from you. So when you are awake, they sleep.
Bumping a thread after just 4 hours is annoying. When you annoy people they will not help you.

Then the short answer to your question: You can't because the hardware doesn't support it.
The PLL _must_ get an input frequency of 4MHz. With a 10MHz external crystal this would require a PLL prescaler of 2.5. Impossible.

Study figure 2-1 in the data sheet carefully. Then come back with a configuration that will work.

A hint for you to figure out the CCS fuse settings:
- Check the top of the PIC18F4550.h file. Here are listed all the supported fuse names for this chip.
- In the PICC directory you find the file fuses.txt with a short description of all fuse names.
Ttelmah



Joined: 11 Mar 2010
Posts: 19515

View user's profile Send private message

PostPosted: Sat Oct 06, 2012 2:34 pm     Reply with quote

Also if you search for 4550 fuse settings on the forum, I have in the past posted fairly detailed notes of how the CCS settings work.
The nearest you could get, would be 24MHz.

Best Wishes
falcon1877



Joined: 30 Sep 2012
Posts: 24

View user's profile Send private message

PostPosted: Sat Oct 06, 2012 8:40 pm     Reply with quote

ok, thanks guys, I'll be more patient next time. Very Happy
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