0% found this document useful (0 votes)
6 views10 pages

21UEC425 - MPMC Question Bank Final

The document outlines a series of questions and topics related to microprocessors and microcontrollers, organized into five units. Each unit contains multiple-choice questions, short answer questions, and programming tasks covering various aspects of microprocessor architecture, instruction sets, and interfacing techniques. The content is aimed at assessing knowledge and understanding of microprocessor concepts and applications.

Uploaded by

magalveera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views10 pages

21UEC425 - MPMC Question Bank Final

The document outlines a series of questions and topics related to microprocessors and microcontrollers, organized into five units. Each unit contains multiple-choice questions, short answer questions, and programming tasks covering various aspects of microprocessor architecture, instruction sets, and interfacing techniques. The content is aimed at assessing knowledge and understanding of microprocessor concepts and applications.

Uploaded by

magalveera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Subject code : 21UEC425 Subject name : Microprocessors &

Microcontrollers
Department: CSE
PART A
UNIT - I
1. How much memory a 20 bit address bus can access? CO1- U -

(a) 1KB (b) 1MB (c) 2MB (d) 256KB


2. CO1- U
The registers of 8086 are -------------------- bits in size. -
(a) 8 (b) 12 (c)16 (d)20

3. Which of the following is a 16 bit register? CO1- U -


(a) AL (b) AH (c) AX (d) All the above

4. In which T state does the CPU sends the address to memory or I/O
CO1- U
and the ALE signal for de-multiplexing. -
(a) T1 (b) T2 (c) T3 (d) T4
5.
Pseudo instructions are CO1- U -
(a) False Instruction (b) Instructions that (c)Assembler (d) Instructions
are ignored by MP Directives that are treated
like comments
6. The BIU pre fetches the instruction from memory and store them in CO1- U -

(a) Queue (b) Register (c) Memory (d) Stack

7. The 8086 has a __________ address bus. CO1- U -


(a) 8 (b) 12 (c) 20 (d) 64

8. INTR is a __________ interrupt. CO1- U -

(a) Maskable (b) Hardware (c) Software (d) Both a & b

UNIT - II

1. How many bits of data can be transferred between the 8255 PPI and CO1- U -
the interfaced device at a time?
(a) 16 bits (b) 12 bits (c) 8bits (d) None of the
above
2. Which allows the full duplex synchronous communication between CO1- U -
the master and the slave
(a) SPI (b) Serial port (c) I2C (d) Parallel port
3. How much time period is necessary for the slave to receive the CO1- U -
interrupt and transfer the data?
(a) 4 clock time period (b) 8 clock time period (c) 16 clock (d) 64 clock time
time period period
4. Port C of 8255 can function independently as CO1- U -

(a) Input Port (b) Output Port (c) Either (d) Both Input &
Input or Output Port
Output Port

5. In 8279 Status Word, data is read when ________ pins are low, and CO1- U -
write to the display RAM with ____________ are low.

(a) A0, CS, RD & A0, WR, (b) CS, WR, A0 & A0, (c) A0, RD (d) CS, RD & A0,
CS CS, RD & WR, CS CS

6. The generation of a square wave is possible in the mode CO1- U -

(a) Mode 1 (b) Mode 2 (c) Mode 3 (d) Mode 4

7. 8254 can be operated at count rates up to __________. CO1- U -

(a) 50MHz (b) 100MHz (c) 20MHz (d) 10MHz


8. 8259 can manage __________ priority interrupts. CO1- U -

(a) 32 (b) 16 (c) 8 (d) 4


UNIT - III
1. In 8051 which interrupt has highest priority? CO1- U -
(a) IE1 (b) TF0 (c) IE0 (d) TF1
2. Which pin of port 3 is has an alternative function as write control CO1- U
-
signal for external data memory?
(a) P3.8 (b) P3.3 (c)P3.6 (d) P3.1
3. After reset, SP register is initialized to address________. CO1- U -
(a) 8H (b) 9H (c) 7H (d) 6H
4. What is the bit size of the 8051 microcontroller? CO1- U -
(a) 8 bit (b) 4 bit (c) 16 bit (d) 32 bit

