Be Winter 2022

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–V (NEW) EXAMINATION – WINTER 2022
Subject Code:3151707 Date:09-01-2023
Subject Name:Microcontroller and Interfacing
Time:10:30 AM TO 01:00 PM Total Marks:70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.
MARKS
Q.1 (a) Differentiate Microprocessor and Microcontroller. 03
(b) Draw block diagram of 8051 microcontroller and state its features. 04
(c) Explain different addressing modes of 8051 microcontroller with 07
instruction examples. List SFRs available in 8051 µC.

Q.2 (a) Explain the function of pin number 29, 30 & 31 of 8051 microcontroller. 03
(b) Explain RAM memory space allocation in 8051. 04
(c) Describe 8051 assembler directives. Explain assembling and running an 07
8051 program using flow chart.
OR
(c) Write an assembly program to transfer block of 10 data bytes starting 07
from internal memory location (40h) to external memory location
(1500h).

Q.3 (a) Explain following instructions: DIV, XRL, RRC 03


(b) Discuss 8051 C data types with their range. 04
(c) Write an assembly language program to convert packed BCD into two 07
ASCII numbers and place in R6 & R7.
OR
Q.3 (a) Explain ACALL and LCALL instructions. 03
(b) Describe 8051 port-3 pins with their alternate function. 04
(c) Write an assembly language program to interface 8 SPST switch and 07
one seven segment display with 8051 and display the pressed switch
number on it.

Q.4 (a) Explain Interrupt Enable register with function of each bit. 03
(b) Explain steps to recognize key pressed in 4x4 matrix keyboard using 04
flow chart.
(c) Write assembly program to generate square wave of 1 KHz frequency 07
on pin P1.0 using timer. Assume crystal frequency as 12 MHz. Show
delay calculation.
OR
Q.4 (a) Explain TMOD register with function of each bit. 03
(b) Explain interfacing of ADC with 8051 microcontroller. 04
(c) Write assembly program to transfer “GTU” serially at 9600 baud 07
continuously with 8-bit data and 1-stop bit.

Q.5 (a) Interface 8051 with 8K byte of external data RAM. 03


(b) Write a C program to get a data byte from P0, wait for 1 second and then 04
send it to P1.

1
(c) Interface stepper motor and one switch with microcontroller 8051. 07
Develop an 8051 program to rotate it in clockwise if switch is pressed
else rotate it in anticlockwise direction.
OR
Q.5 (a) Describe DC motor interfacing with 8051 briefly. 03
(b) Write a C program to send out value 95h serially one bit at a time via 04
P2.2. The MSB should go out first.
(c) Explain LCD with each pin functions. Develop an 8051 program to 07
display “MCI” continuously on LCD.

*************

You might also like