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

PIC18F67K22 oscillator problem

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



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

PIC18F67K22 oscillator problem
PostPosted: Sun Jun 22, 2014 12:48 am     Reply with quote

Greetings! I`m not very familiar with this controller. I connected a 10M quartz with 15pF caps as an oscillator.
Here are my fuse settings:
Code:

#include <18F67K22.h>
#FUSES HSH,NOWDT

The problem is with the delay function. I have to set clock=40M to have a correct delay time. Am I using some kind of PLL?!
Thanks!
temtronic



Joined: 01 Jul 2010
Posts: 9202
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Jun 22, 2014 5:54 am     Reply with quote

yes....please look at figure 3-1 of the datasheet to see the 'flow' or signal path for using your 10MHz xtal/caps to get 40MHz. It'll have to go through the 4xPLL to get 'up to speed'.

Nice chip as you can use the internals (4,8,16MHz)to input to the 4xPLL !!

too many PICs...never enough time to play with them !

cheers
Jay
dyeatman



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

View user's profile Send private message

PostPosted: Sun Jun 22, 2014 7:28 am     Reply with quote

In the datasheet, HSH is High Power mode where the chip has to run in the
range of 16-25Mhz (Table 3-1). Therefore, with a 10Mhz oscillator the PLL
is automatically set to on. However, the inputs are not biased
properly for 10Mhz. If you use HSM it should run at 10Mhz and it will be
biased properly.. You can then use the PLLEN fuse if needed.
_________________
Google and Forum Search are some of your best tools!!!!
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