 | Cx51 User's Guide |  |
|
|
| switchbank| Summary |
void switchbank (
unsigned char bank_number); /* code bank */
| | Description | The switchbank function switches to the code bank specified by bank_number. This function is used by code banking programs to manually switch to a different code bank. Note - This function may be called only from a function located in the common area. Calls to this function from a function in a code bank will cause undesired effects and may not return to the calling function.
| | Return Value | None. | | Example |
extern switchbank (unsigned char bank_number);
void tst_switchbank (void) {
switchbank(1); /* switch to code bank 1 */
switchbank(2); /* switch to code bank 2 */
switchbank(3); /* switch to code bank 3 */
}
|
|
|