All Exams Test series for 1 year @ ₹349 only
Question

The address assigned to the 128 bytes RAM space is from 00H to 7FH. What is the correct address for the bit-addressable area in this space ?

This question was previously asked in
UGC NET 2023 Paper 1 Question Paper (22-Jun-2023) (Shift 2)
The correct answer is

20-2FH

 The bit-addressable area of the 8051's internal RAM is the sixteen bytes from 20H to 2FH — option 4.

How the 128 bytes are divided.

AddressSizeUse
00H – 1FH32 bytesFour register banks of R0–R7
20H – 2FH16 bytesBit addressable — 128 individual bits
30H – 7FH80 bytesGeneral purpose scratchpad and stack

The arithmetic confirms the boundaries. Sixteen bytes hold

\(16\times8=128\ \text{bits}\)

and those bits are given their own addresses 00H to 7FH in a completely separate bit-address space. Bit 0 of byte 20H is bit address 00H, and bit 7 of byte 2FH is bit address 7FH. The overlap of numbers is a genuine source of confusion: address 20H in the byte space is the same physical location as bits 00H–07H in the bit space, and which is meant depends entirely on the instruction used.

Why options 1, 2 and 3 are wrong. All three fall inside 00H–1FH, which is the register-bank area. Those 32 bytes are the four switchable banks of R0–R7, selected by RS1 and RS0 in the PSW — they are directly addressable as bytes but not bit addressable.

What bit addressability buys. A single instruction can set, clear, complement or test one bit:

SETB 25H    CLR 2FH    JB 07H, label

Without it, changing one bit needs a read, a mask with AND or OR, and a write back — three instructions and a spare register, with the further hazard that an interrupt between the read and the write could lose a change made in between. The single-instruction form is atomic.

The feature extends beyond RAM. Special-function registers whose addresses are divisible by eight — P0, P1, P2, P3, TCON, SCON, IE, IP, PSW, ACC and B — are also bit addressable, which is what allows an individual port pin to be driven or tested directly. Together with the carry acting as a one-bit accumulator, this makes the 8051 unusually well suited to control work.

Hence, the bit-addressable area is 20H–2FH.

Was this answer helpful?

Important Questions from Memory

  1. Which of the following is NOT true about ROM?

  2. One Exabyte is equal to ______.

  3. Which of the following memory is volatile?

  4. 1 GB consists of:
  5. Which of the following storage is volatile in nature?

Need Expert Advice?
Test Series
UGC NET img
Teaching
UGC NET Library and Information Science 2024 - 2025 Mock Test Series
66 Tests 4 Tests Free
791 Attempts
4.4(17)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App