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

PIC18FxxJ60 w/PLLx5 and #use delay

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



Joined: 07 Jan 2004
Posts: 1611
Location: Central Illinois, USA

View user's profile Send private message

PIC18FxxJ60 w/PLLx5 and #use delay
PostPosted: Mon Jul 06, 2009 6:31 pm     Reply with quote

Hey all,

I'm using a PIC18F97J60 and would like to run at max speed which for this chip means turning on the PLL (x5) and then the pre/post scaler.


The datasheet allows for a 25MHz Xtal which x5 = 125MHz which is out of range... so instead you can set it for 25MHz / 3 * 5 = 41.6667MHz.

But what should one put in #use delay (clock=41.6667M, crystal=25M)??

I have this and now my #use RS232 statements produce gobbledy gook for obvious reasons.

I'll fiddle, but I thought I might ask some of you if there's a more official answer.

Thanks!

-Ben

UPDATE: I fixed this. Make sure to use clock=41666700 with #fuses H4_SW and setup_oscillator(OSC_PLL_5_DIV_3) and all is fine.
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
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