Vous êtes sur la page 1sur 1

EC 7052 MICROCONTROLLERS AND EMBEDDED SYSTEMS LAB

1. Write an assembly language program to check the status of switches and display the status on serial
port as given below:
a) If switches (0x0ffc0) = “00000000” send “NO” to serial port
b) If switches (0x0ffc0) = “11111111” send “YES” to serial port

2. Write an assembly language program to sort given array of data as even and odd numbers and save
even and odd array at different memory locations.

3. Write an assembly language program to generate a Fibonacci series of 7 elements and send it to PC
by serial communication with baud rate of 4800. (each element followed by a “,” ASCII code for “,
” is 2C )

4. Write an assembly language program to find factorial of a number given on switches (< 6) and
display the result on LEDs.

5. Write an assembly language program to read the data from PC key board (serial communication)
with baud rate 9600 and display Σ n2 on LEDs. (n<9)

6. Write an assembly language program to Generate a square wave of 900 Hz in possible mode of
timer operation and justify the selection of mode of operation

7. Write an assembly language program to Generate a square wave of 500µ sec time period using
timers and without using timers

8. Write an assembly language program to check the data available on switches is divisible by 4 or not
and to display the result on LCD display as given below
If it is not divisible by 4 then display “NOT DIVISIBLE BY 4”
If it is divisibly by 4 then display “DIVISIBLY BY 4”

9. Write an assembly language program to read BCD data from PC keyboard using serial
communication and display ASCII equivalent on LED/LCD.

10. Write an assembly language program to interface a serial ADC with 8051 using I2C BUS.

11. Write an assembly language program to count external events for 10 sec and display count on PC
using serial communication.

12. Write an assembly language program to interface microcontroller with LED and switches. Generate
different patterns on LED for different switch

13. Write an assembly language program to


i. Generate 10 k Hz square wave
ii. Read switches and send it to PC serially with baud rate 9600
iii. Read switches and send it to LEDS using interrupts

14. Write an assembly language program to read data from PC by serial communication and display
weather the given number is even or odd on LCD display

15. Write an assembly language program to display the encoded data using formula 10*x -4 on LEDs.
Read the data from PC serially with baud rate 4800.

16. Write an assembly language program to receive data from serial port and display the same on the
LED

Vous aimerez peut-être aussi