Running Out of Programing Memory
:mad:Hi all,
Yes, I ran out of program memory. I'm using a PIC16F727, which has 8192 words in program memory. I've already used it all and I need like 300 or 400 more words to finish my project.
I have replaced a bunch of IFs by LOOKUPs to save memory space and I have erased some parts of the code that I don't really need. I use a lot of sub-routines with GOSUB, so there is no need to rewrite the same code over an over. But, I still need from 300 to 400 additional words.
Is there any good programming technique to save program memory? Do you have any programming tips that I can use? Any comments?
Thank you all,
Robert
just to see what we are talking about ...
Quote:
Originally Posted by
aratti
For an usefull answer you must post a sample of your code.
Al.
+ 500 !!!
first: do you use V2.60 ??? ( some good " room saving " enhancements included )
Alain
Move ascii strings out to EEROM
Each ASCII character included in a SEROUT, LCDOUT, DEBUG or SEROUT2 takes at least two characters in program memory for each ASCII character in the string.
Keep any user prompts as terse as possible.
HTH
BrianT