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

more info abt. #use delay() & setup_oscillator();

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



Joined: 06 Mar 2007
Posts: 92
Location: Pune,India

View user's profile Send private message AIM Address Yahoo Messenger

more info abt. #use delay() & setup_oscillator();
PostPosted: Sun Nov 04, 2007 11:46 pm     Reply with quote

Dear sir,
here i am using 16f684, MPLAB 7.5 Ver. & CCS PCM C Compiler, Version 3.249, 34534
In my project i am using internal frequency. 8 MHz.so,
#fuses INTRC_IO
Also, i declared
#use delay(clock = 8000000)
then, in the programme it is necessary to define
setup_oscillator(OSC_8MHZ);
if the above statement not defined then what will be the effect.
_________________
Thank You,
With Best Regards,
Deepak.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 05, 2007 1:03 am     Reply with quote

Look at the .LST file for your program. Look at the start-up code (ASM
code) that the compiler puts at the start of main(). Compare it to the
ASM code produced by the setup_oscillator() statement. See if the
CCS start-up code is doing the same thing as that statement.
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