You are on page 1of 2

Final Assessment Test - November 2016

Course: ECE304 - Microcontroller and Applications


Class NBR(s):1262 Slot: C2+TC2
Time: Three Hours Max. Marks: 100
General Instructions :
i) Comment your codes ii) Answer to the point.

Answer ALL Questions

1. With neat block diagram describe the architecture of 8086 microprocessor, and explain its main [8]
features.

2. With neat block diagram describe the architecture of 8051 microcontroller, and explain its main [8]
features.

3. Write an assembly language program for 8051 microcontroller that finds the number of 1s in a given [5]
byte.

4. Write an assembly language program for 8051 microcontroller to read the temperature (T) and test it [5]
for the value 75. According to the test results, place the temperature value into the registers
indicated by the following.
If T = 75 then A = 75
If T > 75 then R2 = T
If T < 75 then R1 = T

5.(a) Assume that bit P2.2 is used to control an outdoor light and bit P2.5 a light inside a building. Show [5]
how to turn on the outside light and turn off the inside one, by writing an assembly language program
for 8051 microcontroller.

OR

5.(b) Write an assembly language program for 8051 microcontroller to add two 16-bit numbers. Place the [5]
sum in R7 and R6; R6 should have the lower byte.

6.(a) For 8051 microcontroller, assuming that clock pulses are fed into pin T1, write a program for counter [5]
1 in mode 2 to count the pulses and display the state of the TL1 count on P2, which connects to 8
LEDs.

OR

6.(b) Assume XTAL = 11.0592 MHz, write an assembly language program for 8051 microcontroller to [5]
generate a square wave of 50 kHz frequency on pin P2.3.

7. Write a program for the 8051 to receive bytes of data serially, and put them in P1, set the baud rate [5]
at 4800, 8-bit data, and 1 stop bit.

8. Write a program in which the 8051 gets data from P1 and sends it to P2 continuously while incoming [5]
data from the serial port is sent to P0. Assume that XTAL=11.0592. Set the baud rata at 9600.

9. Discuss the following [4]


i) Conversion time of ADC 804?
ii) Formula for clock frequency when self clocking is used in ADC 804

Page 1 of 2
10. Design 8051 based LCD display system with Data lines of LCD connected to Port 0, control signals to [8]
Port 1. Also develop an assembly language program for the same system to display “N” , “O” (Note
“38H”-LCD 2 lines 5X7 Matrix ; “0EH”-Display ON cursor ON ; “01H”-Clear LCD “06H”-Shift cursor
right).

11. Develop an assembly language program for 8051 microcontroller to send ASCII CODE for the pressed [8]
key to P1 with the assumptions that the rows are connected to P0.0 to P0.3 and P2.0 to P2.3 for
column.

12. a) Write an 8051 C program to send hex values for ASCII characters of 0, 1, 2, 3, 4, 5, A, B, C, and D to [5]
port P1.

b) Write an 8051 C program to toggle bit D0 of the port P1 (P1.0) 50,000 times. [5]

c) Write a 8051 C program that continuously gets a single bit of data from P1.7 and sends it to P1.0, [10]
while simultaneously creating a square wave of 200 μs period on pin P2.5. Use Timer 0 to create
the square wave. Assume that XTAL = 11.0592 MHz.

13. a) The ARM core uses RISC architecture. RISC is a design philosophy aimed at delivering simple but [8]
powerful instructions. Discuss about the four major design rules on which the RISC philosophy is
implemented.

b) A pipeline is the mechanism a RISC processor uses to execute instructions. Explain with neat [6]
diagram the three stage pipeline that is incorporated in the ARM7 processor.



Page 2 of 2

You might also like