FirstRanker.com
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER- V (New) EXAMINATION - WINTER 2019
--- Content provided by FirstRanker.com ---
Subject Code: 2151707 Date: 25/11/2019Subject Name: Microcontroller & Interfacing (IC)
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
MARKS
Q.1 (a) Define 1) T- state, 2) Machine cycle, 3) Instruction cycle. 03
(b) Ilustrate with the help of a neat sketch the steps of data flow when 04
--- Content provided by FirstRanker.com ---
the instruction code 4FH stored in memory location 3000H isfetched.
(c) What is a flag? How many flags are present in 8051 microcontroller 07
and where are they located? Explain the PSW with the help of neat
diagram.
--- Content provided by FirstRanker.com ---
Q.2 (a) Find the CY and AC flag bits after executing the following code. 03
MOV A, #OFFH
ADD A #01H.
(b) Explain DB & END assembler directives of 8051 microcontroller. 04
(c) Interface the following memories with 8085: (1) 8K EPROM (i1) 4K 07
--- Content provided by FirstRanker.com ---
RAM. Also give the address range for both the memories.OR
(c) Explain internal configuration and working of port 0 with the help 07
of neat diagram.
Q.3 (a) Explain the difference between Jump and Call instructions. 03
--- Content provided by FirstRanker.com ---
(b) Explain the timer/counter control-logic in 8051 with a neat sketch. 04(c) Write an ALP to toggle the bits of PO, P1 and P2 every ½ second. 07
(crystal frequency = 11.0592 MHz)
OR
Q.3 (a) Which bank conflicts with the stack in 8051 microcontroller? How 03
--- Content provided by FirstRanker.com ---
this conflict can be resolved?(b) Explain the function of pin no 29, 30, 31 & 32 of 8051 04
microcontroller.
(c) Write an ALP to generate a square wave of 50Hz frequency on bit 3 07
of port 2.
--- Content provided by FirstRanker.com ---
Q.4 (a) Write code to push RO, R1 and R2 of bank 0 onto the stack and pop 03
them back into R5, R6 and R7 of bank 3.
(b) Draw the bit pattern of TCON register and explain each bit. 04
(c) Draw interfacing circuit of LCD with microcontroller 8051. Explain 07
the function of each pin of LCD.
--- Content provided by FirstRanker.com ---
ORQ.4 (a) Write a program to bring in a byte of data serially one bit at a time 03
via pin P2.1 and save it in register R1. The byte comes in with LSB
first.
(b) Draw the bit pattern of SCON register and explain each bit. 04
--- Content provided by FirstRanker.com ---
(c) Show 8051 connections with 4x4 Matrix Keyboard. Explain with 07the help of flow chart the logic to identify the key pressed.
Q.5 (a) Explain the different types of serial communication. 03
FirstRanker.com
(b) A door sensor is wired to P1.0 and a buzzer is wired to P1.7. Write an 8051 C program to monitor the door sensor and when it opens, sound the buzzer. 04
--- Content provided by FirstRanker.com ---
(c) Interface stepper motor and one switch with microcontroller 8051. 07Write an assembly or C program to rotate it in clockwise if switch is
pressed else rotate it in anticlockwise direction.
OR
Q.5 (a) How many interrupts are available in 8051 microcontroller? Enlist 03
--- Content provided by FirstRanker.com ---
them with their ROM locations.(b) Write an 8051 C program to get the status of bit P1.0. Save the bit 04
and send it to P2.7 continuously.
(c) Show 8051 connections with DAC – 0808. Write an assembly or C- 07
program to generate a sine wave using the same.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE/B.Tech 2019 Winter Question Papers || Gujarat Technological University
--- Content provided by FirstRanker.com ---