Modify the default BANK-SWITCHING ROUTINE

Source: Internet
Author: User

Modifying the default bank-SWITCHING ROUTINE

The default bank-switching code is available in the supplied assembler language source

File iar_banked_code_support.s51, which you can find in the directory

8051 \ src \ lib.

The bank-switching routine is based on an SFR port being used for the bank switching.

By default P1is used. The SFR port is defined inthe linker command file by the line:

-D? CBANK = PORTADDRESS

As long as you use this solution, the only thing you must do is to define the appropriate

SFR port address.

After you have modified the file, reassemble it and replace the object module in

Runtime library you are using. Simply include it in your application project and it will

Be used instead of the standard module in the library.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.