ISRO Electronics & Communication (ECE) 2014 - Question 69

All ISRO Electronics & Communication (ECE) papers | ISRO Electronics & Communication (ECE) 2014

Topic: Microprocessors

What will be content of Stack Pointer if following assembly code of 8051 microcontroller is executed immediately after reset?
PUSH 00h
POP 01h
POP 02h

  • A. 07h
  • B. 06h
  • C. 0Ah
  • D. 31h

Answer: B. 06h

Explanation: After a reset instruction, the stack pointer (SP) content in an 8051 microcontroller is 07H.
- PUSH 00h increments SP to 08H.
- POP 01h decrements SP to 07H.
- POP 02h decrements SP to 06H.
Thus, the stack pointer content is 06H.

| | All questions of ISRO Electronics & Communication (ECE) 2014