Está en la página 1de 9

Dr.N.G.P.

Institute of Technology / ECE

Dr. N.G.P. INSTITUTE OF TECHNOLOGY


Coimbatore-641048

DEPARTMENT OF
ELECTRONICS AND COMMUNICATION ENGINEERING

MULTIPLE CHOICE QUESTIONS

EC6504 / MICROPROCESSOR AND MICROCONTROLLER


REGULATION: 2013

Prepared by Reviewed by

Dr.M.Dhivya, ASP/ECE Dr.K.Gayathri Devi/Academic Co-Ordinator

Approved by

HoD/ECE Principal

EC6504 MICROPROCESSOR & MICROCONTROLLER LT PC


Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller
Dr.N.G.P. Institute of Technology / ECE
3003
OBJECTIVES:

Study the Architecture of 8086 microprocessor


Learn the design aspects of I/O and Memory Interfacing circuits.
Study about communication and bus interfacing.
Study the Architecture of 8051 microcontroller.

UNIT I THE 8086 MICROPROCESSOR 9

Introduction to 8086 Microprocessor architecture Addressing modes - Instruction set and


assembler directives Assembly language programming Modular Programming - Linking and
Relocation - Stacks - Procedures Macros Interrupts and interrupt service routines Byte and
String Manipulation.

UNIT II 8086 SYSTEM BUS STRUCTURE 9

8086 signals Basic configurations System bus timing System design using 8086 IO
programming Introduction to Multiprogramming System Bus Structure Multiprocessor
configurations Coprocessor, Closely coupled and loosely Coupled configurations Introduction
to advanced processors.

UNIT III I/O INTERFACING 9

Memory Interfacing and I/O interfacing - Parallel communication interface Serial


communication interface D/A and A/D Interface - Timer Keyboard /display controller
Interrupt controller DMA controller Programming and applications Case studies: Traffic Light
control, LED display , LCD display, Keyboard display interface and Alarm Controller.

UNIT IV MICROCONTROLLER 9

Architecture of 8051 Special Function Registers(SFRs) - I/O Pins Ports and Circuits -
Instruction set - Addressing modes - Assembly language programming.

UNIT V INTERFACING MICROCONTROLLER 9

Programming 8051 Timers - Serial Port Programming - Interrupts Programming LCD &
Keyboard Interfacing - ADC, DAC & Sensor Interfacing - External Memory Interface- Stepper
Motor and Waveform generation.

TOTAL: 45 PERIODS

OUTCOMES: Upon completion of the course, students will be able to

Design and implement programs on 8086 microprocessor.


Design I/O circuits.
Design Memory Interfacing circuits.
Design and implement 8051 microcontroller based systems.

UNIT I THE 8086 MICROPROCESSOR

Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller


Dr.N.G.P. Institute of Technology / ECE

1. The purpose of the microprocessor is to control


(a)Memory
(b)switches
(c) Processing
(d) tasks
ANSWER: ( a)

2. The microprocessor can read/write 16 bit data from or to


(a) memory
(b) I /O device
(c) processor
(d) register
ANSWER: ( a)

3. The 16 bit flag of 8086 microprocessor is responsible to indicate


(a) the condition of result of ALU operation
(b) the condition of memory
(c) the result of addition
(d) the result of subtraction
ANSWER: ( a)

4. The IP is ________ bits in length


(a) 8 bits
(b) 4 bits
(c) 16 bits
(d) 32 bits
ANSWER: ( c)

5. LDs copies to consecutive words from memory to register and ___________


(a) ES
(b) DS
(c) SS
(d) CS
ANSWER: ( b)

6. The pin of minimum mode AD0- AD15 has _________ data bus
(a) 4 bit
(b) 20 bit
(c) 16 bit
(d) 32 bit
ANSWER: ( c)

7. The _______ is used to connect more microprocessor


(a) peripheral device
(b) cascade
(c) I/O devices
(d) control unit
ANSWER: ( b)

8. In 8086 microprocessor the following has the highest priority among all type interrupts?
(a) NMI
(b) DIV 0
(c) TYPE 255
(d) OVER FLOW
ANSWER: ( a)

9. Which of the following is not an arithmetic instruction?


Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller
Dr.N.G.P. Institute of Technology / ECE
(a) INC (increment)
(b) CMP (compare)
(c) DEC (decrement)
(d) ROL (rotate left)
ANSWER: ( d)

10. The result of MOV AL, 65 is to store


(a) store 0100 0010 in AL
(b) store 42H in AL
(c) store 40H in AL
(d) store 0100 0001 in AL
ANSWER: ( d)

UNIT-II 8086 SYSTEM BUS STRUCTURE

1. The main concerns of the ___________ are to define a flexible set of commands
(a) memory interface
(b) peripheral interface
(c) both ((a) and ((b)
(d) control interface
ANSWER: (a)

2. NOP instruction introduces


(a) address
(b) delay
(c) memory location
(d) none
ANSWER: ( b)

3.The operation, IOWR (active low) performs


(a) write operation on input data
(b) read operation on output data
(c) read operation on input data
(d) write operation on output data
ANSWER: ( d)

4. In memory-mapped scheme, the devices are viewed as


(a) distinct I/O devices
(b) memory locations
(c) only input devices
(d) only output devices
ANSWER: ( b)

5. An interrupt breaks the execution of instructions and diverts its execution to


(a) Interrupt service routine
(b) Counter word register
(c) Execution unit
(d) Control unit
ANSWER: ( a)

6. 8088 microprocessor differs with 8086 microprocessor in


(a) Support of Coprocessor
(b) Address capability
(c) Data width on the output
(d) Support of MAX / MIN mode
ANSWER: ( c)

Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller


Dr.N.G.P. Institute of Technology / ECE

7. BHE of 8086 microprocessor signal is used to interface the


(a) Even bank memory
(b) Odd bank memory
(c) I/O Support of coprocessor
(d) DMA
ANSWER: ( b)

8. What does microprocessor speed depends on ?


(a) Clock
(b) Data Bus Width
(c) Address Bus width
(d) None
ANSWER: ( c)

9. In 8086 microprocessor one of the following statements is not true)


(a) Coprocessor is interfaced in MAX mode
(b) Coprocessor is interfaced in MIN mode
(c) I/O can be interfaced in MAX / MIN mode
(d) Supports pipelining
ANSWER: (b)

10. The result of MOV AL, 65 is to


(a) store 0100 0010 in AL
(b) store 42H in AL
(c) store 40H in AL
(d) store 0100 0001 in AL
ANSWER: (d)

UNIT-III I/O INTERFACING

1. In memory-mapped scheme, the devices are viewed as

(a) Distinct I/O devices


(b) Memory Locations
(c) Only input devices
(d) Only output devices
ANSWER: ( b)

2. Port C of 8255 can function independently as


(a) input port
(b) output port
(c) either input or output ports
(d) both input and output ports
ANSWER: ( c)

3. Port A acts as a 8-bit input data port to receive the digital data output from the ADC. The 8255 control
word for initialization is

(a) 68H
(b) 22H
(c) 80H
(d) 98H
ANSWER: ( d)

Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller


Dr.N.G.P. Institute of Technology / ECE
4. The digital input for a 4-bit DAC is 0110. Calculate its final Voltage.

(a) 6V
(b) 10V
(c) 3.5V
(d) 22V
ANSWER: ( a)

5. In Traffic Light Controller, the operating frequency is assumed as 2 MHZ. calculate the time for one T-
state and the count of operation.
(a) 0.5 microseconds, 2B2 H
(b) 1.5 microseconds, 2C2 H
(c) 0.5 microseconds, 2C2 H
(d) 0.1 microseconds, 2E2 H

ANSWER: ( c)

6. In seven segment LED Display, to display a digit 6, the value in common cathode mode and anode mode
are
(a) 7DH, 82H
(b) 5GH, 67H
(c) 45H, 42H
(d) 7DH, 83H

ANSWER: ( a)

7. In 8086 based alarm system, the address location for Control register is

(a) 04H
(b) OCH
(c) OEH
(d) 0EH

ANSWER: ( d)

8. In DMA Controller, the status register is to keep track of DMA Channel pending request and status of
terminal counts. Choose the bits for Channel 1 to reach Terminal count.

(a) D7
(b) D1
(c) D2
(d) D5
ANSWER: ( b)

9. How many modes of operation are possible for 8253 Timer/Counter?

(a) 7
(b) 5
(c) 3
(d) 6
ANSWER: ( d)

10. In 8255 PIO Port, the function, data bus tristated is performed when
(a) CS(active low) =1
(b) CS(active low) =0
(c) CS(active low) =0, RD(active low) =1, WR(active low) =1
(d) CS(active low) =1 OR CS(active low) =0, RD(active low) =1, WR(active low) =1

Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller


Dr.N.G.P. Institute of Technology / ECE
ANSWER: ( d)

UNIT IV-MICROCONTROLLER

1. LCALL instruction takes


(a) 2 bytes
(b) 4 bytes
(c) 3 bytes
(d) 1 byte ANSWER: ( c)

2. What is the time taken by one machine cycle if crystal frequency is 20MHz?
(a) 1.085 micro seconds
(b) 0.60 micro seconds
(c) 0.75 micro seconds
(d) 1 micro seconds
ANSWER: ( b)

3. What is the meaning of the instruction MOV A,05H ?


(a) data 05H is stored in the accumulator
(b) Fifth bit of accumulator is set to one
(c) address 05H is stored in the accumulator
(d) None of the mentioned

ANSWER: ( c)

4. Does the two instructions mean the same?


1) BACK: DEC R0
JZ BACK
2) BACK: DJNZ RO, BACK
(a) Yes
(b) No
(c) Undetermined
(d) Yes and second one is preferred
ANSWER: ( b)

