Assignment 2
Assignment 2
1. With an example explain the concept of I/O mapped I/O and memory mapped I/O
2. What is addressing mode? Explain the addressing modes of 8051 (with example)
3. Draw the timing diagram for the instructions STA 2065H and IN
4. Explain the operation of Interrupts in 8051 and explain the use of Interrupt control register IE
and IP.
5. Write an ALP to find the sum of two 32 bit numbers stored in RAM locations 40H-43H and
50H-53H and store the sum at location 60-63H
6. Write a program with three subroutines to (a) transfer the following data from on-chip ROM to
RAM locations starting at 30H, (b) add them and save the result in 70H, and (c) find the average
of the data and store in R7.
My data: ORG 250H: 3, 9, 6, 9, 7, 6, 4, 2, 8
7. Write a program to convert the following packed BCD 0111 0101 to two binary numbers and
transfer these numbers to registers R0 and R1.
8. Write an ALP to arrange N number in descending order