GATE 2005
89 questions
MCQ 891-mark 89
Questions 61–65 of 89
Consider an 8085-microprocessor system.
The following program starts at location 0100H.
LXI SP, 00FF
LXI H, 0107
MVI A, 20H
SUB M
If in addition following code exists from 0109H onwards.
ORI 40 H
ADD M
What will be the result in the accumulator after the last instruction is executed ?
The following program starts at location 0100H.
LXI SP, 00FF
LXI H, 0107
MVI A, 20H
SUB M
If in addition following code exists from 0109H onwards.
ORI 40 H
ADD M
What will be the result in the accumulator after the last instruction is executed ?
Answer: (C)
Find where the added code starts. From 0100H: LXI SP is 3 bytes (0100H to 0102H), LXI H is 3 bytes (0103H to 0105H), MVI A,20H is 2 bytes (0106H to 0107H) and SUB M is 1 byte (0108H). So the next instruction is at 0109H: ORI 40H (0109H to 010AH), then ADD M at 010BH.
The pointer is HL = 0107H. M is the memory byte at 0107H, which is the operand byte of MVI A,20H, so M = 20H.
MVI A,20H sets A = 20H. SUB M gives .
ORI 40H: .
ADD M: .
Answer: (C)
The pointer is HL = 0107H. M is the memory byte at 0107H, which is the operand byte of MVI A,20H, so M = 20H.
MVI A,20H sets A = 20H. SUB M gives .
ORI 40H: .
ADD M: .
Answer: (C)
Consider an 8085-microprocessor system.
The following program starts at location 0100H.
LXI SP, 00FF
LXI H, 0107
MVI A, 20H
SUB M
The content of accumulator when the program counter reaches 0109 H is
The following program starts at location 0100H.
LXI SP, 00FF
LXI H, 0107
MVI A, 20H
SUB M
The content of accumulator when the program counter reaches 0109 H is
Answer: (C)
Find the address of each instruction:
SUB M is one byte long and sits at 0108H, so when the PC reaches 0109H it has already executed.
After MVI, . M means the memory byte whose address is in HL. HL holds 0107H, and the byte at 0107H is the data byte . So
Answer: (C)
SUB M is one byte long and sits at 0108H, so when the PC reaches 0109H it has already executed.
After MVI, . M means the memory byte whose address is in HL. HL holds 0107H, and the byte at 0107H is the data byte . So
Answer: (C)
What memory address range is NOT represents by chip # 1 and chip # 2 in
the figure? in this figure are the address lines and CS means chip select.
Answer: (D)
Each chip has 256 bytes, so it uses to inside the chip. to are not used, so they can be anything. Only decide which chip is selected.
Chip 1: the gate output is , so it is selected when .
Chip 2: the gate output is , so it is selected when .
Now check the high byte of each option. are its two lowest bits:
(A) 0100 to 02FF: 01 gives (chip 1) and 02 gives 10 (chip 2).
(B) 1500 to 16FF: 15 gives 01 (chip 1) and 16 gives 10 (chip 2).
(C) F900 to FAFF: F9 gives 01 (chip 1) and FA gives 10 (chip 2).
(D) F800 to F9FF: F8 gives , which selects neither chip. So F800 to F8FF is not represented by chip 1 or chip 2.
Answer: (D)
Chip 1: the gate output is , so it is selected when .
Chip 2: the gate output is , so it is selected when .
Now check the high byte of each option. are its two lowest bits:
(A) 0100 to 02FF: 01 gives (chip 1) and 02 gives 10 (chip 2).
(B) 1500 to 16FF: 15 gives 01 (chip 1) and 16 gives 10 (chip 2).
(C) F900 to FAFF: F9 gives 01 (chip 1) and FA gives 10 (chip 2).
(D) F800 to F9FF: F8 gives , which selects neither chip. So F800 to F8FF is not represented by chip 1 or chip 2.
Answer: (D)
A ramp input applied to an unity feedback system results in 5% steady state error. The type number and zero frequency gain of the system are respectively
Answer: (A)
For a unit ramp, and the steady-state error is
The error is finite and nonzero (5%), so the system must be type 1. A type 0 system gives infinite ramp error, and type 2 gives zero error.
For a type 1 system, , so , the zero-frequency gain. Then:
So the type number is 1 and the gain is 20. Option (D) is wrong because the gain is , not .
Answer: (A)
The error is finite and nonzero (5%), so the system must be type 1. A type 0 system gives infinite ramp error, and type 2 gives zero error.
For a type 1 system, , so , the zero-frequency gain. Then:
So the type number is 1 and the gain is 20. Option (D) is wrong because the gain is , not .
Answer: (A)
In the derivation of expression for peak percent overshoot,
%
Which one of the following conditions is NOT required ?
%
Which one of the following conditions is NOT required ?
Answer: (C)
The formula is obtained from the step response of the standard second-order system . The derivation makes these assumptions:
- The system is LTI, so a transfer function exists.
- It has a pair of complex-conjugate poles and no zeros, because a zero would change the overshoot.
- Initial conditions are zero, so the response is only the step response.
A pure transportation delay just shifts the whole response in time by T. The peak value does not change, so the percent overshoot remains the same. So this condition is not required.
Correct answer: (C)