This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Code Banking: Different banks reference to a table that store in CODE memory

Dear all,
My project using code banking.
I have a table that store in CODE memory(BANK1(?CO?MENUROOT(0x2000))).
And my program in many Banks(Bank1, Bank2, Bank3......) reference to this table. But only program in bank1 can get the correct table value.
Because a lot of reasons, I have to seperate these programs into different banks. And I don't want to create many copy of this table in defferent name to put them in each bank.
How can I solve this problem?
Thank you.

Ovid.

Parents Reply Children
  • I wondered:
    "Why is everyone suddenly trying to do paged virtual memory on 8051s??!!"

    ovid sheu replied:
    "Cost down issue. Why not?"

    The storage itself might be "cheap" per bit but look at all the other costs you're having to incur to make it work!

    DRAM is far cheaper per bit than SRAM - so why aren't you using DRAM??

    Low cost is one thing - but you also have to make sure that it is suitable for the application!

    A bicycle would be a very cheap way to travel around the world, but that doesn't make it practical for the purpose!

  • "Why is everyone suddenly trying to do paged virtual memory on 8051s??!!"

    Cost down issue。Why not?


    Because it is uttely STUPID.

    How does virtual memory save cost over e.g. banking. You can get 2 Mbyte of fast enough for code memory flash for $2 or less. I would like to know what device that, together with the cost of code RAM required for "virtual" comes out cheaper.

    NO, this is NOT a "Cost down issue" it is a "I am going to show how smart I am" issue. That this just makes you look dumb, you eveidently have not realized.

    Erik