Code Banking Configuration

Hi,

Please anyone can help me on Code Bank setting configute?.

I'm using at89c52 and 4 32kB EPROM I have using keil example Bank_EX1 as my exercise. I plan to have 4 EPROM as my CODE.

The define in L51_BANK.A51:
B_NBANKS = 4
B_MODE = 0
B_RTX = 0
B_VAR_BANKING = 1

In the Option for Target -> Target setting:

Off-chip Code memory:-
Eprom: start=0x0000, size=0x4000
Off-chip Xdata memory:-
Ram: start=0xD800, size-0x2700

tick Code Banking:
Banks: 4
Bank Area: start=0x8000, End=0xFFFF

The above setting is it correct?
The acture problem is i can't display the func0 and func1 message. It alway disply the C_root and func2 message only. :(

Do you know why?

Thank you.

Parents
  • Banking is a bodge to to get the processor to work beyond its design limitations.

    Unless you have an existing project that relies upon it, wouldn't it be better to just start with a processor that doesn't have such limitations and, therefore, doesn't need such bodges?

    ie, rather than waste effort on unnecessary workarounds, put that energy directly into building your application!

    But, if you did have an existing project, wouldn't it already be correctly set up...?

    See: "

    See also: www.8052.com/.../read.phtml

Reply
  • Banking is a bodge to to get the processor to work beyond its design limitations.

    Unless you have an existing project that relies upon it, wouldn't it be better to just start with a processor that doesn't have such limitations and, therefore, doesn't need such bodges?

    ie, rather than waste effort on unnecessary workarounds, put that energy directly into building your application!

    But, if you did have an existing project, wouldn't it already be correctly set up...?

    See: "

    See also: www.8052.com/.../read.phtml

Children
More questions in this forum