You are on page 1of 6

ANNA UNIVERSITY, CHENNAI-600 025

B.E/ B.Tech DEGREE EXAMINATIONS, Oct/Nov 2013


Regulations-2008
Fifth Semester

B.E Electronics and Communication Engineering


EC2308 - Microprocessors and Microcontrollers Lab
Duration

: 3 hours

Max.Marks

:100

1. (a) Interface programmable peripheral interface 8255 with 8086 and verify its
operation in Mode 0 (defining PORTA as input mode and PORTB as output port) and
BSR mode (setting PC0 and PC3).
(50)
Port address for PORTA-C0 PORTB C2 PORTC-C4 Control Port C6
(b) Write an ALP to perform 16-bit data addition using 8086 mnemonics. (50)

2. (a) Write an ALP to Sort N elements in ascending order in an array using 8086
mnemonics.
(50)
(b) Write an ALP to perform 16-bit data subtraction using 8086 mnemonics.(50)

3. Interface 8279 with 8086 and write an ALP to display the character A and to read a
key from keyboard.
Control Port C2 Data Port C0
(100)

4. (a) Write an ALP to copy a string from one memory location to another using 8086
mnemonics.
(50)
(b) Write an ALP to sort the elements in an array in descending order using 8086
mnemonics.
(50)

5. (a) Write an ALP using 8051 mnemonics to make the stepper motor to rotate with a
specific delay by continuously energizing the coils.
Stepper Motor port address FFC0
(50)
(b) Write an ALP to perform 16-bit data multiplication using 8086 mnemonics. (50)

6. (a) Write an ALP to perform 32-bit data division using 8086 mnemonics.

(50)

(b) Write an ALP to generate a square wave of time period through P1.2 of 8051. (50)

7. Write an ALP to communicate serially between two 8051 microcontrollers. (100)

8. (a) Interface a 8 bit ADC with 8086 and write an ALP to convert analog values into
corresponding digital datas. Verify theoretically.
(50)
(b) Write an ALP to set bit3 and bit 6 (format B0-B7) using 8051 mnemonics.(50)

9. (a) Write an ALP to mask bits 2 and 7 (format B0-B7) using microcontroller 8051
mnemonics.(50)
(b) Write an ALP to find the smallest element in an array using 8086 mnemonics. (50)

10. (a) Interface a 8 bit DAC with 8086 and write an ALP to generate a square wave.(50)
(b) Write an ALP to find the largest element in an array using 8086 mnemonics.(50)

11.(a) Interface a 8 bit DAC with 8086 and write an ALP to generate a triangular
wave.(50)
(b) Write an ALP to find the smallest element in an array using 8086 mnemonics.(50)

12. Interface the Timer IC 8253 with 8086 and verify its operation in all Modes. Port
address for Counter0 C8 Counter1 CA Counter2-CC Control Port CE (100)

13. (a) Write an ALP to search a byte in a string using 8086 mnemonics.(50)
(b) Write an ALP to perform 16-bit data addition using 8051 mnemonics.(50)

14. (a) Write an ALP using 8051 mnemonics to make the stepper motor to rotate with a
specific delay by continuously energizing the coils.
Stepper Motor port address FFC0(50)
(b) Write an ALP to fill five memory locations with the given data using 8086
mnemonics.(50)

15. (a) Write an ALP to perform 8-bit data multiplication using microcontroller 8051
mnemonics. (50)
(b) Write an ALP to find the largest element in an array using 8086 mnemonics.(50)

16. (a) Interface a 8 bit ADC with 8086 and write an ALP to convert analog values into
corresponding digital datas. Verify theoretically. (50)
(b) Write an ALP to mask bit3 and bit 6 (format B0-B7) using 8051 mnemonics.(50)

17. Interface 8279 with 8086 and write an ALP to display the character A and to read a
key from keyboard.
Control Port C2 Data Port C0 (50)

18. (a) Write an ALP to perform 32-bit data division using 8086 mnemonics.(50)
(b) Write an ALP to generate a square wave of time period through P1.2 of 8051. (50)

19.(a) Interface programmable peripheral interface 8255 with 8085 and verify its
operation in Mode 0 (defining PORTA as input mode and PORTB as output port) and
BSR mode (setting PC0 and PC3).
Port address for PORTA-C0 PORTB C2 PORTC-C4 Control Port C6 (50)
(b) Write an ALP to set bit2 and bit5 (format B0-B7) using 8051 mnemonics.(50)

20.(a) Write an ALP to search a byte in a string using 8086 mnemonics.(50)


(b) Write an ALP to perform 8-bit data multiplication using 8051 mnemonics. (50)

21. (a) Write an ALP using 8051 mnemonics to make the stepper motor to rotate with a
specific delay by continuously energizing the coils.
Stepper Motor port address FFC0 (50)
(b) Write an ALP to perform 16-bit data subtraction using 8086 mnemonics.(50)

22. (a) Write an ALP to perform 16-bit data addition using 8086 mnemonics. (50)
(b) Write an ALP to find the largest element in an array using 8086 mnemonics.(50)

23. Write ALP to interface 8051 with:


(a)

Interfacing DAC and writing programs to generate triangular, trapezoidal


and sine waveforms.(50)

(b)

Interfacing 8/12 bit ADC to 8051 or equivalent and to write a program to


find out the average value for 10 readings.(50)

24. (a) Write 8086 ALP to convert an analog signal in the range of 0V to 5V to its
Corresponding digital signal using either successive approximation ADC or dual slope
ADC.(50)
(b) Write 8086 ALP to interface DAC and generate following waveforms on
oscilloscope,
(i)
Square wave - Variable Duty Cycle and frequency,
(ii) Ramp wave - Variable direction,
(iii) Trapezoidal wave,
(iv)
Stair-case wave.(50)

25. Write 8086 ALP to rotate a stepper motor for given number of steps at a given angle
and in the given direction of rotation based on the user choice.(50)

26. Write a program to receive bytes of data serially and display it on port P0. Use 8 bit
UART mode with baud rate 9600. (50)

27. Write a program for Parallel communication between two MP kits using Mode 1 and
Mode 2 of 8255.(100)

28. Write a program to generate square wave of 50% duty cycle having frequency 5 KHz
at port pin P1.0 using timer 1 in mode 2. Modify program to generate pulse waveform of
70% duty cycle using timer on the same pin.(50)

29. Write and execute programs in 8051 Board


(i) Flash LEDs connected at Port Pin P1.4 to P1.7
(ii) Monitor switch connected at P1.0, Glow all LED when switch in ON
(iii) Monitor switch connected at P1.1, send pulses to port P1.7 when switch is ON(100)

30. Assume that the 8051 serial port is connected to the COM port of IBM PC, and on
the PC, we are using the terminal.exe program to send and receive data serially. P1 and
P2 of the 8051 are connected to LEDs and switches, respectively. Write an 8051 program
to (a) send to PC the message Hello, (b) receive any data send by PC and put it on
LEDs connected to P1, and (c) get data on switches connected to P2 and send it to PC
serially. The program should perform part (a) once, but parts (b) and (c) continuously,
use 4800 baud rate.(100)

You might also like