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

clock configuration PIC18F67J94 (18F66J94)

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



Joined: 17 Feb 2015
Posts: 2

View user's profile Send private message

clock configuration PIC18F67J94 (18F66J94)
PostPosted: Thu May 28, 2015 10:49 am     Reply with quote

Hello.
Today I'm asking for help for the correct way to configure clock in my pic18F66J94. I want to use it with internal osc at 64Mhz. I'm trying with wizard of CCS but i can't get it, please help me.

This is my actual config:
Code:

#include <18F66J94.h>
#device ADC=16

/* Para Cristal interno de 8Mhz */
#FUSES  NOWDT                    //No Watch Dog Timer
#FUSES  WDT128                   //Watch Dog Timer uses 1:128 Postscale
#FUSES  NOXINST                  //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
#FUSES  SOSC_DIG                 //Digital mode, I/O port functionality of RC0 and RC1
#FUSES  CKSFSM                   //Clock Switching is enabled, fail Safe clock monitor is enabled
#FUSES  FRC

#use delay(internal = 64000000)
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Thu May 28, 2015 12:36 pm     Reply with quote

You need the PLL enabled. FRC selects the non PLL branch. You need the 8* PLL (FRCPLL PLL8X)

However 'beware'. Do you intend to use USB?.
If you are going to use USB, the USB PLL branch has to be used, and this does not offer 64MHz as a CPU clock from the internal clock.
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