View Full Version : multi bank programing.
05-31-2005, 02:47 PM
I'm starting to run into problems with programe and varible space. So I was thinking about reading up on multibank programing on the bs2px. I know this would give me more programe space, but how about varible space? Do you need to write varible declarations in each programe bank for that programe? Or are all varibles specifyed in the main programe bank, and used threwout?? Thanx Duane
05-31-2005, 07:26 PM
If you declare the same set of variables -- in the same order (use copy-and-paste) -- in multiple program banks then you can move between the banks (with RUN) while keeping your variables intact.
Another strategy is to use the Scratchpad RAM to pass information between the banks.· This article will help in that regard: http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv87.pdf
Applications Engineer, Parallax