Mmiq 2
Mmiq 2
MCQ A. 1 A
B.
C.
D. None of the above
In a 8085 MP system,
which of the following
control signal(s) will be
used in I/O mapped I/O
scheme:
MCQ A. 1 C
B.
C.
D. None of the above
Q.No:2 What would be the status
of and A0 to transfer
one byte of the data from
even address in 8086 MP
system?
MCQ A. = 0 and A0 = 0 2 C
B. = 0 and A0 = 1
C. = 1 and A0 = 0
D. = 1 and A0 = 1
MCQ What would be the status 2 A
of and A0 to transfer
one word of the data from
even address in 8086 MP
system?
A. = 0 and A0 = 0
B. = 0 and A0 = 1
C. = 1 and A0 = 0
D. = 1 and A0 = 1
What would be the status
of and A0 to transfer
one byte of the data from
odd address in 8086 MP
system?
MCQ A. = 0 and A0 = 0 2 B
B. = 0 and A0 = 1
C. = 1 and A0 = 0
D. = 1 and A0 = 1
How many number of bus
cycles required to transfer
one word of the data from
odd address in 8086 MP
system?
MCQ A. 1 2 B
B. 2
C. 3
D. 4
Q.No:3 The following program is
implemented in a 8086
MP:
MOV AH,00H ;
MOV AL,38H ;
MOV BL,34H ;
ADD AL, BL ;
MCQ AAA ; 3 C
After executing the above
program, what would be
the content of register AX.
A. [AX] = 0072H
B. [AX] = 7200H
C. [AX] = 0102H
D. [AX] = 0201H
MCQ The following program is 3 D
implemented in a 8086
MP:
MOV AH,00H ;
MOV AL,36H ;
MOV BL,36H ;
ADD AL, BL ;
AAA ;
After executing the above
program, what would be
the content of register AX.
A. [AX] = 0071H
B. [AX] = 7100H
C. [AX] = 0201H
D. [AX] = 0102H
The following program is
implemented in a 8086
MP:
MOV AH,00H ;
MOV AL,35H ;
MOV BL,39H ;
ADD AL, BL ;
MCQ AAA ; 3 A
After executing the above
program, what would be
the content of register AX.
A. [AX] = 0104H
B. [AX] = 4010H
C. [AX] = 0074H
D. [AX] = 7400H
MCQ The following program is 3 B
implemented in a 8086
MP:
MOV AH,00H ;
MOV AL,34H ;
MOV BL,33H ;
ADD AL, BL ;
AAA ;
After executing the above
program, what would be
the content of register AX.
A. [AX] = 0067H
B. [AX] = 0007H
C. [AX] = 6700H
D. [AX] = 7000H
Q.No:4 How many address lines
are available in a 4K x 8
EPROM chip?
A. 10
MCQ 4 C
B. 11
C. 12
D. 13
How many address lines
are available in a 8K x 8
RAM chip?
A. 13
MCQ 4 A
B. 14
C. 15
D. 16
How many address lines
are available in a 2K x 8
RAM chip?
A. 10
MCQ 4 B
B. 11
C. 12
D. 13
How many address lines
are available in a 16K x 8
EPROM chip?
A. 11
MCQ 4 D
B. 12
C. 13
D. 14
Q.No:5 If the BSR mode control
word in 8255 PPI is 0CH,
then specify which port C
bit is reset?
A. PC6
MCQ 5 A
B. PC1
C. PC0
D. PC4
MCQ A. PC0 5 D
B. PC1
C. PC2
D. PC3
If the I/O mode control
word in 8255 PPI is A2H,
then specify configuration
of port A and port B?
A. Port A as input port
and port B as input port
MCQ 5 B
B. Port A as output port
and port B as input port
C. Port A as input port
and port B as output port
D. Port A as output port
and port B as output port
MCQ If the I/O mode control 5 C
word in 8255 PPI is
11xxx000 (in Binary), then
specify configuration of
port A and port B?
Assume ‘x’ is don’t care.
A. Port A as input port
and port B as output port
B. Port A as input port
and port B as input port
C. Port A as bidirectional
port and port B as output
port
D. Port A as bidirectional
port and port B as input
port
Q.No:6 Out of IR0, IR1, ……IR7,
which IR input(s) is/are
masked if the OCW1 for a
8259 is 45H?
B. 5
C. 6
D. 7
MCQ Determine OCW1 in 8259 5 D
PIC to unmask only IR2
and IR7, and mask the rest
of interrupt inputs?
A. B7H
B. 48H
C. 84H
D. 7BH
Q.No:7 Which register bank is
selected in the 8051
Microcontroller after
RESET?
B. 07H
C. 14H
D. 12H
What would be the status
of RS1 and RS0 bits of the
program status word
(PSW) register in the 8051
Microcontroller after
RESET?
MCQ 6 A
A. RS1=0 and RS0=0
B. RS1=0 and RS0=1
C. RS1=1 and RS0=0
D. RS1=1 and RS0=1
Which register bank is
selected in the 8051
Microcontroller if RS1=1
and RS0=1?
Question Question CO
No Mappi
ng
(Each
questi
on
should
be
from
the
same
CO(s))
Q. No:8 A) Draw the internal architecture of 8085 MP and explain 1,3
about Accumulator and stack pointer registers.
[2+1+1]
Ans:
Figure 1
Control Signal
0 0 1
0 1 0
1 0 1
1 1 0
Q.No:9 A) Explain the role of Instruction Queue in 8086 MP. State 2,3,4
what happens in the Instruction Queue when the 8086 MP
encounters a Jump/Call instruction. [3+1]
Ans:
Figure 2
Identify the Mode 0 control word to configure port B as
input port and port C as output port.
Write a program to read the switches and display the
reading from port B at port C of 8255 PPI in a 8086 MP
system. [6]
Sol:
A7 A A5 A A3 A2 A1 A Sele Addre
6 4 0 cted ss
1 0 0 0 0 0 0 0 Por 80H
tA
1 0 0 0 0 0 1 0 Por 82H
tB
1 0 0 0 0 1 0 0 Por 84H
tC
1 0 0 0 0 1 1 0 Con 86H
trol
Reg
iste
r (C
R)
1 0 0 0 0 0 1 0 = 82H
Initialization instructions:
CNTRL EQU 86H ; Address of CR
MOV AL, 9DH ; [AL] <== Control Word
OUT CNTRL, AL ; CR <== Control Word
B) Determine ICW1 and ICW2 for a single 8259 chip in a
8086 system with the following parameters. [2+2]
Edge triggered
Type number of interrupt for IR0 is Type 32 (in Decimal)
Ans:
Icw1:
0 0 0 1 0 0 1 1 =13H
Icw2:
0 0 1 0 0 0 0 0 =20H
C) Explain the Fully nested mode and automatic rotation
mode in 8259 PIC with suitable example. [2+2]
Ans: Fully nested mode:
This is a general purpose mode in which all Interrupt
Requests (IRs) are arranged from highest to lowest, with IR0
as the highest and IR7 as the lowest.
0 0 0 0 1 0 1 0 = 0AH
CNTRL EQU 96H; Address of CONTROL REGISTER (CR)
MOV AL, 01H ; [AL] <== Control Word to set bit PC0
OUT CNTRL, AL ; CR <== Control Word
MOV AL, 0BH ; [AL] <== Control Word to set bit PC5
OUT CNTRL, AL ; CR <== Control Word
CALL DELAY ; Dealy 20 msec
MOV AL, 00H ; [AL] <== Control Word to reset bit PC0
OUT CNTRL, AL ; CR <== Control Word
MOV AL, 0AH ; [AL] <== Control Word to reset bit PC5
OUT CNTRL, AL ; CR <== Control Word
B) Explain briefly about the different modes of operation of
I/O ports of 8255 PPI in I/O mode. [4]
Ans:
Ans: XTAL1, XTAL2
A 12 MHz crystal oscillator is connected between XTAL2 and
XTAL1 to provide the clock frequency of 1MHz to the 8051
Microcontroller.