LX51 User's Guide

User-Defined

The following configuration settings are required when user-defined banking is used (?B_MODE = 4).

NameDescription
SWITCHxFor each memory bank, you must create a macro that defines the bank switch code. The number of macros must be consistent with the ?B_NBANKS definition. For example, 4 banks require SWITCH0, SWITCH1, SWITCH2 and SWITCH3 macros. Each macro must generate exactly the same number of code bytes. If the sizes are different you must use NOP instructions to pad out the difference. You must also ensure that the CPU has selected a defined state at startup. The RTX51 real-time operating system does not support this banking mode.