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

setup_ocillator

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







setup_ocillator
PostPosted: Sat Dec 30, 2006 10:16 am     Reply with quote

can anyone prvide clarification on the setup_oscillator function?
I am using a PIC18F4680 and trying to use the iternal oscillator at 8MHZ and use the PLL to clock it up to 32MHZ.
using the CCS constants in setup_oscillator doesn't seem to work. However setting the registers manually does seem to work. If I want to run @ 32Mhz immediately when should I call setup_oscillator?
Ttelmah
Guest







PostPosted: Sat Dec 30, 2006 10:31 am     Reply with quote

What compiler version?.
On 3.249, if you call 'setup_oscillator(OSC_32MHZ);', it works OK.
It also does it OK, if you just define the fuse as 'INTRC', and on the next line set the clock as 32MHz.
With either (or both) of these, it correctly sets the PLL enable bit, and sets the oscillator to 8Mhz.

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