This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Code banking with Philips 89C51X2BN

we have configured the P89C51X2BN for code banking through it's port P3 (bits 2 and 3).
LX51 linker is used for linking/locating.
There are 4 banks, each of 32 K. The common area is from 0x0000-0x7fff. The interrupt vectors and function modules commonly called from the main function are all part of common. When the code is simulated, then correct addresses are being generated.However,the same code fails to work on the actual code - the bank switching fails. Could anyone tell me where we are going wrong?

Parents
  • If it works on the simulator, but not in the real target, what does this tell you?

    There must be something wrong with your real target, mustn't there?

    Either you have a design flaw, or your hardware is faulty - or, possibly, both!

    What have you done to verify that your target hardware is actually working correctly?

Reply
  • If it works on the simulator, but not in the real target, what does this tell you?

    There must be something wrong with your real target, mustn't there?

    Either you have a design flaw, or your hardware is faulty - or, possibly, both!

    What have you done to verify that your target hardware is actually working correctly?

Children