Professional Documents
Culture Documents
Gujarat Technological University
Gujarat Technological University
___________
MARKS
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.
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.
*************