ARM Technical Support Knowledge Articles

VARIABLE BANKING CONFIGURATION OPTIONS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I have configured code and variable banking and everything is working fine. However, it appears that variable banking modifies all I/O Port bits during bank switching in the functions ?C?CSTXPTR and ?C?CLDXPTR. Is this correct or are there other configuration options?

ANSWER

Basically there are two ways to define the far memory banking routines:

The first way is with the XBANKING.A51 file. This configuration file allows you to modify the variable banking routines. Variable banking is completely independent of the program code banking. It is your task to exclude port pins that should be not modified by modifing the macro LOAD_BANK.

The second way is with the L51_BANK.A51 file. This configuration file allows you to configure program code banking using several different options. When you set ?B_VAR_BANKING EQU 1, L51_BANK.A51 manages the variable banking of your application via the same extension pins used for program code banking.

When you configure ?B_MODE EQU 0, L51_BANK.A51 just modifies the SFR I/O port pins required to address the number of banks that you have defined.

For ?B_MODE EQU 1, all 8-bits of memory mapped XDATA I/O Port are modified.

?B_MODE EQU 4 allows you to define individual macros that switch to a specific bank. Using this option, you must exclude port pins that you do not want to modify.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-18 18:36:07

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential