Question Bank
Question Bank
Instruction Se
8
9
10
Addressing Mod
11
12
13
14
15
16
17
18
19
20
Interrupts
21
22
23
24
25
26
27
28
29
30
Programming
31
32
33
34
35
36
37
38
39
40
S.no
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Module 1
Question:
Instruction Set
The instruction that is used to transfer the data from source operand to destination operand is
In PUSH instruction, after each execution of the instruction, the stack pointer is
The instruction that pushes the contents of the specified register/memory location on to the stack is
In POP instruction, after each execution of the instruction, the stack pointer is
The instructions that are used for reading an input port and writing an output port respectively are
The instruction that is used for finding out the codes in case of code conversion problems is
The instruction that loads effective address formed by destination operand into the specified source
register is
Addressing Modes
The instruction, MOV AX, 0005H belongs to the address mode
If the data is present in a register and it is referred using the particular register, then it is
If the offset of the operand is stored in one of the index registers, then it is
If the location to which the control is to be transferred lies in a different segment other than the current
one, then the mode is called
The instruction, JMP 5000H:2000H;
is an example of
The contents of a base register are added to the contents of index register in
Interrupts
While executing the main program, if two or more interrupts occur, then the sequence of appearance of
interrupts is called
Whenever a number of devices interrupt a CPU at a time, and if the processor is able to handle them
properly, it is said to have
The interrupt for which the processor has highest priority among all the internal interrupts is
If any interrupt request given to an input pin cannot be disabled by any means then the input pin is
called
While programming for any type of interrupt, the interrupt vector table is set
For passing the parameters to procedures using the PUBLIC & EXTRN directives, it must be declared
PUBLIC in the
Quetion
In 806, Min mode & Max mode is differed from the Pin no ____ to Pin No ____ . The Pin meaning of
Max Mode are ____,____,_____,____,___,____,______,____________
In 8086, Let Ax = AA & BX =04 . What is the value after executing ADD AX, BX ________ & AAA
______ & DAA_______ & INC AX____ & DEC AX____ (without carry bit) -- (All values are in Hex)
In 8086, suppose Ax = 0001 0001, then what is the value for SHL _____ & SHR _____ & ROR ____ &
ROL _____ & RRC ____ RLC_____
In 8086 Match the following a,b,c,d to 1,2,3,4 a) DB b) DT c) DW d) DQ 1) used to direct the assembler
to reserve only 10-bytes 2) used to direct the assembler to reserve only 4 words 3) used to direct the
assembler to reserve byte or bytes 4) used to direct the assembler to reserve words
In 8086,The instruction, CMP to compare source and destination operands it performs _____ & The
instruction in which adjustment is made before performing the operation is_____
In 8086 - PUSH & POP instruction, after each execution of the instruction, the stack pointer is ___ &
____ respectively
1.______ 2.______These instruction that performs logical AND operation and the result of the operation
is available is and Not available in AX register respectively (in 8086)
8086 Microprocessor has ____ data size,_____ Address size, _____ Clock Speed, ______ No of
transistors, ______Memory Locations
In the 8086 Instruction ADD DX, [BC] [CI], the addressing mode of source opeand is
PUSH A
PUSH B
PUSH C
POP AX
POP BX
SUB AX,BX
POP BX
ADD AX, BX
The expression computed by the above program stored in AX is
To have the multiprocessing capabilities of the 8086, the oin connected to the ground is
In 8086, if the content of the code segment register is 1FAB and the content of the IP register is 10A1,
then the effective memory address is
Option 1 Option 2 Option 3 Option 4 Answer:
truction Set
data
data copy/transfer arithmetic/logical
branch instruction string instruction copy/transfer
instruction instruction
instruction
MOV PUSH DAS POP DAS
flag manipulation shift and rotate string
string instructions
branch instructions instructions instructions instructions
MOV AX, BX MOV DS, 5000H MOV AX, 5000H PUSH AX MOV DS, 5000H
decremented by
incremented by 1 decremented by 1 incremented by 2 decremented by 2
2
incremented by
incremented by 1 decremented by 1 incremented by 2 decremented by 2
2
MOV, XCHG MOV, IN IN, MOV IN, OUT IN, OUT
XCHG XLAT XOR JCXZ XLAT
essing Modes
register direct immediate register relative immediate
immediate
register addressing direct addressing immediate based indexed
addressing
mode mode addressing mode addressing mode
mode
direct
immediate direct addressing indirect addressing register
addressing
addressing mode mode mode addressing mode
mode
register
direct addressing register addressing indexed addressing immediate
addressing
mode mode mode addressing mode
mode
register
direct addressing register addressing register relative register indirect indirect
mode mode addressing mode addressing mode addressing
mode
relative based indexed
based indexed indexed addressing none of the
indexed addressing addressing
addressing mode mode mentioned
mode mode
intrasegment
intrasegment direct intersegment
intrasegment direct intrasegment indirect indirect
and indirect direct addressing
addressing mode addressing mode addressing
addressing mode mode
mode
intersegment intersegment
intersegment direct intersegment
intrasegment mode direct and indirect direct and
mode indirect mode
mode indirect mode
intrasegment direct intrasegment indirect intersegment direct intersegment intersegment
mode mode mode indirect mode direct mode
based indexed
based indexed
relative based and relative
indexed addressing based indexed and relative based
indexed addressing based indexed
mode addressing mode indexed
mode addressing
addressing mode
mode
nterrupts
breaks the
breaks the normal
follows the next normal
jumps to instruction sequence of stops executing
instruction in the sequence of
in other registers execution of the program
program execution of
instructions
instructions
multiple
interrupt handling interrupt processing multiple interrupt multiple interrupt interrupt
ability ability processing ability executing ability processing
ability
Non
nonmaskable nonmovable nonmaskable
nonmultiple interrupt microcontroller
interrupt interrupt interrupt
interrupt
keyboard interrupt TRAP NMI INT TRAP
maskable interrupt
nonmaskable nonmaskable
maskable interrupt and nonmaskable TRAP
interrupt interrupt
interrupt
maskable and
maskable nonmaskable keyboard interrupt maskable
nonmaskable
handle one or
handle one or more handle one or more
handle one interrupt handle no more interrupt
interrupt requests at interrupt requests
request interrupt request requests at a
a time with a delay
time
direction flag overflow flag interrupt flag sign flag interrupt flag
ogramming
same as that of difficult than easier than same as that of
it uses stack
hardware hardware software hardware
Content of BX will
be exchanged with Content of BX
Content of BX will be the content of will be
exchanged with memory location No change in flag exchanged with
No change in BX content of AX [5000] resgisters content of AX
Interrupt flag Trap Flag Zero Flag Interrupt flag
24 to 31,
QS1,QS0, S0,
24 to 31, QS0,QS1, 26 to 34, QS1,QS0, 24 to 31, QS1,QS0, 26 to 33, QS1, S0, S1,S2, LOCk,
S1, S2,S3, LOCk, S0, S1,S2, LOCk, S0, S1,S2, LOCk, S1,S2, LOCk, RQ/GT1
RQ/GT1 ,RQ/GT0 RQ/GT1 ,RQ/GT0 RQ/GT1 ,RQ/GT0 RQ/GT1 ,RQ/GT0
0010 0010 ,
0010 0010 , 0000 0010 0011 , 0000 0010 0010 , 0000 1010 0011 , 0100 0000 1000, 0001
1000, 0001 0000, 1000, 0001 0000, 1010, 0001 0000, 1000, 1101 0000, 0000, 0010
0010 0010, 1000 0010 0010, 1000 0010 0010, 1000 0010 0110, 1000 0010, 1000
1000, 0010 0010 1000, 0010 0010 1000, 0010 0010 1001, 0010 0011 1000, 0010 0010
a-2, b-3, c-4, d-1 a-1, b-2, c-3, d-4 a-3, b-1, c-4, d-2 a-1,b-2,c-3-d-4 a-3, b-1, c-4, d-2
Subtraction &
Subtraction & AAD Comparison & AAA Subtraction & DAA MLA & MUL AAD
decremented by
2&
decremented by 1 & Incremented by 1 & decremented by 2 & Increment by 3 & Incremented by
Incremented by 1 decremented by 1 Incremented by 2 Decement by 3 2
AND & TEQ TEST & TEQ AND & TEST READ & READY AND & TEST
16 bit ,20
16 bit ,16 bit,4.77 16 bit ,20 bit,4.77 8 bit ,16 bit,5 8 bit ,8 bit,916 bit,4.77
MHz,19K,1024 KB MHz,29K , 1 MB MHz,29K,128 KB MHz,19K,1024 KB MHz,29K , 1 MB
2 How are the bits of the register PSW affected if we select Bank2 of
8051?
3 On power up, the 8051 uses which RAM locations for register R0-
R7
4 When 8051 wakes up then 0x00 is loaded to which register?
5 When the microcontroller executes some arithmetic operations,
then the flag bits of which register are affected?
2.2.INSTRUCTION SET
S No Question
1 To initialize any port as an output port what value is to be given to
it?
2 Which out of the four ports of 8051 needs a pull-up resistor for
using it is as an input or an output port?
3 Which of the ports act as the 16 bit address lines for transferring
data through it?
4 Which of the following registers are not bit addressable?
5 Which instruction is used to check the status of a single bit?
6 Which addressing mode is used in pushing or popping any element
on or from the stack?
7 Which operator is the most important while assigning any
instruction as register indirect instruction?
8 . What is the advantage of register indirect addressing mode?
2 What are the contents of the IE register, when the interrupt of the
memory location 0x00 is caused?
10 What is the correct order of priority that is set after a controller gets
reset?
13 The register that stores the bits required to mask the interrupt
inputs is
2 JZ, JNZ, DJNZ, JC, JNC instructions monitor the bits of which
register?
Calculate the jump code for again and here if code starts at 0000H
3 MOV R1,#0 MOV A,#0 MOV R0,#25H AGAIN:ADD A,#0ECH JNC
HERE HERE: INC R1 DJNZ R0,AGAIN MOV R0,A END
9 Which of the following instructions will load the value 35H into the
high byte of timer 0?
13 MOV A, @ R1 will:
2.7.8051 SENSOR
S No Question
1 A thermistor is a __________
2 What is the difference between LM 34 and LM 35 sensors?
4 The memory blocks in Main Memory are mapped on to the cache blocks
with the help of ______.
The average time required to reach a storage location in memory and
5
obtain its contents is called_____.
Control signals can be categorized by the pipeline stage that uses them.
7 Which one of the following signal could be used in the Execution stage of
an instruction?
2.9.Stepper motor
S No Question
1 What is the principle on which electromagnetic relays operate?
internal bus
width doesn’t
it increases and
it decreases remains the same affect the
turns better
performance in
any way
2.2.INSTRUCTION SET
Option 1 Option 2 Option 3 Option 4
A port is by default an
0xFF 0x01 0x00
output port
so as to jump to
EA=1
some other EX0=1 & EA=1 any of the mentioned EX0=1
location where so as to avoid overwriting
all of the
there is a wider of other interrupt none of the mentioned
mentioned
space of memory instructions another
TCON
available to write SCON IE IPR
interrupt may
the codes be caused if
a constant pulse is to
it is difficult to
difficult to analyze its the signal is
be maintained for a
produce effects still low before
greater span of time
the completion
of
EX0 the> last
T0 >
TxD/RxD < T1 < TxD/RxD > T1 > T0 >EX1 EX0 < T0 < EX1 < T1 < instruction
EX1 >T1>
T0<EX1 < EX0 > EX0 TxD/RxD
TxD/RxD
1 7 5 3
In-service
Priority resolver None Interrupt Mask register
register
accepts
manages manages interrupt interrupt
all of the mentioned
interrupts acknowledge signals acknowledge
signal
4 64 8 16
set the INTR reset the INTR set the ISR reset the ISR
Automatic EOI
Specific rotation Automatic rotation EOI
mode
2.4.PROGRAMMING 8051
Option 1 Option 2 Option 3 Option 4
Can’t be
1 2 3 determined
B DPTR A PSW
the address
next address of the address of the call the address next to the
stack pointer where stack
instruction call instruction
pointer starts
0.60 micro 1.085 micro
1 micro seconds 0.75 micro seconds
seconds seconds
10H through
30H through 3FH 20H through 2FH 40H through 4FH
1FH
1 F 7 0
none of the
input & output output input
mentioned
2.6.8051 ADC & DAC
Option 1 the
for controlling Option 2 Option 3 Option 4
for controlling the analog
ADCON0 and for both parts of the none of the
its active high
its active low and the digital pins of the
ADCON1 register chip respectively
its active high input
mentioned
input used to
input controller
of theused to
controller its active high input used to
used to inform inform
inform ADC0804, inform ADC0804, about ADC0804 IC is
CLK ADC0804, about the ADC0804,
aboutINthe
pinstart
is of the end of conversion an 8 bit parallel
used to tell about end
INTR pin tells about the about
of conversion ADC inthethestart
conversion None of the mentioned
the conversion of conversion
end of the conversion family of the
time ADC0800
series
select the
analog
channel,
select the analog channel, activate the
select the analog
select the channel, activate the ALE signal (H ALE signal (L
channel, start the
start the to L pulse), start the conversion, monitor the to H pulse),
conversion, end conversion, monitor the conversion, display the start the
the conversion conversion, read the digital digital results conversion,
None of the results monitor the
Vref/2 & Vin Vin
ADC0804 is used for Vref/2
mentioned conversion,
ADC0804 has
adc and dac read
ADC0804 has 32 bits and 8 bitsthe
anddigital
None of the conversions whereas results
MAX1112 has 3 bit for MAX1112 has
mentioned MAX1112 is used for
data output 1 bit for data
it has current as parallel digital data to serial data None
all of the mentioned outputof the
an output analog data conversion transmissions mentioned
8 discrete voltage 256 discrete voltage 124 discrete
64 discrete voltage levels levels
levels voltage levels
one is input and
none of the
the other is both are output both are input
mentioned
output
2.7.8051 SENSOR
one’s output
Option 1
voltage Option 2 Option 3 Option 4
one requires
corresponds to
micro controller transducer sensor adc
external
the Fahrenheit one is of low precision
one is a sensor and the calibration and
temperature and and the other is of
other is a transducer the other
an analog
the other
an analog voltage higher precision
an analog voltage in doesn’t
voltage require
in the
corresponds
in the form ofto all of the mentioned
the form of voltage itform of
the Celsius
current
temperature pressure or
conversion
conversion from
digital to analog is conversion from analog to to analyse any signal modification is
signal conditioning digital is signal conditioning make
referred to as
connections
conditioning of
8051 with an
make the appropriate ADC to convert
interface sensor with the
connections with the analog voltage
None of the MAX232, send now to
controller, ADC to digital one,
mentioned microcontroller, analyse
conversion, analyse send this
the results
the results digital value to
the controller,
1 2 3 analyse
4 the
to set the ground to set the step size of the results
all of the mentioned g/m
for the chip sampled input
2.8. I/O Memory Interfacing
Option 1 Option 2 Option 3 Option 4
I is true I and III are true II and III are False None of them
are true
they need zero they need less current to they need less voltage to electromagneti
voltage circuit be energised be energised c induction
PSW.3=0 and
PSW.4=1
00-07
PC
PSW
increases with
every push
they
Sup provide
greater bandwidth
& also more
predictable
bandwidth
Von Neumann
it increases and
turns better
Answer
A port is by
default an output
port
PORT 0
MOVC @A+DPTR,
A
1
Answer
to the first
location of the
memory called the
interrupt vector
table
0x00H
next instruction of
the program after
the IE instruction
pin no 12
IE.D4
all of the
mentioned
TCON
another interrupt
may be caused if
the signal is still
low before the
completion of the
last instruction
EX0 > T0 > EX1
>T1> TxD/RxD
Interrupt Request
Register
Interrupt Mask
register
all of the
mentioned
64
buffer enable
all of the
mentioned
Automatic rotation
Answer
2
PSW
E9,01
20000
address 05H is
stored in the
accumulator
NO
MOV TH0,#35
1000
ports 0 and 2
MOV A, R3
Answer
it compares the
all of the
value of the
mentioned
accumulator with
0FH and jumps to
the location where
ROW1 label is
there if the value
is not equal
all of the
mentioned
EX0/EX1
0x80
output
Answer the
for controlling
analog and the
its active
digital low
pins of the
input used to
controller
inform ADC0804,
about the start of
None of the
conversion
mentioned
select the analog
channel, activate
the ALE signal (L
to H pulse), start
the conversion,
monitor the
conversion, read
Vref/2
the digital results
ADC0804 has 8
bits and MAX1112
has 1 bit for data
parallel digital
output
data to analog
data conversion
256 discrete
voltage levels
It is used to bring
data out and send
in the control
byte, one at a time
one’s output
voltageAnswer
corresponds
transducer to
the Fahrenheit
temperature and
the other
all of the
corresponds to
mentioned
the Celsius
conversion
temperatureor
modification is
referred to as
make connections
conditioning
of 8051 with an
ADC to convert
analog voltage to
digital one, send
this digital value
to the controller,
analyse the
results
3
to set the step
size of the
sampled input
Answer
Mapping functions
Access time
ALUop
Throughput and
latency increases
Fetch, Decode,
Execute
fetch instructions
from registers
Answer
electromagnetic
induction
Double pole,
double throw
for increasing the
current
they need less
current to be
energised
it is a device that
can be used as an
electromagnetic
relay without a
driver
by controlling its
switching rate
ounce-inch
no-loaded
By changing duty
cycle of PWM
5 Which architecture provides separate buses for program and data memory?
8 How many types of architectures are available, for designing a device that is
able to work on its own?
9 The address space in ARM is ___________
10 Harvard architecture has _____________
2 What is the difference between the LM34 and the LM35 based sensors?
5 In an external hardware, there are how many pins available for the LM35
and the LM34 based sensors?
6 Do LM34 and LM35 based sensors have linear output?
2 What is the possible range of current limiting resistor essential for lightening
the LED in certain applications after pressing the push-button?
3 What is the purpose of blanking (BI) associated with the 7-segment display
operations?
4 What does the RAM location at 44H indicates about the seven segment
code?
5 How are the port pins of microcontroller are calculated for time-multiplexing
types of display?
6 If the combination of CLKS bits in AD0 control register is '010', then how may
bits can be converted into digital with respect to clock pulses?
7 When is the Overrun bit in the global data register enabled?
8 Which of the triggering method is used when interfacing ADC with ARM?
9 Which LCD display is present in LPC 2148 Development Board?
37 registers(28
35 register( 28 37 registers(31 35 register(30 GPR 37 registers(31
GPR and 9
GPR and 7 SPR) GPR and 6 SPR) and 5 SPR) GPR and 6 SPR)
SPR)
c) they provide
c) they provide
b) they provide greater
a) they provide greater bandwidth
more d) they provide lower bandwidth &
greater & also more
predictable bandwidth also more
bandwidth predictable
bandwidth predictable
bandwidth
bandwidth
3 2 1 4 2
2(2^24) 2(^64) 2(^16) 2(^32) 2(^32)
a) dedicated
buses for data b) pipeline c) complex d) all of the d) all of the
and program technique architecture mentioned mentioned
memory
3.3: ARM Instruction set
Option 1 Option 2 Option 3 Option 4 Answer
R1 R5 R15 R8 R15
MUL R6, R5, MUL R6, R5, MUL R6, R5, LSR #2 ADD R6, R5, R4 MUL R6, R5, R4
LSL #2 R4
Same as previous
Z=1 Z=0 None of the above Z =1
value
MOV MUL ADD SUB MOV
3.4: Thumb instruction set
Option 1 Option 2 Option 3 Option 4 Answer
Intermixing of 32 Intermixing of
Only 32 bits Only 16 bits
bits and 16 bits None of the above 32 bits and 16
instructions instructions
instructions bits instructions
Thumb,
Timer, Debug, Timer, Debug, Thumb, Debug, Thumb, Debug,
Debug,
Multiplex, ICE Modulation, IS Multiplier, IS Multiplier, ICE
Multiplier, ICE
All the above arm code ($a) thumb code ($t) literal data ($d) All the above
either variable or
variable length fixed length None of the above variable length
fixed length
3.5: Interfacing of sensors
Option 1 Option 2 Option 3 Option 4 Answer
its output voltage its output none of the all of the above its output
is directly voltage is mentioned voltage is
proportional to directly directly
the Celsius scale proportional to proportional to
the Fahrenheit the Celsius
scale scale
one requires one has output one is fast other is all of the mentioned one has output
external voltage slow voltage
calibration while proportional to proportional to
other does not the Celsius the Celsius
scale while scale while
others have to others have to
the Fahrenheit the Fahrenheit
scale scale
2 3 10 1 3
To turn ON the To turn OFF To pulse To pulse modulate To turn OFF the
display the display modulate the the lightness of display & To
brightness of display pulse modulate
display the brightness
of display
Level triggering Edge Both a & b None of the above Edge triggering
method triggering method
method
8*8 LED 2*32 LCD 2*16 LCD 2*16 LCD on-chip 2*16 LCD on-
connected chip
peripherally
Code Blocks AVR Studio 4 Keil uVersion 4 Walldorf Keil uVersion 4
% # & * %
Float Integer Long All of these variable All of these
types are recognized variable types
by the arduino are recognized
by the arduino