Model Question Paper-1 Subject: Microcontroller (18EE52) Semester: 5th
Model Question Paper-1 Subject: Microcontroller (18EE52) Semester: 5th
Model Question Paper-1 Subject: Microcontroller (18EE52) Semester: 5th
c) With simple block diagram explain the features of 8051 microcontroller. L2 (04)
UNIT – II
3. a) Define assembler directives. With example explain all the assembler L2 (08)
directives supported by 8051 microcontroller.
b) Write assembly language program to multiply 25 by 10 using repeated L3 (06)
addition.
c) Transfer the contents of the register A,R0,and R1,respectively of L3 (06)
bank0 to the register B, R0 and R1 of bank1 using stack operations
UNIT – III
5. a) Write 8051 program to generate square wave with t ON = 3ms and tOFF L3 (08)
= 7ms on all pins of Port 0. System Clock is 22MHz. Use timer0 in
Mode-1.
b) Illustrate with diagram the significance of gate in TMOD register to L4 (06)
control timer/counter module in 8051 microcontroller.
c) Write an 8051C program to monitor the switch S0 and when pressed, it L3 (06)
flashes the single LED0 ten times.
6. a) Analyze different data types supported by 8051C Microcontroller. L4 (08)
b) Assume that a 1-Hz external clock is being fed into pin T1(P3.5). Write L3 (06)
a C programming for counter 1 in mode-2(8-bit auto reload) to count
up and display the state of the TL1 count on P1. Start the count at 00H.
c) Write a 8051 C program to toggle all the bits of P2 continuously 500ms. L3 (06)
Use Timer 1, 16-bit mode to generate the delay. f=11.0592Hz
UNIT – IV
7. a) Compare polling and interrupts. What are the steps a microcontroller L4 (08)
performs upon activation of Interrupt
b) Write a C program for the 8051 to transfer “VTU Belagavi” serially at L3 (06)
9600 baud, 8-bit data, 1 stop bit, do this continuously.
c) Explain the importance of TI and RI flags. L2 (06)
8. a) Explain RS-232 hand shaking signals and specify the purpose of MAX – L2 (08)
232 while interfacing
b) Explain how interrupt priority can be changed using IP register. Also L2 (06)
explain the default priorities assigned to interrupts in 8051
microcontroller.
c) Write a program that continuously gets 8-bit data from ‘P0’ and sends L3 (06)
it to ‘P1’ where simultaneously creating a square wave of 200µs period
on pin P2.0. Use timer-0 to create square wave. Assume
XTAL=11.0592.
UNIT – V
c) Explain with the help of diagrams (connecting & timing) how to L5 (06)
interface 32K EPROM and 16K RAM to 8051 microcontroller
2. a) Describe the functions of various pins of 8051 microcontroller with pin L2 (08)
diagram.
b) Explain the memory organization in 8051 controller. L2 (06)
UNIT – II
3. a) Differentiate JMP and CALL instructions. Explain with suitable diagram L4 (08)
the jump and Call program range.
b) Write a program to count the number of 1’s and 0’s of 8-bit data L3 (06)
stored in location 6000H
c) Write a program to compute 1+2+……….+N (say 15) and save the L3 (06)
sum at 70H
UNIT – III
5. a) What are the different ways to introduce a delay in 8051C. Give the L4 (08)
three factors, which affect the accuracy of the delay
b) In a home guard system, a door sensor is connected to the P1.0 pin, L3 (06)
window sensor is connected to the P1.1 pin, and the siren is connected
to P2.0. write an 8051 C program to monitor the door and window
sensor. When any one gets open, sound the siren by sending a square
wave of a few hundred Hz.
c) Write a 8051 C program to toggle only bit P1.5 continuously every L3 (06)
50ms. Use Time 0, 16-bit mode to generate the delay. f=11.0592Hz
UNIT – IV
UNIT – V