ICE

MICROCONTROLLER LAB

Lab In-charge: Prof. Arvind Rehalia

Lab Assistant: Mr. Anuj Kumar

 

             

 

List of Experiments:

1. Introduction to the use of editor, assembler and simulator for writing software for microcontroller based systems and study of 8051 development kit.

2. Write a program in assembly language for addition, subtraction, multiplication and division of two 8-bit numbers. Use registers A and B to store the numbers     and result in R6 and R7 of register bank1.

3. Write a program in assembly language for addition, subtraction using carry bit for two 16-bit numbers.

4. Write a program in assembly language to clear the contents of RAM locations 00h-7Fh, and then load the RAM locations alternately with 0AAh and 55h.

5. Write a program in assembly language to make port1 as input, then receive data from this port, store it in R1 of Register Bank2, convert this data into              ASCII and store it into RAM location 30h, and finally mask the upper 4-bits of original Hex value and send it to port2.

6. Write a program in assembly language to find the number of 1's in bytes 00h, 55h, 0AAh and 0FFh stored in R1, R2, R3 and R4 respectively. Finally, send      the register number having the maximum number of 1's to port1.

7. Write a program in assembly language to generate a square wave of 1 KHz with 50% duty cycle on p1.7. Use timer0 to generate the required delay.

8. Write a program in assembly language to make LED move from left to right and vice versa with delay of 1 sec in each step.

9. Write a program in assembly language to initialize serial port with (9600 Baud, 1-Start bit, 1-Stop-bit, no Parity) and send the string "Bharati Vidyapeeth's       College of Engineering" from Microcontroller to PC and display it on Hyper terminal.

10. Write a program in assembly language to display different patterns on the LEDs in accordance to the data switches pressed:

       SW1 pressed -> All LEDs ON.

       SW2 presses -> All LEDs OFF.