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

SFR

Hallo everybody,
can I overwrite the SFR and write other datas like constants. For example can I delete the ASC Registers because I don't need them?

Parents Reply Children
  • What can I do to get more space.

    If you run out of RAM (IDATA/XDATA) on a '51, you either need to optimize your programs memory usage (by changing your code and/or using compiler/linker features like memory overlaying) or pick a different device.

    Misusing SFRs as additional registers requires that you know the '51 architecture and your particular device inside out. And if you do the latter, you will probably not resort to this technique since you know that it can only lead to nightmares.

  • what is the controller you are using?
    Is it really contains a very small RAM to hold your variables???
    Can you roughly say how much bytes of variables you are using?