Subject Code: 151001
GUJARAT TECHNOLOGICAL UNIVERSITY
--- Content provided by FirstRanker.com ---
BE - SEMESTER-V (OLD) EXAMINATION - WINTER 2018Subject Name: Microcontroller And Interfacing
Time: 10:30 AM TO 01:00 PM
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
Q.1 (a) Explain difference between microprocessor and microcontroller. 07
(b) List selection criteria of microcontroller for an application. 07
Q.2 (a) Write operation of the following instructions 07
--- Content provided by FirstRanker.com ---
1] SWAPA [2] MOVX A,@DPTR [3] DIV AB [4] RR A[5] XCHD A,R1 [6] MOVC A,@A+DPTR 7) MOV A,30H
Q.2 (b) List different addressing modes of programing instruction of 8051 07
microprocessor. Also explain them with a suitable example.
Q.3 (a) Write a Assembly program to multiply two 16-bit numbers for 8051 controller. 07
--- Content provided by FirstRanker.com ---
OR(b) Write a program to transfer block of 10 data from internal memory locations to 07
External memory locations for 8051 controller.
Q.3 (a) A switch is connected to P1.7. Write a program to check the status of switch and 07
perform the following.
--- Content provided by FirstRanker.com ---
1. if switch = 0, send letter “N” to P2.2. if switch = 1, send letter “Y” to P2.
Q.4 (b) Write difference between ACALL and LCALL instruction with example. 07
OR
(a) 20 bytes are stored in memory location starting from address 100H. Write a program to 07
--- Content provided by FirstRanker.com ---
count the number of even, odd and zero number.Q.4 (b) Explain difference between polling and interrupt. List types of interrupts and also 07
give its priority for execution.
Q.5 (a) Describe TMOD and TCON Special Function registers. 07
(b) Explain Serial Communication; How it will perform using 8051/52 Controller with 07
--- Content provided by FirstRanker.com ---
PC? Explain it with program and diagram.OR
(a) Write an 8051 C program to generate 5 KHz pulse waveform of 50% duty cycle 07
on pin 1.0 using timer-1 in mode-2.
Q.5 (b) Write a C program to transfer the message “Gujarat Technological University” serially 07
--- Content provided by FirstRanker.com ---
at 9600 baud, 8-bit data, 1 stop bit. Perform this program for 255 times.Q.5 (a) Draw and explain interfacing of 4K bytes External RAM and 16K bytes of ROM with 07
8051 microcontroller.
Q.5 (b) Explain interacting of 8 bit ADC with 8051. 07
OR
--- Content provided by FirstRanker.com ---
(a) Draw interface of LCD with 8051. Also write a program to display “Happy” on the first 07line and “Diwali” on the second line of the LCD.
Q.5 (b) Draw and explain interfacing of RTC with 8051 microcontroller. 07
Date: 07/12/2018
Total Marks: 70
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE/B.Tech 2018 Winter Question Papers || Gujarat Technological University
--- Content provided by FirstRanker.com ---