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

Oscillator Problem

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







Oscillator Problem
PostPosted: Sat Nov 24, 2007 10:42 am     Reply with quote

Hi,

i using a PIC18F87J10. The PICs runs but only one the quarter speed. I using
a 10Mhz Osc. and set
#FUSE H4_SW

but the PIC runs only with 10Mhz.

Somebody can help me?
ckielstra



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

View user's profile Send private message

PostPosted: Sat Nov 24, 2007 6:55 pm     Reply with quote

The fuse H4_SW makes it possible to enable the PLL under software control. Besides this flag you need to enable the PLL with setup_oscillator(). (see PIC18F87J10.h file for possible options).
Code:
#include <18F87J10.h>
#fuses H4_SW, NOWDT, NOXINST
...
void main()
{
  setup_oscillator(OSC_PLL_ON);
  ...
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