Author |
Message |
Topic: memory allocation |
clockuser
Replies: 12
Views: 32303
|
Forum: General CCS C Discussion Posted: Wed Oct 08, 2003 12:39 pm Subject: problem solved!! |
hi all,
thanks for all your replies. yes, it is a programming fault.
i couldnt post the whole code because it was huge and there were a lot of nested functions.
what i found was that in on ... |
Topic: memory allocation |
clockuser
Replies: 12
Views: 32303
|
Forum: General CCS C Discussion Posted: Wed Oct 08, 2003 11:44 am Subject: my code |
hi all,
a portion of my code.......
#include<16f877.h>
#include<string.h>
#use delay(clock=18432000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7,errors)
#fuses HS,NOW ... |
Topic: memory allocation |
clockuser
Replies: 12
Views: 32303
|
Forum: General CCS C Discussion Posted: Wed Oct 08, 2003 11:25 am Subject: still didn't work |
hi all,
I thank you for your suggestions. I tried making my variables static, that helped but it started affecting the other variables which can't be made static such as function parameters. u ... |
Topic: memory allocation |
clockuser
Replies: 12
Views: 32303
|
Forum: General CCS C Discussion Posted: Tue Oct 07, 2003 10:40 am Subject: memory allocation |
hi all,
i am new to the forum, i am using CCS PCM version 3.149. the variables share memory locations to optimize the RAM.
the problem is that my variables get reused WHILE the functio ... |
|