i am using pic 18f452 for a monitoring system
after completion of about 80% of program my program memory is at its 90% utilization.i observed that mainly two functions are consuming lot of memory,that functions are unavoidable in my circumstances. can any body suggest any method to increase program memory?
how to optimize program memory?
using external program memory,is it a remedy?
please help me, thanks in advance
First of all write the state machine and try to figure out the maxmum total number of variables comes in states
1) Remove all unnecessary variables.
2) remove the campare steps ( if else) using bool varaibles.
3) use precomutation / #define at the places that requires multiple assigment of the same expression
4) Reuse of varible at the maxmum
5) try to reduce the loop if you are using / less array usage
6) Allocat the memory banks manually / rather than telling compiler to allocate it