View previous topic :: View next topic |
Author |
Message |
herby handcock Guest
|
RAM problem |
Posted: Mon Oct 11, 2004 3:17 am |
|
|
Hi,
I have compiled an application using a PIC16F874a and I'm running close to using all of the ram. When I continue adding code to application I run out of RAM. So I switch to device PIC16F876a with more RAM but I still get same response. I have checked everything and have changed header file for device in code but no luck.
Cheers |
|
|
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Mon Oct 11, 2004 4:50 am |
|
|
There are various post about dealing with this problem. Search the forum...
Remember in PIC16s, RAM is banked. So you might experience problems if you try to fit various arrays into memory. You might need to use the #locate preprocessor to manually place your variables. The .SYM symbol file shows the current location of all the variables. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Oct 11, 2004 5:43 am |
|
|
Hint: Pointer size |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Oct 11, 2004 2:06 pm |
|
|
Mark,.. do you mean
#device *=16
?? |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Oct 11, 2004 5:04 pm |
|
|
Yes |
|
|
|