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

Using a different crystal oscillator

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








Using a different crystal oscillator
PostPosted: Tue Mar 15, 2005 3:05 pm     Reply with quote

I have a PIC18f458 and was using a 20Mhz crystal oscillator. Will it make any difference in my program if I use a 16Mhz or 24Mhz oscillator?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 15, 2005 3:06 pm     Reply with quote

You need to change the #use delay() statement to match your
new crystal frequency.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Mar 15, 2005 3:19 pm     Reply with quote

Depends on what your program does. It will affect the speed of your timers/counter/pwms. The baud rate generators will have different values as well. If you use the #use rs232 to set the speed then you won't have a problem. If you set the SPBRG value yourself, then you will have to compute the new value.
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