Interfacing and Peripheral Devices · Microprocessors and Computer Organization
9 questions · asked in 9 of 26 years (2001–2026)
MCQ 8 · NAT 11-mark 7 · 2-mark 2
2001Questions per year2026
Questions 1–5 of 9
An 8 Kbyte ROM with an active low Chip Select input () is to be used in an 8085 microprocessor based system. The ROM should occupy the address range 1000H to 2FFFH. The address lines are designated as is the most significant address bit.
Which one of the following logic expressions will generate the correct signal for this ROM?
Answer: (A)
The memory chip needs 13 address lines.
The address range given is 1000H-2FFFH.
For to be low, the needed condition is
and
The circuit that gives an active low chip select signal is shown below:
The logic expression is written as,
A 16 Kb (=16,384 bit) memory array is designed as a square with an aspect ratio of one (number of rows is equal to the number of columns). The minimum number of address lines needed for the row decoder is _______.
Answer: 7
16 Kb = 16384 bits = bits.
A square array has equal rows and columns. With rows and columns:
So there are rows. The row decoder must select one of 128 rows, so it needs 7 address lines.
Answer: 7
A square array has equal rows and columns. With rows and columns:
So there are rows. The row decoder must select one of 128 rows, so it needs 7 address lines.
Answer: 7
For the 8085 microprocessor, the interfacing circuit to input 8-bit digital data h from an external device is shown in the figure. The instruction for correct data transfer is
Answer: (D)
The data must reach the accumulator by a read operation, so the device must be selected during a read and the right instruction must be used.
The device is selected when and .
comes from output 0 of the decoder. The decoder is enabled when (so ), (so , a read) and (the AND gate needs ). Output 0 needs . So the low byte is .
comes from the second AND gate. pass through inverters, so they must be 0, and to must be 1. So the high byte is .
Because , this is a memory cycle, so the device is memory mapped at the 16-bit address F8F8H. LDA F8F8H reads that address into the accumulator.
Why not the others: IN F8H is an I/O instruction (), so the decoder would stay disabled. OUT F8H is also an I/O instruction and it writes. MVI A,F8H only loads a constant and does not read the device.
Answer: (D)
The device is selected when and .
comes from output 0 of the decoder. The decoder is enabled when (so ), (so , a read) and (the AND gate needs ). Output 0 needs . So the low byte is .
comes from the second AND gate. pass through inverters, so they must be 0, and to must be 1. So the high byte is .
Because , this is a memory cycle, so the device is memory mapped at the 16-bit address F8F8H. LDA F8F8H reads that address into the accumulator.
Why not the others: IN F8H is an I/O instruction (), so the decoder would stay disabled. OUT F8H is also an I/O instruction and it writes. MVI A,F8H only loads a constant and does not read the device.
Answer: (D)
There are four chips each of 1024 bytes connected to a 16 bit address bus as shown in the figure below. RAMs 1, 2, 3 and 4 respectively are mapped to addresses
Answer: (D)
Each RAM is 1024 bytes, so it uses address lines to . The other lines choose the chip. The RAM 1 range is different in all four options, so check RAM 1 only. The others follow in the same way.
The block feeding the RAM enables is a 1-to-4 demultiplexer. Its input is the output of the AND gate, and its select lines are and . RAM 1 is on output 00 and gets its enable E when the AND output is 1.
Select line: gives .
AND gate: its inputs are (through an inverter), , and (through inverters). The output is 1 only for .
So RAM 1 is at 0800H to 0BFFH. Changing to 01, 10 and 11 gives 1800H-1BFFH, 2800H-2BFFH and 3800H-3BFFH for RAMs 2, 3 and 4. This matches option (D).
Answer: (D)
The block feeding the RAM enables is a 1-to-4 demultiplexer. Its input is the output of the AND gate, and its select lines are and . RAM 1 is on output 00 and gets its enable E when the AND output is 1.
Select line: gives .
AND gate: its inputs are (through an inverter), , and (through inverters). The output is 1 only for .
So RAM 1 is at 0800H to 0BFFH. Changing to 01, 10 and 11 gives 1800H-1BFFH, 2800H-2BFFH and 3800H-3BFFH for RAMs 2, 3 and 4. This matches option (D).
Answer: (D)
In the circuit shown, the device connected Y5 can have address in the range
Answer: (B)
Y5 is an output of the 74LS138, so the decoder must be enabled and the select inputs must be 101.
Enable conditions:
comes through an inverter from , so needs .
(the input from the NAND gate) is active low, so the NAND output must be 0. That needs all its inputs to be 1. The inputs are , , , and (bubbles mean inverted). So .
Select: for Y5, .
So the device can have an address in the range 2D00H to 2DFFH.
Answer: (B)
Enable conditions:
comes through an inverter from , so needs .
(the input from the NAND gate) is active low, so the NAND output must be 0. That needs all its inputs to be 1. The inputs are , , , and (bubbles mean inverted). So .
Select: for Y5, .
So the device can have an address in the range 2D00H to 2DFFH.
Answer: (B)
Keep practising
Topics in Microprocessors and Computer Organization
Basics of 8085 MicroprocessorInstructions of 8085 MicroprocessorMicroprocessor 8085 ProgrammingMicroprocessor 8085 Interrupts
Interfacing and Peripheral DevicesYou are here