21UEC425 - MPMC Question Bank Final
21UEC425 - MPMC Question Bank Final
Microcontrollers
Department: CSE
PART A
UNIT - I
1. How much memory a 20 bit address bus can access? CO1- U -
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 -
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
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
6
PART – C
UNIT – I
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
(b)
Calculate the effective address & physical address of the
following instructions.
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.
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.
UNIT – IV
UNIT – V
10