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

How to use movc in keil?

Hi,
Using at89c51 i want some data to copy from program memory to external Data memory..
without using memcopy()...
any idea ?

Parents
  • Unless you (pre)shadow P2 at ALL TIMES, you can't safely manipulate it and expect any other portion of the program to use it(namely interrupts), then restore it after said use is complete.

    absolutely correct.
    BUT THAT IS INO THE POINT

    The issue you brought up was INC P2. Which, as opposed to your statements can NOT be used when you shadow (the increment will be lost at next shadow to port copy).

    I wish you would discuss THIS instead of the relative merit of my posts, where I could not care less about your opinion.

    Erik

Reply
  • Unless you (pre)shadow P2 at ALL TIMES, you can't safely manipulate it and expect any other portion of the program to use it(namely interrupts), then restore it after said use is complete.

    absolutely correct.
    BUT THAT IS INO THE POINT

    The issue you brought up was INC P2. Which, as opposed to your statements can NOT be used when you shadow (the increment will be lost at next shadow to port copy).

    I wish you would discuss THIS instead of the relative merit of my posts, where I could not care less about your opinion.

    Erik

Children
No data