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

Internal Oscillator setup for the 18F4525

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








Internal Oscillator setup for the 18F4525
PostPosted: Fri Dec 29, 2006 12:34 pm     Reply with quote

What is the correct method of setting up the 18f4525 internal oscillator? This is what I have so far:

#include <18f4525.h>
#use delay(internal=8M)
#fuses NOWDT, NOLVP, NOPROTECT, NOPUT, NOBROWNOUT

//setup_oscillator(OSC_8MHZ); <-- the manual says that I don't need this line if I have the fuses command set to internal oscillator. Is the #use delay command enough? If not, what is the fuses command that I need?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Dec 29, 2006 1:48 pm     Reply with quote

Try the test program shown in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=28833
Note that the INTRC_IO fuse is used. Also note that the #use delay
statement is placed after the #fuses statement.
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