2
5. Name the architecture and the instruction set for 8051 microcontroller. CO1- U -
(a) Van- Neumann (b) Harvard (c) Van- (d) Harvard
Architecture with CISC Architecture with Neumann Architecture with
Instruction Set CISC Instruction Set Architecture RISC Instruction
with RISC Set
Instruction
Set
6. SCON in serial port is used for which operation? CO1- U -
(a) Transferring data (b) Receiving data (c) (d) Controlling
Controlling and transferring
7. Auxiliary carry is set during____. CO1- U -
(a)When carry is generated (b) When carry is (c) When (d) When carry is
from D3 to D4 generated from D7 carry is generated at either
generated D3 to D4 or D7
from both
D3 to D4
and D7
8. Number of I/O ports in the 8051 microcontroller? CO1- U -
(a) 3 Ports (b) 4 Ports (c) 5 Ports (d) 4 ports with
last port having 5
pins
UNIT - IV
1. Which pin of the LCD is used for adjusting its contrast? CO1- U -
(a) Pin no 1 (b) Pin no 2 (c) Pin no 3 (d) Pin no 4
2. For writing commands on an LCD, RS bit is CO1- U -
(a) Set (b) Reset (c) Set & (d) none of the
Reset mentioned
3. Why two pins for ground are available in ADC0804? CO1- U -
(a) for controlling the (b) for controlling the (c) for both (d) none of the
ADCON0 and ADCON1 analog and the digital parts of the mentioned
register of the controller pins of the controller chip
respectively
5. 8 input DAC has ________ CO1- U -

3
(a) 8 discrete voltage levels (b) 16 discrete voltage (c) 64 (d) 256 discrete
levels discrete voltage levels
voltage
levels
6. How can we control the speed of a stepper motor? CO1- U -
(a) by controlling its (b) by controlling its (c) by (d) can’t be
switching rate torque controlling controlled
its wave
drive 4 step
sequence
7. Transducers produce an output voltage in the form of? CO1- U -
(a) an analog voltage in the (b) an analog voltage (c) an (d) all of the
form of current in the form of voltage analog mentioned
voltage in
the form of
pressure
8. Which of the following steps detects the key in a 4*4 keyboard matrix CO1- U
-
about the key that is being pressed?
(a) masking of bits (b) ensuring that (c) checking (d) all of the
initially, all keys are that whether mentioned
open the key is
actually
pressed or
not
UNIT - V
1. How many clock pulses are confined by each machine cycle of CO1- U
-
Peripheral-Interface Controllers?
(a) 4 (b) 8 (c) 12 (d) 16
2. Which flags are more likely to get affected in status registers by CO1- U
Arithmetic and Logical Unit (ALU) of PIC 16 CXX on the basis of -
instructions execution?
(a) Carry (C) Flags (b) Zero (Z) Flags (c) Digit (d) All of the
Carry (DC) above
Flags

4
3. What is the execution speed of instructions in PIC especially while CO1- U
-
operating at the maximum value of clock rate?
(a) 0.1 μs (b) 0.2 μs (c) 0.4 μs (d) 0.8 μs
5. Which among the CPU registers of PIC 16C6X/7X is not 8-bit wide? CO1- U -
(a) Status Register (b) Program Counter (c) Program (d) File Selection
Latch (PCLATH) Counter Register (FSR)
Register Low Byte
(PCL)
Register
6. Which register/s is/are mandatory to get loaded at the beginning CO1- U
before loading or transferring the contents to corresponding -
destination registers?
(a) W (b) INDF (c) PCL (d) All of the
above
7. How many RPO status bits are required for the selection of two CO1- U
-
register banks?
(a) 1 (b) 2 (c) 8 (d) 16
8. Which status bits exhibit carry from lower 4 bits during 8-bit addition CO1- U
-
and are especially beneficial for BCD addition?
(a) Carry bit (C) (b) Digits Carry bit (c) Both a & (d) None of the
(DC) b above
PART – B ( 3 Marks)
UNIT - I
1. If AX =1234H, what will be the content of AX after execution of RCL AX,02
instruction?
2. State the difference between Minimum mode and maximum mode
configuration in 8086 microprocessor.
3. If the stack segment register contains 3000H and the stack pointer register
contains 8434H, what is the physical address of the top of the stack?
4. List the function of control flags in 8086.
5. Name the process control instructions in 8086.
6.
Write the difference between the following Instruction

i) MUL & IMUL ii) Shift & Rotate

7. How does the 8086 processor access a word at an odd address?


8. What is the content of data segment DS to locate the physical address 43657H?
Assume the content of IP =2057H
UNIT - II
5
1. List the features of 8251A
2. Initialize 8251 for Asynchronous operation with baud rate 16, character length
6 bit, Even parity and 2 stop bits.
3. Write a BSR control word subroutine to set bits PC7 and PC3 and reset them
after 10 ms. The Control register address is 83H. Assume that the delay
subroutine is available

4. Differentiate two key lockout and N-key rollover .


