Hello All, I've design my app on a 8515 for ease of debugging and prototyping, although in terms of code space and pin usage it should fit onto a 2313. My question though concerns memory usage. In the program I declare an int array 40 elements, an int array of 79 elements, and 11 other int variables giving a count of 130bytes of memory used. (I assume I can simply add it up like this, or am I missing something with regard to my arrarys, +1byte per array maybe?) Since several of these variables are being used to store boolean values, I can mesh several of them into one char and save a couple of bytes of memory. Now my real question is, is simply counting the bytes like this enough to ensure that my program will fit into memory? I also have two interrupts and several loops, do they use up memory (avr-gcc)? Could I do something like assign all the int varibles to registers and just keep the arrays in memory?
Thanks Mike