View previous topic :: View next topic |
Author |
Message |
yahyooh
Joined: 22 Aug 2008 Posts: 12
|
pic18f67j10 |
Posted: Wed Mar 03, 2010 2:32 am |
|
|
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
|
|
Posted: Wed Mar 03, 2010 3:26 pm |
|
|
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
|
|
Posted: Thu Mar 04, 2010 12:03 pm |
|
|
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
|
|
Posted: Thu Mar 04, 2010 12:06 pm |
|
|
What is your compiler version ? |
|
|
yahyooh
Joined: 22 Aug 2008 Posts: 12
|
|
Posted: Thu Mar 04, 2010 12:40 pm |
|
|
my ver. is 4.105 can you find a sulotion???
thanx a lot |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Mar 04, 2010 12:50 pm |
|
|
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
|
|
Posted: Thu Mar 04, 2010 12:53 pm |
|
|
ok then i will test again & i will contact you for any news
thanx alot |
|
|
|