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 Statement on Older Versions of the Compiler

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



Joined: 20 Dec 2009
Posts: 23

View user's profile Send private message

Clock Statement on Older Versions of the Compiler
PostPosted: Tue Jan 19, 2010 8:39 pm     Reply with quote

Hi Everybody,

How do I do this statement:

Code:


#use delay (Crystal=10mHz, Clock=40mHz)  //enables PLL 4* multiply


On an older version of the compiler? The help files for version 3.234 show no information on the clock function, and I don't have the full manual available. I'm using a 18f2320.

Thanks, Al
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jan 19, 2010 9:25 pm     Reply with quote

Set the oscillator fuse to H4 and the #use delay to 40 MHz. That should
do it:
Quote:
#include <18F2320.h>
#fuses H4,NOWDT,PUT,BROWNOUT,NOLVP
#use delay (clock=40000000)
//======================================
void main(void)
{

while(1);
}
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