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

XBANKING vs L51_BANK

I need to access 512k of XDATA, and it seems that there are two options: XBANKING.A51 and L51_BANK.A51. Does anyone have any experience/knowledge that would help me choose which is best to use? Basically, I want pros/cons/war stories for each method.

Thanks,
Greg

Parents
  • "I need to access 512k of XDATA, and it seems that there are two options: XBANKING.A51 and L51_BANK.A51."

    There's also a third option:

    Don't use either of the above; use your own scheme instead.
    This is fine if you have only a very simple requirement; eg a datalogger where you just start writing at address 0 in bank 0 and keep going, only switching banks when one is full and it's time to start the next.
    Thus the bank-switching is handled entirely by your application software.

    As ever, which is best for you will depend entirely on your particular requirements!

Reply
  • "I need to access 512k of XDATA, and it seems that there are two options: XBANKING.A51 and L51_BANK.A51."

    There's also a third option:

    Don't use either of the above; use your own scheme instead.
    This is fine if you have only a very simple requirement; eg a datalogger where you just start writing at address 0 in bank 0 and keep going, only switching banks when one is full and it's time to start the next.
    Thus the bank-switching is handled entirely by your application software.

    As ever, which is best for you will depend entirely on your particular requirements!

Children