Partial preview of the text
Download RFID Electromagnetic project (rfid) and more Exams Microprocessor and Interfacing in PDF only on Docsity!
J ’ Alexandria University Ay jail) daly Faculty of Engineering Arusig At Electrical Engineering Department RysgS Aaaaigt audi June 2011 2011 gain glais Course title : Microprocessors-2 24S Bay Shaded 2AT ca get elt ayia aul Year : 4" Communications clued dad ys Ayal jath Aiud Time allowed: 3 hours Gielen 3: Gladeyi 544 Examiners: Dr. Nayera Sadek and the committee: Part I; Microprocessors Answer ALL the following questions Question 1: [5 points] In Figure 1, the 82055 reads the data from the keyboard and sends it to the printer. Answer using Figures 2 and 3. a) What are the pins of port 3 corresponding to PCa, PCb and PCc? b) Rewrite atid complete'the following Program in your answer book. Then circle the missing word(s). Note write all the values in H (Hexadecimal form). Figure 1 AT A6 AS A4 Al 40 1, READ WRITE PROC NEAR jTest port C if the printer is ready sInitialize the 82C55 9. PRINT: IN AL, w....... 2. MOV AL, ..........00- H 10. TEST AL, . 3. OUT 0... H, AL il. JZ PRINT ;Test port C for any input from the keyboard ;Send the character to the printer 4, READ KEY: IN AL, 12. MOV AL, AH 5. TEST AL, .. . 13. OUT oe H,AL 6. JZ READ | KEY Send DS to the printer ;Receive the character from the keyboard 14. MOV AL, . 7. IN AL, 0000... H 15. OUT... 8. MOV AH, AL 16. MOV AL, 17. OUT oe LA 18. RET 19. READ WRITE ENDP Question 2: [10 Points] Using Figures 2, 3 and 4 and program 1, complete the following sentences. In your answer book, write the question number followed by the missing word(s) ONLY. 1) The COMMAND equals to........... , while the CMND_WRD equals to.... 2) If the input of port A-is 06H followed by 80H, after executing line 8, the contents of CX will be......., and the stepper motor will rotate .... sSteps in the direction. 3) If CX = 0012H, the stepper motor will rotate ......... steps in the .direction. 4) Ifthe output of port Bis 33H, the LED(s) connected to pin(s) is ON, and the active coil(s) is 2.0... 5) DELAY1 should be adjusted to give the user enough time to . 6) DELAY should be adjusted to give the user enough time to .... 7) The 4 LED(s) will be ON at the same time in the following case(s)... 8) The program will jump to FINISH in the following case(s)...