Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following special function registers of 8051 is not bit addressible ?

  • A.Accumulator (ACC)
  • B.Program Status Word (PSW)
  • C.Port O (PO)
  • D.Serial Data Buffer (SBUF)

Answer: D

The SFR that is not bit addressable is SBUF, the serial data buffer.

In the 8051, only the special function registers whose addresses end in 0H or 8H (divisible by 8) are bit addressable. ACC is at E0H, PSW at D0H and port P0 at 80H, so their individual bits can be set, cleared and tested with bit instructions.

SBUF is at 99H, which does not end in 0 or 8, so it can only be read or written as a whole byte.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.