5. Define Baud rate.
6. How the internal operation frequency of 8279 is derive from available clock
signal?
7. Assume that the bit values of A0 and A1 is 11, the input data given to the PPI
is A4H(from D0 to D7) , find which bit of port c will be set or reset?
8. How the counters are selected in 8254?
UNIT - III
1. Differentiate Microprocessor and Microcontroller.
2. Write a program to find square and cube of a given number using 8051
microcontroller
3. Why Port 0 needs pull-up resistors?
4. Distinguish polling and interrupt mechanism.
5. If a 12 MHz crystal is connected with 8051, how much is the time taken for
the count in timer 0 to get incremented by one?
6. Calculate the time duration for one state and one machine cycle if a 6 MHz
crystal is connected to 8051.
7. What happens in power down mode of 8051 microcontroller?
8. Give example of direct and indirect addressing modes of 8051
microcontroller.
UNIT - IV
1. Why Vref is set of ADC0848 to 2.56 V if analog input is connected to the
LM35?
2. How the stepper motor speed is controlled?
3. Write 8051 ALP to generate the square wave on Port 1 using DAC.
4. Draw the block diagram to interface temperature sensor with 8051
microcontroller.
5. What is the function of pin no 5 & 6 in LCD?
6. Give an application for sensor based 8051 microcontroller.
7. Generate staircase wave using DAC.
8. Initiate LCD for 20x2 matrix, 8 bit character.
UNIT – V
1. Using the instruction of PIC micro controller convert BCD to hex.
2. Give the role of aurdino micro controller.
3. Write the importance of aurdino for real time application.
4. How do you make a port as I/P & O/P port in aurdino micro controller?
5. Differentiate RISC & CISC.

6. List the functions of I/O port in aurdino micro controller.


7. Write a C18 program to set bit RB0 and send it to RC7 after inverting it.
8. List the applications of aurdino.

6
PART – C
UNIT – I

1. (a) Describe the internal architecture of 8086 microprocessor with


neat diagram.
(b) Explain about interrupt handling process in 8086.

2. (a) The numbers in ASCII codes are stored in A1 and A2. Subtract
A2 from A1, convert the result in ASCII and store in A3
(b) Encode an assembly language program to sort array of data in
ascending order.
3. (a) Define Addressing modes. What are the different addressing
modes of 8086 microprocessor? Explain each addressing mode
with examples?
(b) Draw the pin diagram of 8086 CPU and explain the functions
of the pins minimum and maximum mode of operation of
8086.
4. (a)
Three 16-bit numbers N1,N2 and N3 are stored in memory.
These numbers are to be changed in the following manner

a)Upper bytes of N1 and N2 are exchanged

b)Lower bytes of N2 and N3 are exchanged.

Write separate programs using (i) register addressing. (ii)


indirect addressing and (iii) XCHG instructions.

(b)
Calculate the effective address & physical address of the
following instructions.

(a) IMUL AX,[BP+BX–8D] (b)SBB AL,ES:[SI+5D]

(c) PUSH AX (d) AND AH, [SI + 42D] (e) CMPSB

(f) CMP DX, [SI]

Assume CS = 5000H, DS = 8000H, SS =A000H, ES = B000H,

SI= 2000H, DI = 6000H, BP = 1002H, SP = 0002H,

AX = 0000H, BX = 5200H, CX =2000H


5. (a) Draw the internal block diagram of the 8086 microprocessor
and explain its functional units.
(b) Explain about different addressing modes with suitable
examples.

UNIT – II

7
1. (a) Design an interface between 8086 CPU and two chips of 16K
X 8 EPROM and 32K X 8 RAM. Select the starting address of
EPROM suitably. The RAM address must start at 00000H
(b) Design a Programmable counter using 8254 and 8086.
Interface 8254 at an address 0040H for counter0 and write the
following ALPs. The 8086 and 8254 run at 6 MHz and 1.5
MHz respectively
i) To generate a square wave of period 1ms
ii) To interrupt the processor after 10 ms.
2. (a) Discuss in detail about the type of interfacing device is needed
to transfer the data serially with 8086.

(b) Explain in detail about DMA controller with a neat sketch.


