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

PIC18lf2520 Setting the fuses to use Internal OSC

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



Joined: 21 Sep 2005
Posts: 12

View user's profile Send private message Yahoo Messenger

PIC18lf2520 Setting the fuses to use Internal OSC
PostPosted: Fri Aug 11, 2006 11:29 am     Reply with quote

Hi all:

Anyone know how to configure a pic18lf2520 to use the internal Crystal?

Shocked
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 11, 2006 11:50 am     Reply with quote

Load the 18F2520.H file in your editor. Scan the list of available fuse
settings (config bit settings) at the top of the file. CCS tries to use
abbreviations for the config bits that seem reasonable.

What fuse settings do you see in the list that look like they refer to
the internal oscillator ?
cam_male2003



Joined: 21 Sep 2005
Posts: 12

View user's profile Send private message Yahoo Messenger

PostPosted: Wed Aug 30, 2006 5:38 am     Reply with quote

I was refering to using the internal Xtal on the chip.
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Aug 30, 2006 5:55 am     Reply with quote

There is no internal XTAL, only an internal RC oscillator.

As PCM said above, which of the fuses appear to look like an INTernal RC oscillator fuse?
Guest








PostPosted: Wed Aug 30, 2006 7:16 am     Reply with quote

Use INTRC or INTRC_IO in #fuses and don't forget to set up your internal oscillator by
setup_oscillator(OSC_8MHZ | OSC_INTRC);
as the first line of your main() code because this chip has two internal oscillators (8MHz and 31kHz).
cam_male2003



Joined: 21 Sep 2005
Posts: 12

View user's profile Send private message Yahoo Messenger

JUST THANKING EVERYONE
PostPosted: Thu Aug 31, 2006 1:31 pm     Reply with quote

THANKS FOR THE HELP!
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