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

18F4515 fuses and oscillator

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








18F4515 fuses and oscillator
PostPosted: Tue Jan 31, 2006 6:38 am     Reply with quote

Can anyone point me to a document that describes the fuse constants and oscillator setup for the 4515? I want to run with a 10MHz crystal and the PLL enabled.

Thanks.
ckielstra



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

View user's profile Send private message

PostPosted: Tue Jan 31, 2006 9:25 am     Reply with quote

Check the top of PIC18F4515.h for all allowed fuse settings.
A description of the fuse acronyms can be found in fuses.txt in your PICC directory.

More detailed info on the fuse settings is in the Microchip PIC18F4515 datasheet.

For 40MHz operation you use a 10MHz crystal and the H4 fuse setting.
Guest








PostPosted: Tue Jan 31, 2006 10:46 am     Reply with quote

Thanks, I have it running. The fuses.txt file was the thing I missed.
Ringo42



Joined: 07 May 2004
Posts: 263

View user's profile Send private message

PostPosted: Wed Apr 19, 2006 2:21 pm     Reply with quote

Is there a way to use a 20Mhz crystal and use a 2X PLL? I didn't see the option in #fuses but want to make sure. Also to use the 4Xpll is this how you do it?

#fuses h4,nowdt,noprotect,put,lvp
#use delay(clock=10000000)

Ringo
_________________
Ringo Davis
Ttelmah
Guest







PostPosted: Wed Apr 19, 2006 2:35 pm     Reply with quote

Look at the chip's data sheet. The only PLL available for the external oscillator is *4, hence the lack of fuses for anything else...
No, the setup for a 10MHz cystal, running with the PLL at 40Mhz, would be:

#fuses h4,nowdt,noprotect,put,lvp
#use delay(clock=40000000)

The setting you give would be for 2.5Mhz *4, which is an invalid configuration for the HS oscillator.

Best Wishes
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