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 – SUMMER 2022
Subject Code:3151707 Date:07/06/2022
Subject Name:Microcontroller and Interfacing
Time:02:30 PM TO 05: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) What is the difference between Harvard and Von-Neumann 03


architecture?
(b) Draw circuit diagram of XTAL connection and power on RESET 04
circuits for the 8051 microcontrollers.
(c) Draw the architecture of 8051 microcontroller and discuss in detail. 07

Q.2 (a) Compare the microprocessor and microcontroller. 03


(b) Explain functions of following pins in 51 family microcontrollers. 04
PSEN, EA, INT0
(c) Mention the various interrupts available in 8051. Explain in detail the 07
IE (Interrupt Enable) register and IP (Interrupt Priority) Register.
OR
(c) Write an 8051 program to calculate the checksum bye for given data. 07
Six bytes of hexadecimal data: AAh, 72h, 3Ah, 1Fh,45h, CDh.

Q.3 (a) What is the function 8255 and give its features? 03
(b) Explain the following instruction set by giving suitable examples. 04
MUL, DAA, RRC, SWAP
(c) Write an assembly language program to convert a given binary number 07
into its equivalent BCD code. Eg. FFH = 255d.
OR
Q.3 (a) Draw the internal structure of Port 0. 03
(b) Draw the structure of PSW SFR and write down all the possible set and 04
reset conditions for the overflow flag.
(c) Interface a seven-segment common anode display with microcontroller 07
8051. Write an 8051-assembly language program to display numbers
from 0 to 9 at every second using a loop.

Q.4 (a) What is the advantage of serial communication over parallel 03


communications?
(b) List different addressing modes of microcontroller and explain any one 04
of them with appropriate examples.
(c) Write an 8051 C program to toggle LED connected to port P2.2 every 07
500 msec. Stop toggling after 15000 such toggles (on-off means one
toggle).
OR
Q.4 (a) What is the advantage of serial communication over parallel 03
communications?
(b) Explain the function of each bit of TMOD and TCON Timer registers. 04

1
(c) Write a C program for 8051 to transmit the message “I & C Engineer” 07
serially at 4800 baud rates continuously using 8-bit data and 1 stop bit.

Q.5 (a) Describe PWM and also explain how to control the speed of a DC 03
motor using the PWM.
(b) Interface DAC 0808 with microcontroller 8051. 04
(c) Interface 16x2 LCD with 8051. Write a C-program to display a “GTU” 07
in the first row and “EXAM” in the second row, continuously.
OR
Q.5 (a) Draw interfacing circuit of DC motor with microcontroller 8051. 03
(b) Indicate the steps to identify the key pressed in 4*4 keyboard. 04
(c) Explain with a neat sketch how a stepper motor is connected with 8051. 07
Also write a C code to rotate it continuously.

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

You might also like