Lab Assignment
Lab Assignment
Write the format of assembly language program and flow chart to develop the code in
assembly language programming.
2. Interface the 8051 microcontrollers with LCD (16 x 2). Also, write the embedded ‘C’ /
Assembly program to display your Name.
3. Write down the program for sorting of array (assume any 5 input) using 8085 ALP.
4. Draw the timing diagram for the instruction STA 2000 H and explain the function of each
machine cycle.
5. Detail the completed internal RAM memory architecture of 8051 with complete description
of register banks, bit Addressable RAM allocation and SFR.
6. Interface the circuit of seven segment display unit with 8051 microcontroller. Also, write
down a program for the same using embedded C/Assembly language.
7. Assume that RAM locations 30 – 34H have the following values. Write a program to find the
sum of the values. At the end of the program, register A should contain the low byte and R7
the high byte.
30 = (7D)
31 = (EB)
32 = (C5)
33 = (5B)
34 (30)
8. Write down the program for addition of two 16-bit numbers with carry using 8085.
9. Illustrate the interfacing of Light Emitting Diodes to 8051 microcontroller, draw the diagram
and write the logic.
10. Find the size of the delay in the following program if the crystal frequency is 11.0592MHz.
DELAY: MOV R2, #200 H
AGAIN: MOV R3, #250 H
HERE: NOP
NOP
DJNZ R3, HERE 2
DJNZ R2,
AGAIN 2
RET