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 CCS Technical Support

pic18f67j10

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



Joined: 22 Aug 2008
Posts: 12

View user's profile Send private message

pic18f67j10
PostPosted: Wed Mar 03, 2010 2:32 am     Reply with quote

Can anybody tell me way. I see an Error during compiling while I use pic18f67j10 in
Code:

#use delay(clock=10000000)

I tried many times but no response.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 03, 2010 3:26 pm     Reply with quote

The program shown below compiles with no errors with compiler vs. 4.105:
Code:
#include <18F67J10.h>
#fuses HS,NOWDT
#use delay(clock=10000000)

//======================================
void main(void)
{

while(1);
}
yahyooh



Joined: 22 Aug 2008
Posts: 12

View user's profile Send private message

PostPosted: Thu Mar 04, 2010 12:03 pm     Reply with quote

No I am sure of it. I tried many times. The Error message says that clock is out of range. I tried another clock frequency but the same appears to me & for knowledge I tried to write the program in USB master Kit but it doesn't work. Please help me.
Thanx for your responding.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 04, 2010 12:06 pm     Reply with quote

What is your compiler version ?
yahyooh



Joined: 22 Aug 2008
Posts: 12

View user's profile Send private message

PostPosted: Thu Mar 04, 2010 12:40 pm     Reply with quote

my ver. is 4.105 can you find a sulotion???
thanx a lot Very Happy
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 04, 2010 12:50 pm     Reply with quote

I compiled the test program that I posted above with vs. 4.105
and I don't get any clock speed errors:
Quote:

CS PCH C Compiler, Version 4.105, xxxxx 04-Mar-10 10:50

Filename: C:\Program Files\PICC\Projects\PCH_Test\PCH_Test.lst

ROM used: 26 bytes (0%)
Largest free fragment is 65528
RAM used: 4 (0%) at main() level
4 (0%) worst case
Stack: 0 locations



Executing: "C:\Program Files\PICC\Ccsc.exe" +FH "PCH_Test.c" +DF +LN +T +A +M +Z +Y=9 +EA
>>> Warning 203 "PCH_Test.c" Line 9(1,1): Condition always TRUE
Memory usage: ROM=0% RAM=0% - 0%
0 Errors, 1 Warnings.
Loaded C:\Program Files\PICC\Projects\PCH_Test\PCH_Test.cof.
BUILD SUCCEEDED: Thu Mar 04 10:50:07 2010
yahyooh



Joined: 22 Aug 2008
Posts: 12

View user's profile Send private message

PostPosted: Thu Mar 04, 2010 12:53 pm     Reply with quote

ok then i will test again & i will contact you for any news
thanx alot Very Happy
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