Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Final Assessment Test (FAT) - May 2017: Course: Class NBR(S) : Slot: Time: Three Hours Max. Marks: 100

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Final Assessment Test (FAT) – May 2017

Course: ECE304 - Microcontroller and Applications


Class NBR(s): 1664 / 1676 / 1683 / 1693 / 1704 / 5986 Slot: B2+TB2
Time: Three Hours Max. Marks: 100

Answer ALL Questions

1. Draw and explain the Architecture of 8086 Microprocessor. [10]

2. Write a 8051 ALP program to perform the following: [5]


(a) Keep monitoring the P1.2 bit until it becomes high
(b) When P1.2 becomes high, write value 45H to port 0
(c) Send a high-to-low (H-to-L) pulse to P2.3

3. What is the content of accumulator A (in hex) and carry flag (CY) after the execution of each line in the [5]
following program segment.
SETB C
MOV A, #91
RRC A
ADDC A, #10100100B
END

4. The initial values of the memory location (06h-09h) are given below in Table [5]

Memory Initial value Final value


location
09h 88(h) ?
08h 10(h) ?
07h AD(h) ?
06h 67(h) ?

Write down the final values in these locations after the execution of the following program
ORG 00H
PUSH 06H
MOV SP, #09H
POP 06H
END

5.(a) Assume T1 pin of 8051 Micro controller is programmed as counter to count the external events. Write [10]
an ALP to check the count value. If the count is reached as (10)10 then the Micro controller has to
generate a waveform of 75% duty cycle at P2.3.

OR
5.(b) Assume that pin P3.3 (INT1) is connected to a pulse generator, write an ALP in which the falling edge of [10]
the pulse will send high to P1.3, which is connected to an LED (or buzzer). In other words, the LED is
turned on and off at the same rate as the pulses are applied to INT1 pin.
Page 1 of 2
6. Write an 8051 assembly program to display “GOOD DAY” on LCD[2rows, 16 character] as shown below [10]

G O O D D A Y

Reference: 01 – clear display


38 – 2 lines 5X7 matrix
0E – Display ON cursor blinking
06 – Increment cursor
04 – Decrement cursor
80 – Force cursor to beginning of first line.
C0 - force cursor to beginning of Second line.

7. Write a program in which the 8051 reads data from P1 and writes it to P2 continuously while giving a [10]
copy of it to the serial COM port to be transferred serially. Assume that XTAL=11.0592. Set the baud
rate at 9600.

8. The ADC804 is interfaced to the 8051 Micro controller as per the following connections [10]
P2.6=WR
P2.7 =INTR
P2.5=RD
P1.0 – P1.7= D0 - D7 of the ADC804
Draw the interface diagram and write an ALP to monitor the INTR pin and bring an analog input into
register A. Then call a hex-to ACSII conversion subroutine and store the converted result in RAM
locations starting from 40H onwards. Do this continuously.

9.(a) A switch(SW) is connected to pin P1.6. Write an 8051 C program to monitor the SW and create the [10]
following frequencies on pin P2.7. If SW=0: generate 500Hz square wave else generate square wave of
750Hz, use Timer 0, mode 1 for both the cases. Assume XTAL=11.0592 MHz.

OR

9.(b) Write a C program using interrupts to do the following: [10]


(a) Receive data serially and send it to P0
(b) Make timer 0 to generate a square wave of 5 KHz frequency on P0.1
Assume that XTAL = 11.0592 MHz. Set the baud rate at 4800.

10. Illustrate various processor modes of ARM 7 with neat diagram. [10]

11. Compare and contrast RISC and CISC processor. [5]

12. Illustrate with neat diagrams the three stages and five stages pipeline mechanisms that are [10]
incorporated in the ARM7 processor.



Page 2 of 2

You might also like