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

stack initislization in 8051

Hi All,
In 8-bit microcontrollers which has upper 128 bytes of internal indirectly addressable RAM, Is stack initilizes from this upper or lower internal RAM address?

Thanks and Regards,
Ashutosh Tiwari

Parents
  • "...value WILL lead to disaster."

    Actually, for technical correctness, that should read:

    "...value MAY lead to disaster."

    It really does depend upon what the memory map of DATA/IDATA is as to whether a problem might occur.

    Consider ... The map is configured to have a stack starting in register bank one, then there is (arguably) no need to set the stack.

Reply
  • "...value WILL lead to disaster."

    Actually, for technical correctness, that should read:

    "...value MAY lead to disaster."

    It really does depend upon what the memory map of DATA/IDATA is as to whether a problem might occur.

    Consider ... The map is configured to have a stack starting in register bank one, then there is (arguably) no need to set the stack.

Children