You are on page 1of 3

ANNA UNIVERSITY: CHENNAI – 600 025

M.C.A DEGREE PRACTICAL EXAMINATIONS NOV/DEC 2012.


MASTER OF COMPUTER APPLICATIONS
MC9238 MICROPROCESSOR LAB
Regulations - 2009
Time: 3 Hours Maximum Marks: 100

1 Write an assembly language program to compute the standard deviation and variance 100
of the given array of numbers. Execute the program using 8086 microprocessor.

2 Write and execute 8086 based an assembly language program to sort the numbers 100
stored in an array in ascending as well as descending order. Assume that the first
location in the array hold the number of elements in the array and successive memory
location will have actual array elements. Write a separate subroutine to arrange the
numbers in ascending and descending order. Accept a key from the keyborad.
a. If 1 entered, Arrange in ascending
b. If 2 entered, Arrange in descending
Write and execute an assembly language program to find the biggest, smallest and 50
3 i
average of the biggest and smallest numbers in the given series of number using
8086 microprocessor.
ii Write and execute an assembly language program to transfer a block of data in 50
memory to another place in memory in the direct order using 8086
microprocessor.
4 Write and execute an assembly language program to compute mean, median and mode 100
of the given array of number using 8086 microprocessor.
Accept a key from the user.
a. If user enters 0, display mean
b. If user enters 1, display median
c. if user enter 2, display mode.
Write and execute an assembly language program to perform multiplication and 50
5 i
division of two 32 bit numbers using 8086 microprocessor.
ii Write and execute an assembly language program to transfer a block of data in 50
memory to another place in memory in the Reverse order using 8086
microprocessor.
Write and execute an assembly language program to compute nCr using recursive 100
6
procedure. Assume that ‘n’ and ‘r’ are non-negative integers. Implement the
computation in 8086 microprocessor.
Write and execute an assembly language program to interface the display unit with 100
7
8086 microprocessor and to display decimal down counter (00-99) using
asynchronous serial port communication .
Implement the stepper motor control in single stepping scheme to rotate the motor in 100
8
clockwise for 25 ms and anticlockwise direction for 35 ms using 8086
microprocessor.
Write and execute an assembly language program to interface a stepper motor with 100
9
8086 microprocessor. Use a suitable control scheme to continuously rotate the stepper
motor in clockwise direction for 50ms and in anti clockwise direction for 75ms.
Write and execute a ‘C’ program to generate Pulse width Modulation signal of 60 % 100
10
duty cycle and Assembly language program to generate PWM signal of 40% duty
cycle using 8086 microprocessor and DAC.
A 8086 microprocessor based digital controller requires a frequency measurements to 100
11
be performed for every 20 ms. Write and execute an inline assmbly language program
to measure the frequency using period measurement technique. Use necessary
peripherals.
Write and execute an assembly language program to interface ADC and 8086 100
12
microprocessor. Convert the analog signal applied at the ADC’s 5th channel
Write and execute an assembly language program to generate the sine wave of 100
13
frequency 50 HZ. Demonstrate the signal generation using a DAC and 8086
microprocessor and observe the sine wave on the scope.
Write and execute a C++ program that adds two packed BCD numbers input from 100
14
the keyboard and computes and displays the result on the PC monitor.
Write and execute an assembly language program to control the speed of the DC motor 100
15
below the rated speed using a 8086 microprocessor.
Write and execute an assembly language program to control the speed of the DC motor 100
16
using Digital PWM scheme. Interface the DAC with 8086 microprocessor to generate
the PWM signal and Consider 40%, 60% and 80% duty cycle ratios for the speed
control of the motor.
Write a C++ language program : 100
17
i. To read 4x 4 matrix from a file 1 and another 4x 4 matrix from
file 2.
ii. Add and subtract the two files and stores the result data in file 3
and file 4 respectively.
iii. Display the input and output in the display unit.

Execute all the above tasks using 8086 microprocessor.


18 Write a C language program : 100

i. To read a character from the keyboard in the module (1)(in a different file)
ii. To display a character in module (2) (from different file)
iii. Use the above two modules to read a string of characters from the keyboard
terminated by the carriage return and print the string on the display in the
next line.
Execute all the above tasks using 8086 microprocessor.
19 Write and execute an assembly language program to interface display controller and 100
display the decimal down Counter 99-00 using 8086 processor.
Design and Implement 8086 microprocessor based traffic light controller. The traffic 100
20
light arrangement is as shown in Fig. The traffic should be controlled in the following
manner.

1) Allow traffic from W to E and E to W transition for 30 seconds. 2) Give transition


period of 10 seconds (Yellow bulbs ON) 3) Allow traffic from N to S and S to N for
30 seconds 4) Give transition period of 10 seconds (Yellow bulbs ON) 5) Repeat the
process.
21 Write and execute an assembly language program to interface , initialize 8279 & to 100
display characters in right entry mode. Provide also the facility to display “ VAZHGA
VALAMUDAN”. In Flashing Display.
22 Write and execute an assembly language program (8086 ALP) to program 8254 in 100
Mode 1 and to generate a square wave with a pulse of 20 ms

You might also like