5. Which of the following registers are not bit addressable?


(a) SCON
(b) PCON
(c) A
(d) PSW
ANSWER: ( b)

6. Which of the following comes under indexed addressing mode?


(a) MOVX A, @DPTR
(b) MOVC @A+DPTR,A
(c) MOV A,R0
(d) MOV @R0,A
ANSWER: ( b)

7. CJNE instruction makes


(a) the pointer to jump if the values of the destination and the source address are equal
(b) sets CY=1, if the contents of destination register is greater then that of the source register
(c) sets CY=0, if the contents of destination register is smaller then that of the source register
(d) none of the mentioned
ANSWER: ( d)

8. When we add two numbers the destination address must always be.
(a) some immediate data

Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller


Dr.N.G.P. Institute of Technology / ECE
(b) any register
(c) accumulator
(d) memory
ANSWER: ( c)

9. In unsigned number addition, status of which bit is important?


(a) OV
(b) CY
(c) AC
(d) PSW
ANSWER: ( b)

10. XRL, ORL, ANL commands have


(a) accumulator as the destination address and any register, memory or any immediate data as the
source address
(b) accumulator as the destination address and any immediate data as the source address
(c) any register as the destination address and accumulator, memory or any immediate data as the
source address
(d) any register as the destination address and any immediate data as the source address

ANSWER: ( a)
UNIT V- INTERFACING MICROCONTROLLER

1. After RETI instruction is executed then the pointer will move to which location in the program?
(a) next interrupt of the interrupt vector table
(b) next instruction of the program after the IE instruction
(c) next instruction after the RETI in the memory
(d) none of the mentioned
ANSWER: ( b)

2. Which command of an LCD is used to shift the entire display to the right?
(a) 0x1C
(b) 0x18
(c) 0x05
(d) 0x07
ANSWER: ( a)

3. In stepper Motor Interfacing with 8051, the clockwise sequence of operation is,
(a) 1001, 1100, 0110, 0000
(b) 1001, 1111, 0110, 0010
(c) 1001, 1111, 0110, 1111
(d) 1001, 1100, 0110, 0011
ANSWER: ( d)

4. To generate a sine Wave, the value of sine function vary from


(a) -1.0 to +1.0 for 0- to 180- degree angles
(b) -1.0 to +1.0 for 0- to 360- degree angles
(c) -1.0 to +5.0 for 0- to 180- degree angles
(d) +1.0 to +2.0 for 0- to 360- degree angles
ANSWER: ( b)

5. If we need to operate a key of a keyboard in an interrupt mode, then it will generate what kind of
interrupt?
(a) ES
(b) EX0/EX1
(c) T0/T1
(d) RESET

Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller


Dr.N.G.P. Institute of Technology / ECE
ANSWER: ( b)

6. Which of the following steps detects the key in a 4*4 keyboard matrix about the key that is being
pressed?
(a) masking of bits
(b) ensuring that initially all keys are open
(c) checking that whether the key is actually pressed or not
(d) all of the mentioned
ANSWER: (d)

7.While programming the ADC0804 IC what steps are followed?


(a) select the analog channel, start conversion, monitor the conversion, display the digital results
(b) select the analog channel, activate the ALE signal (L to H pulse), start conversion, monitor the
conversion, read the digital results
(c) select the analog channel, activate the ALE signal (H to L pulse), start conversion, monitor the
conversion, read the digital results
(d) select the channel, start conversion, end the conversion
ANSWER: ( b)

8. Which devices are specifically being used for converting serial to parallel and from parallel to serial
respectively?
(a) timers
(b) counters
(c) registers
(d) serial communication
ANSWER: (c)

9. Find out the roll over value for the timer in Mode 0, Mode 1 and Mode 2?
(a) 00FFH,0FFFH,FFFFH
(b) 1FFFH,0FFFH,FFFFH
(c) 1FFFH,FFFFH,00FFH
(d) 1FFFH,00FFH,FFFFH
ANSWER: ( c)

10. What is the function of the TMOD register?


(a) TMOD register is used to set different timers or counters to their appropriate modes
(b) TMOD register is used to load the count of the timer.
(c) Is the destination or the final register where the result is obtained after the operation of the
timer
(d) Is used to interrupt the timer
ANSWER: ( a)

Multiple Choice Question & Answers EC6504 Microprocessor & Microcontroller

También podría gustarte