Embedded Systems, Data Acquisition and IoT · Digital Electronics
8 questions · asked in 8 of 13 years (2014–2026)
MCQ 4 · MSQ 2 · NAT 21-mark 1 · 2-mark 7
2014Questions per year2026
Questions 1–5 of 8
A 16-bit processor has 16-bit wide instructions and a few internal registers. Every 16-bit instruction is encoded in a fixed format with one operation code of 7 bits and up to three operands. The operand can be an internal register and each operand is encoded by 3 bits. All the internal registers can be specified in an instruction using three bits.
The correct statement(s) for this processor is/are _____.
The correct statement(s) for this processor is/are _____.
One or more options are correct.
Answer: (B), (C)
Each operand field is 3 bits, and all internal registers can be named using 3 bits. So the number of registers is at most .
The opcode field is 7 bits, so the number of distinct opcodes is at most .
Check the bit budget: 7 (opcode) + 3 × 3 (operands) = 16 bits, which matches the instruction width. No bits are left over, so the opcode cannot be widened.
(A) Wrong: 16 registers would need 4 bits per operand, but only 3 bits are available.
(B) Correct: a 7-bit opcode gives 128 opcodes.
(C) Correct: 3 bits address up to 8 registers.
(D) Wrong: 512 opcodes would need 9 bits, but the opcode field is 7 bits.
Answer: (B), (C)
The opcode field is 7 bits, so the number of distinct opcodes is at most .
Check the bit budget: 7 (opcode) + 3 × 3 (operands) = 16 bits, which matches the instruction width. No bits are left over, so the opcode cannot be widened.
(A) Wrong: 16 registers would need 4 bits per operand, but only 3 bits are available.
(B) Correct: a 7-bit opcode gives 128 opcodes.
(C) Correct: 3 bits address up to 8 registers.
(D) Wrong: 512 opcodes would need 9 bits, but the opcode field is 7 bits.
Answer: (B), (C)
An 8-bit microprocessor has 16-bit address bus () where is the LSB. As shown in Figure (a), it has a pre-installed 4 KB ROM whose starting address is 0000 H. The processor needs to be upgraded by adding a 16 KB RAM as shown in Figure (b). The address range for the newly added RAM is
Answer: (C)
The RAM is 16 KB, so it uses address lines internally (since bytes).
The chip select is active low. The OR gate output is .
For , both inputs of the OR gate must be 0. So and .
to are free, so they run from all 0s to all 1s.
Lowest address: .
Highest address: .
This range does not overlap the ROM, which sits at 0000 H–0FFF H. Option (D) would need , which keeps the RAM disabled.
Answer: (C)
The chip select is active low. The OR gate output is .
For , both inputs of the OR gate must be 0. So and .
to are free, so they run from all 0s to all 1s.
Lowest address: .
Highest address: .
This range does not overlap the ROM, which sits at 0000 H–0FFF H. Option (D) would need , which keeps the RAM disabled.
Answer: (C)
A 16-bit microprocessor has twenty address lines ( to ) and 16 data lines. The higher eight significant lines of the data bus of the processor are tied to the 8-data lines of a 16 Kbyte memory that can store one byte in each of its 16K address locations. The memory chip should map onto contiguous memory locations and occupy only 16 Kbyte of memory space. Which of the following statement(s) is/are correct with respect to the above design?
One or more options are correct.
Answer: (A), (C)
A 16 Kbyte chip has locations, so it uses 14 address lines, to . The remaining lines to must be decoded for chip select. A 16 Kbyte block must start at a multiple of , where .
(A) Correct. Ending address = start + = .
(B) Wrong. , so . The correct chip select is . The given expression uses only to , so it would select a 64 Kbyte space from to . The chip would then respond to more than 16 Kbyte.
(C) Correct. is not a multiple of , because . With to decoded, the block containing it is to . So a block starting at cannot be made this way.
(D) Wrong. A byte-wide chip can be wired to only half of a 16-bit data bus. Here it sits on the upper eight lines, to . It is enabled for transfers on that half of the bus, for example with a byte-high-enable control, so the width difference does not stop the interfacing.
Answer: (A), (C)
(A) Correct. Ending address = start + = .
(B) Wrong. , so . The correct chip select is . The given expression uses only to , so it would select a 64 Kbyte space from to . The chip would then respond to more than 16 Kbyte.
(C) Correct. is not a multiple of , because . With to decoded, the block containing it is to . So a block starting at cannot be made this way.
(D) Wrong. A byte-wide chip can be wired to only half of a 16-bit data bus. Here it sits on the upper eight lines, to . It is enabled for transfers on that half of the bus, for example with a byte-high-enable control, so the width difference does not stop the interfacing.
Answer: (A), (C)
In a microprocessor with a 16 bit address bus, the most significant address lines A15 to A12 are used to select a 4096 word memory unit, while lines A0 to A11 are used to address a particular word in the memory unit. If the 3 least significant lines of the address bus A0 to A2 are short-circuited to ground, the addressable number of words in the memory unit is ______.
Answer: 512
The memory unit has 4096 words, so it uses 12 address lines, A0 to A11 ().
Lines A0, A1 and A2 are shorted to ground, so they are always 0. They can no longer change, and only the remaining lines A3 to A11 can select a word.
Number of usable lines = .
Addressable words = .
Only addresses that are multiples of 8 (low three bits 000) can be reached, which is 512 words out of 4096.
Answer: 512
Lines A0, A1 and A2 are shorted to ground, so they are always 0. They can no longer change, and only the remaining lines A3 to A11 can select a word.
Number of usable lines = .
Addressable words = .
Only addresses that are multiples of 8 (low three bits 000) can be reached, which is 512 words out of 4096.
Answer: 512
A portion of an assembly language program written for an 8-bit microprocessor is given below along with explanations. The code is intended to introduce a software time delay. The processor is driven by a 5 MHz clock. The time delay (in s) introduced by the program is ________.
MVI B, 64H ; Move immediate the given byte into register B. Takes 7 clock periods.
LOOP : DCR B ; Decrement register B. Affects Flags. Takes 4 clock periods.
JNZ LOOP ; Jump to address with Label LOOP if zero flag is not set. Takes 10 clock periods when jump is performed and 7 clock periods when jump is not performed.
MVI B, 64H ; Move immediate the given byte into register B. Takes 7 clock periods.
LOOP : DCR B ; Decrement register B. Affects Flags. Takes 4 clock periods.
JNZ LOOP ; Jump to address with Label LOOP if zero flag is not set. Takes 10 clock periods when jump is performed and 7 clock periods when jump is not performed.
Answer: 279 to 282
The clock is 5 MHz, so one clock period is .
B = 64H = 100 in decimal, so the loop runs 100 times.
Clock periods:
MVI B: 7
DCR B, 100 times:
JNZ with jump taken, 99 times: (B goes from 100 down to 1, so zero is not reached)
JNZ with no jump, once, when B becomes 0: 7
Total clock periods.
Delay .
This lies in the accepted range of 279 to 282.
Answer: 280.8 µs
B = 64H = 100 in decimal, so the loop runs 100 times.
Clock periods:
MVI B: 7
DCR B, 100 times:
JNZ with jump taken, 99 times: (B goes from 100 down to 1, so zero is not reached)
JNZ with no jump, once, when B becomes 0: 7
Total clock periods.
Delay .
This lies in the accepted range of 279 to 282.
Answer: 280.8 µs
Keep practising
Topics in Digital Electronics
Combinational LogicSequential LogicData Converters
Embedded Systems, Data Acquisition and IoTYou are here