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

Clock for 18F2550

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



Joined: 20 Sep 2007
Posts: 11

View user's profile Send private message

Clock for 18F2550
PostPosted: Thu Sep 20, 2007 10:18 am     Reply with quote

I have seen various sample code for the 18F2550. it looks to me that a 20MHz external clock can give you a 48MHz clock with the following code

#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN,NOBROWNOUT,MCLR


if this correct please help me understand the math or explain the last paragraph in 2.2.4 of the PIC datasheet for the 18F2550/4550. it doesn't make sense to me.

I also noticed the same code as above is being used in the sample code for the USB development kit CCS provides. So I know it is correct but I dont know why.
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Thu Sep 20, 2007 10:23 am     Reply with quote

Ttelmah makes a good explanation on this issue in this thread, also look for the graphic diagram on the website linked at in the last post.
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