Author |
Message |
Topic: Does the ccs function write_program_memory() work??? |
kometen
Replies: 9
Views: 13079
|
Forum: General CCS C Discussion Posted: Fri May 13, 2005 4:37 am Subject: Does the ccs function write_program_memory() work??? |
Yes, it works fine for me with e.g. the 18F452 PIC.
Remember when you use the function that you
must use pointer to the variable
The correct code is:
write_program_memory(0x1000, &data, ... |
Topic: Printf - Please help |
kometen
Replies: 3
Views: 8280
|
Forum: General CCS C Discussion Posted: Wed Mar 16, 2005 2:37 am Subject: My code |
Yes, there ought to be a better way.
I am using pcwh 3.216 .
My code:
int tanktoshow;
signed long temperature[20];
char string [20];
tanktoshow=1;
I am using this line to load the signe ... |
Topic: Printf - Please help |
kometen
Replies: 3
Views: 8280
|
Forum: General CCS C Discussion Posted: Tue Mar 15, 2005 12:14 pm Subject: Printf - Please help |
I have a signed long in the range of -5000 to +5000 representing a temperature between -500,0 to +500,0 degree C
When I try to convert the value to a string using the fprintf it works fine
for val ... |
Topic: Small change, but a new version number!! : ) |
kometen
Replies: 3
Views: 7232
|
Forum: General CCS C Discussion Posted: Fri Mar 04, 2005 7:25 am Subject: Some vague description |
This is great humor. He He.
br
Poul  |
Topic: version 3208 |
kometen
Replies: 2
Views: 7607
|
Forum: General CCS C Discussion Posted: Thu Sep 02, 2004 12:18 am Subject: version 3208 |
I just upgraded to 3208 in my WIN98 OS.
Immidiately after compiling source code (compiling fine in 3207),
I get the message from Wndows that PCW had made an illegal operation.
Please comment.
: ... |
Topic: memcpy broken? |
kometen
Replies: 6
Views: 14827
|
Forum: General CCS C Discussion Posted: Thu Jun 17, 2004 1:00 pm Subject: memcpy broken? |
Dear friend.
Many thanks for your help. I was very confused about this matter since the code has been working fine for at least one year. I believe that one of the reasons for the proble ... |
Topic: memcpy broken? |
kometen
Replies: 6
Views: 14827
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2004 3:00 pm Subject: memcpy broken? |
[The syntax _should_ work.
Remember 'receiver' has to be a defined variable at this point, as does 'receivedtelegrams'.
I have just compiled the code as:
int8 receivedtelegrams[50][2];
int8 receiv ... |
Topic: memcpy broken? |
kometen
Replies: 6
Views: 14827
|
Forum: General CCS C Discussion Posted: Mon Jun 14, 2004 12:08 pm Subject: memcpy broken? |
Thanks for your answer. Before I wrote to the forum I looked into the manual and found the same answer, however if I use:
memcpy(&receivedtelegrams[receiver][0], &receivedtelegr ... |
Topic: memcpy broken? |
kometen
Replies: 6
Views: 14827
|
Forum: General CCS C Discussion Posted: Mon Jun 14, 2004 8:55 am Subject: memcpy broken? |
Since version 3.142 and also in the recent 3.202 I have experienced problems with the memcpy command:
memcpy(receivedtelegrams[receiver][0], receivedtelegrams[receiver][1],40);
E ... |
Topic: memory problems 18F6720 |
kometen
Replies: 5
Views: 13485
|
Forum: General CCS C Discussion Posted: Tue May 11, 2004 2:20 am Subject: memory problems 18F6720 |
Further to my last message:
I have tried also to run the program with a small allocation:
int16 msgreadtlgno[8];
#locate msgreadtlgno =0x390
Again my program go haywire.
Maybe there is a ... |
Topic: memory problems 18F6720 |
kometen
Replies: 5
Views: 13485
|
Forum: General CCS C Discussion Posted: Tue May 11, 2004 1:21 am Subject: memory problems 18F6720 |
Thanks for your help.
When the #locate is used, then the array start adress is 0x052C
Best regards
Poul |
Topic: memory problems 18F6720 |
kometen
Replies: 5
Views: 13485
|
Forum: General CCS C Discussion Posted: Mon May 10, 2004 7:38 am Subject: memory problems 18F6720 |
After upgrading from version 3.142 to 3.190 I have problems
running my code. The problems seems to arise from these lines:
char telegramstosend[8] [3] [40];
#locate telegramstosend =0x060 ... |
Topic: Storing Hexcode in Pic |
kometen
Replies: 2
Views: 12796
|
Forum: General CCS C Discussion Posted: Thu Jan 15, 2004 1:06 am Subject: Good idea |
Thanks, that was a good idea, I have already a FRAM in the design I can use.
Regards
Poul |
Topic: Storing Hexcode in Pic |
kometen
Replies: 2
Views: 12796
|
Forum: General CCS C Discussion Posted: Wed Jan 14, 2004 1:14 pm Subject: Storing Hexcode in Pic |
In my 'master' (18f6720) unit I want to keep a copy of the code for a
smaller 'slave' (16f452) unit. In case of exchange of the slave unit I can download the code using a bootloader. How c ... |
|