Saturday, February 27, 2016

8051 Stack Pointer

SP

8051 Stack Pointer

  • Address: 0x81.
  • Size: 8-bit.
  • Byte addressable.
  • Contains the address of the data item on top of the stack.
  • Used by subroutine call and return instructions.
  • Stack, in user space of internal RAM, grows upward; the SP is incremented before pushing and decremented after popping a value.
  • By default, SP will be initialized to 07H.
  • User can initialize SP to desired location.
  • Depending on the initial value of the SP, 8051 stack can have different sizes.



Related topics:
8051 Registers   |   8051 Program Counter   |   8051 R Registers   |   8051 SFR   |   8051 P Registers   |   8051 Stack   |   8051 Data Pointer   |   8051 PCON Register   |   8051 TCON Register   |   8051 TMOD Register   |   8051 Timer Registers   |   8051 SCON Register   |   8051 SBUF Register   |   8051 IE Register   |   8051 IP Register   |   8051 PSW Register   |   8051 A Register   |   8051 B Register

List of topics: 8051

No comments:

Post a Comment