Vous êtes sur la page 1sur 1

Assignment-1 Subject code: ECE 312 Q. 1 a.

Write a program to display the last two digits of your registration number (XY) on array of seven segment display; using 8255 PPI IC let Port A and port B are used as simple latched output ports. Port A provides the segment data inputs to the display and port B provides a means of selecting a display position (take any two consecutive positions) A0-A7 lines are used to decode the addresses for 8255. For the circuit different addresses are: PA = X0H PB = X1H PC = X2H CR = X3H. (Here X is the second last digit of your registration number) b. Show the necessary part of look up table and flow chart of program. c. Provide the circuit diagram showing the I/O interfacing using 74LS138 decoder. d. Display the numbers for 74 T-states (at least, given the system frequency 5 MHz). e. If XY > 36 then take 1s complement of the number and save it in memory location 4002H. If XY <= 36 then take 2s complement of the number and save it in memory location 4002H. [10] Q.2. explain (in short) the term is I/O interfacing, give different types of I/O interfacing techniques. [3] Q.3. draw and explain the timing diagram of for the instruction MVI r, data, also show the contents of address and data bus in the diagram. (Take random data value) [3] Q.4. Write an assembly language program to separate even numbers from the given list of XY numbers and store them in the another list starting from 2322H. Assume starting address of XY number list is 2222H. (Here XY: last two digits of your registration number) [4] Q.5. Write a program to a. convert first two letters of your name into their ascii equivalent/s. (Explain with flow chart) b. find the greater of two ascii number/s (result/s of a part).(Explain with flow chart) c. display the result of part b on single seven segment display such that first digit is displayed for 255 T-states and second digit should be displayed for 65535 T-states. (Explain with flow chart, show diagram giving interfacing). d. calculate total T-states for each section of program/s. [10]

Vous aimerez peut-être aussi