|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
When creating code banking applications, it may become necessary to output the additional address lines from the L51_BANK.A51 configuration file in a reverse polarity. This may be required if the hardware has inverters in-line with A16, A17, A18, and the other additional address lines.
To solve this problem, you must toggle the code bank select lines that will be output. This is done in the L51_BANK.A51 configuration file. The following code illustrates how to do this for PORT-mapped code banking:
. . . SWITCH MACRO N ORG N * 8 PUBLIC ?B_SWITCH&N ?B_SWITCH&N: IF ?B_RTX = 0 ORL ?B_CURRENTBANK,#?B_MASK ANL ?B_CURRENTBANK,# (NOT BANK&N OR NOT ?B_MASK) RET ELSE . . .
Article last edited on: 2001-02-07 00:00:00
Did you find this article helpful? Yes No
How can we improve this article?