Memory usage query
Posted: Fri Dec 26, 2014 7:24 pm
Seasons Greetings to All,
I am stillllll busy with a pic project to control a potters kiln with all sorts of operator options and selections via keyboard and ADC ......only in software at this stage....
When I started the project and not knowing much about memory usage I randomly chose a 16f877A chip ......now I am becoming concerned about how much FLASH & RAM memory I have used / left. I have not, actually I have never used EEPROM memory and am keen to try it in the delay for Mark / Space control of the TRIAC so as not to "stop" the "real time clock", which is using the TMR0 function. I digress.........so to the point........
I need help in confirming what I have learned via the forums and learning center on memory.
1) It is better to use many MACROS instead of only Main ....is that for speed or memory location saving...there a limit to number of MACROS?
2) Use local variables where possible as opposed to global
3)Any restrictions on calling a MACRO from within a MACRO and only returning to Main occasionally?
+ Can anyone direct me to a site with a course / article on efficient memory usage... I am "virtually blind" to this important aspect of programming
+ How Can I check for available memory during "programming"
PS I have not upgraded from V4 to V6....yet
Looking forward to replies,
Manie
I am stillllll busy with a pic project to control a potters kiln with all sorts of operator options and selections via keyboard and ADC ......only in software at this stage....
When I started the project and not knowing much about memory usage I randomly chose a 16f877A chip ......now I am becoming concerned about how much FLASH & RAM memory I have used / left. I have not, actually I have never used EEPROM memory and am keen to try it in the delay for Mark / Space control of the TRIAC so as not to "stop" the "real time clock", which is using the TMR0 function. I digress.........so to the point........
I need help in confirming what I have learned via the forums and learning center on memory.
1) It is better to use many MACROS instead of only Main ....is that for speed or memory location saving...there a limit to number of MACROS?
2) Use local variables where possible as opposed to global
3)Any restrictions on calling a MACRO from within a MACRO and only returning to Main occasionally?
+ Can anyone direct me to a site with a course / article on efficient memory usage... I am "virtually blind" to this important aspect of programming
+ How Can I check for available memory during "programming"
PS I have not upgraded from V4 to V6....yet
Looking forward to replies,
Manie