1) Explain difference between microprocessor and microcontroller. 2) List selection criteria of microcontroller for an application.
[7 marks]Write operation of the following instructions 1] SWAP A [2] MOVX A,@DPTR [3] DIV AB [4] RR A [5] XCHD A,R1 [6] MOVC A,@A+DPTR 7) MOV A,30H
[7 marks]List different addressing modes of programing instruction of 8051 microprocessor. Also explain them with a suitable example.
[7 marks]Write a Assembly program to multiply two 16-bit numbers for 8051 controller.
[7 marks]Write a program to transfer block of 10 data from internal memory locations to 0 External memory locations for 8051 controller.
[7 marks]Aswitch is connected to P1.7. Write a program to check the status of switch and perform the following. 1. if switch = 0, send letter “N” to P2. 2. if switch = 1, send letter “Y” to P2.
[7 marks]Write difference between ACALL and LCALL instruction with example.
[7 marks]20 bytes are stored in memory location starting from address 100H. Write a program to count the number of even, odd and zero number.
[7 marks]Explain difference between polling and interrupt. List types of interrupts and also give its priority for execution.
[7 marks]Describe TMOD and TCON Special Function registers.
[7 marks]Explain Serial Communication. How it will perform using 8051/52 Controller with PC? Explain it with program and diagram.
[7 marks]Write an 8051 Cprogram to generate 5 KHz pulse waveform of 50% duty cycle on pin 1.0 using timer-1 in mode-2.
[7 marks]Write a Cprogram to transfer the message “Gujarat Technological University” serially at 9600 baud, 8-bit data, 1 stop bit. Perform this program for 255 times.
[7 marks]Draw and explain interfacing of 4K bytes External RAM and 16K bytes of ROM with 8051 microcontroller.
[7 marks]Explain interacting of 8 bit ADC with 8051.
[7 marks]Draw interface of LCD with 8051. Also write a program to display “Happy” on the first line and “Diwali” on the second line of the LCD.
[7 marks]Draw and explain interfacing of RTC with 8051 microcontroller.
[7 marks]