Hello Archangel,
I meant if I use the variable in the beginning of my code then I have to put the include before that which will automatically put the whole large piece of code in the beginning of the program memory and my main cycle and interrupt handler will be pushed in further program memory pages which will make them working slower (switching pages) in favor of seldom used subroutine which will be sitting on the first page.
Actually I do not know how long it takes switching pages. If this is just a couple of cycles than probably there is nothing to worry about... What do you think?
Does putting variables in upper banks works same way for RAM (saving cycles on switching pages?) So far I used this option (for RAM bank) only once because of a glitch preventing my program to work normally until I switched a bank for one variable - not sure what was the problem but the problem went away after that.
Best regards,
Alexey
Bookmarks