Professional Documents
Culture Documents
Mid sem Questions with Answers.docx
Mid sem Questions with Answers.docx
Q2
Memory write
Q4
IO Read
Q5
IO write
Q6
Signal which is output externally initiated operations supported by 8085?
● Resetting (Reset pin)
● Interrupts (Trap, RST 7.5, RST 6.5, RST 5.5)
● Ready (Ready pin)
● Hold Acknowledge (HLDA pin)
Q7 What should a program do to block occurrence of interrupts when an important part of program is
being executed.
User EI and DI
Q8 which of these approaches cannot disable interrupts RST 7.5, RST 6.5, and RST 5.5:
a) Software instruction DI
b) RESET IN signal
c) Any interrupt acknowledge signal.
d) HOLD instruction
Q9 Let RST 7.5 is to be masked (disabled), while RST 6.5 and RST 5.5 are to be unmasked (enabled),
then the content of the bits of the SIM instruction will be like
Answer. 0000 1100 = 0CH
Q10 Write a program which will call the interrupt service subroutine (at 3C00H) corresponding to RST
7.5 if it is pending. Let the ACC content is 20 H on executing the RIM instruction.
RIM
ANI 40H
CNZ 3C00H
Q11 Write a program which will call the subroutine at memory location 0045H, if RST 6.5 is masked. Let
content of ACC is 20 H on executing the RIM instruction.
RIM
ANI OA H
JNZ 0045H
Q12 When the interrupt pins of 8085 are checked by the system?
Answer: One clock before the last T-state of an instruction cycle.
Answer: Check if RST 6.5 is pending or not. If it is pending then enable RST 6.5 without affecting any
other interrupts, otherwise return to main program.
Q15 Find the number of registers and range of address for the scheme shown below:
Q16 Find the range of memory address and number of registers in the scheme shown below
Answer: Range of address: 8800H -8FFFH
No. of registers: 2048
Q17 Find the range of memory address and number of registers in the scheme shown below
Answer: Address Range: 0800H-0FFFH
No of registers: 1024
Q18 Find the range of memory address and number of registers in the scheme shown below
Answer: Address Range: 2800H-2FFFH
No of registers: 2048
Q19 Find the range of memory address and number of registers in the scheme shown below
Answer: Address Range: 3800H-3FFFH
No of registers: 2048
Q20 Find the range of memory address and number of registers in the scheme shown below
Answer: Range of address: 0000-0FFFH, 2000H-27FFH, 2800H-2FFFH
Number of registers in: Reg-1 : 4096, Reg-2: 2048
Q21 Find the range of memory address and number of registers in the scheme shown below
Answer: Range of address: 4000H-4FFFH, 5000H-57FFH
No. of registers: Reg-1: 2048, Reg-2:2048
ADDRESS: FF
OUT: 0101 0101
Q26 For the circuit shown below, write a program to glow the LEDs 6, 4, 2, and 0 connected to the
D-latches.
ADDRESS: FF
OUT: 1010 1010
Q27 For the circuit shown below, write a program to glow the LEDs 7, 5, 3, and 1 connected to the
D-latches.
Q28 For the circuit shown below, write a program to glow the LEDs 6, 4, 2, and 0 connected to the
D-latches.
Q30 Find the address of the latch and the contents in the data lines to switch on the LEDS 7, 5, 3 and 1.
Answer: Address: F5
Data: 55H
Q30 Find the address of the latch and the contents in the data lines to switch on the LEDS 6,4,2, and 0.
Answer: Address: FD
Data: AAH
Q30 Find the address of the latch and the contents in the data lines to switch on the LEDS 6,4,2, and 0.
Address: F5
Data: AAH
Q31 Find the address of the latch and the contents in the data lines to display digit 1 in the 7 segment.
Assume D7 is connect to the led representing dot in the 7 segment. Rest of the lines connected as
given below:
D6 is connected to G, D5 is connected to F, D4 is connected to E, D3 is connected to D, D2 is
connected to C, D1 is connected to B, and D0 is connected to A.
Q32 Find the address of the latch and the contents in the data lines to display digit 6 in the 7 segment.
Assume D7 is connect to the led representing dot in the 7 segment. Rest of the lines connected as
given below:
D6 is connected to G, D5 is connected to F, D4 is connected to E, D3 is connected to D, D2 is
connected to C, D1 is connected to B, and D0 is connected to A.
Q33 Find the address of the latch and the contents in the data lines to display digit 5 in the 7 segment.
Assume D7 is connect to the led representing dot in the 7 segment. Rest of the lines connected as
given below:
D6 is connected to G, D5 is connected to F, D4 is connected to E, D3 is connected to D, D2 is
connected to C, D1 is connected to B, and D0 is connected to A.
Q34 Find the address of the latch and the contents in the data lines to display digit 6 in the 7 segment.
Assume D7 is connect to the led representing dot in the 7 segment. Rest of the lines connected as
given below:
D6 is connected to G, D5 is connected to F, D4 is connected to E, D3 is connected to D, D2 is
connected to C, D1 is connected to B, and D0 is connected to A.
Q35 Assume D7 is connect to the led representing dot in the 7 segment. Rest of the lines connected as
given below:
D6 is connected to G, D5 is connected to F, D4 is connected to E, D3 is connected to D, D2 is
connected to C, D1 is connected to B, and D0 is connected to A.
Write a program to glow 4 in the seven segment.
Answer: MVI A, 99H
OUT FDH
HLT
Q35 Assume D7 is connect to the led representing dot in the 7 segment. Rest of the lines connected as
given below:
D6 is connected to G, D5 is connected to F, D4 is connected to E, D3 is connected to D, D2 is
connected to C, D1 is connected to B, and D0 is connected to A.
Write a program to glow 3 in the seven segment.
Answer: MVI A, D0H
OUT FDH
HLT