3. (a) Design the hardware interface circuit for interfacing 8251 with
8086. Set the 8251A in asynchronous mode as transmitter and
receiver with even parity enable, 2 stop bits, 8-bit character
length, frequency 160 kHz and baud rate 10K. Write an ALP
to transmit 100 bytes of data string at location 2000:5000H.
Analyze the same design with baud rate of 5 k.
(b) Interface keyboard and display controller 8279 with 8086 at
address 0060H. Write an ALP to set up 8279 in scanned sensor
mode with encoded scan, N-key roll over. Use 16 character
displays in right entry display format. Then clear display RAM
with zeros. Read the FIFO for key closure. If any key is
closed, store it’s code to register CL. Then write the byte 55 to
all displays, and written to DOS. The clock input to 8279 is
2MHz, operate it at 100kHz.
4. (a) Interface an 8255 chip with 8086 to work as an I/O port.
Initialize two port as output port and one Port as input port.
Develop a code to sense switch positions SW0–SW7
connected at input port . The sensed pattern is to be displayed
on one output port , to which 8 LED’s are connected, while
another output port , lower displays number of ON switches
out of the total eight switches. Analyze the same for different
set of output ports.
(b) Interface keyboard and display controller 8279 with 8086 at
address 0080H. Write an ALP to set up 8279 in scanned
keyboard mode with encoded scan ,N-key roll over . Use 16
character display in right entry display format. Then clear
display RAM with zeros. Read the FIFO for key closure. If
any key is closed , store it’s code to register CL. Then write
the byte 55 to all displays, and written to DOS. the clock input
to 8279 is 2MHz, operate it at 100kHz.
5. (a) Design the memory device interface with 8086
microprocessor.
i) 8086 working in minimum mode with 12MHz
ii) 32KB EPROM using 16KB EPROM
iii) 64KB RAM using 32 KB RAM.
(b) Design a Programmable timer using 8254 and 8086. Interface
8254 at an address 0040H for counter0 and write the following
8
ALPs. The 8086 and 8254 run at 6 MHz and 1.5 MHz
respectively

i) To generate a square wave of period 1ms

ii) To interrupt the processor after 10 ms.

UNIT – III
1. (a) Describe the internal architecture of 8051 microcontroller with
neat diagram.
(b) Explain about the memory organization and special function
registers in 8051microcontroller.
2. (a) Describe the different modes of operation of timer in 8051
with its registers.
(b) Explain about different instruction set associated with 8051
microcontroller.
3. (a)
Write a program to generate a square wave of frequency 2 kHz
on any one port pins, using timer 0, Assuming that clock
frequency of the 8051 system is 12 MHz.

(b) Develop 8051 program to move a block of data


from external program memory to external data memory.
4. (a) Write a program to set and mask the bits of input data B5H
and F6H. Calculate the output of the program with the given
hexadecimal data.
(b) An array of 20 numbers is stored in the internal data RAM
starting from the location 30H. Write a program to find the
maximum and minimum numbers in the array.
5. (a) Explain interrupt priority of 8051 microcontroller in detail.
How priority can be changed using IP function register?
(b) Explain the TMOD function register and its timer modes of
operations.

UNIT – IV

1. (a) With neat circuit diagram explain how 4x4 keyboards is


interfaced with 8051 microcontroller.
(b) Draw the schematic diagram for interfacing a stepper motor
with 8051 microcontroller and explain it.
2. (a) Assume that the 8255 is interfaced to the 8051 at the addresses
8000H-8003. Write a program to read the content of Port A
and write it in other ports.
(b) Write a program to generate a sine wave using DAC chip
connected to the 8051 controller.
3. (a) Interface 8 LEDs with 8051 port 0 and write assembly
language programs to a) Glow all the LEDs continuously.
b)Flash all the LEDs on and off for 1 second each.
(b) Interface stepper motor with 8051 microcontroller and develop
a code to rotate the motor in clockwise direction.
9
4. (a) Explain the interfacing of D/A converter with 8051
microcontroller with neat diagram.
(b) With neat diagram outline the concepts of Keyboard
interfacing with microcontroller.
5. (a) With neat diagram explain how a Traffic light controller is
interfaced with microcontroller.
(b) Explain how stepper motor is interface with 8051
microcontroller.

UNIT – V

1. (a) With a neat diagram explain in detail about the architecture of


aurdino microcontroller.
(b) Explain in detail about the function of various port pins of
aurdino microcontroller.
2. (a) How memory is organized in aurdino microcontroller explain
in detail about it.
(b) Explain about the various addressing modes of aurdino
microcontroller.
3. (a) What are the functional blocks available in aurdino
microcontroller? Explain with a block diagram.
(b) Explain the function of aurdino microcontroller instructions
for performing arithmetic and logical operations with suitable
example.
4. (a) Interface LCD with aurdino microcontroller and develop code
for the same.
(b) How motor speed is controlled by PWM develop a code for it.
5. (a) Develop a code to Interface PWM based voltage regulator
using aurdino microcontroller.
(b) Design traffic light controller using aurdino microcontroller.

10

You might also like