Preview

Assignment 3

Satisfactory Essays
Open Document
Open Document
267 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Assignment 3
Chapter 4
16. All
17. Accessing ports without disturbing the other ports
27. 5
Chapter 5
5. Push
7. Moves 1F directly to A
9. In this mode the registers are used as a pointer to the data. R0 and R1 are the only registers used in this addressing mode
17. All ports P0 to P3 are bit addressable
18. 16 bytes of the internal ram are bit addressable. The locations are 20H to 2FH
24. P0-80H-87H
25. P1-90H-97H
26. P2-A0H-A7H
27. P3-B0H-B7H
28. PCON-98H-98FH
29. TCON-88H-8FH
35. CLR.PSW.&
37. MOV A, D0H (D0H is the address of PSW
ANL A, FBH (Mask the unused bits and test the ones needed)
MOV P1, A (Display for the user on the board)
Chapter 4
20. CPL P1.2 CPL P1.5 SJMP H1
24. SET B, P2.0 ; MAKE P2.0 AN INPUT AGAIN:JB P2.0,OVER ;JUMP IF P1.4=1 SJMP AGAIN ;KEEP MONITORING OVER: MOV P1, #66H ;SW=0,ISSUE 66H TO P1 SJMP AGAIN ;KEEP MONITORING END
Chapter 5
8. PUSH 00 PUSH 01 PUSH 03 POP 05 POP 06 POP 07
10. MOV R7, #1FH MOV R1, 50H MOV R4, #0FFH
AGAIN:
MOV @R1,R4 INC R1 DJNZ R7 SJMP AGAIN 13. MOV DPTR, DB 06,09,02,05,07 MOV 30H, #00H MOV R1, #00H LOOP: MOVC A, @A+DPTR ADD A, 30H MOV 30H, A INC R1 MOV A,R1 CJNE R1,#05H, LOOP
20. SETB P1.5 LCALL DELAY LCALL DELAY LCALL DELAY CLR P1.5 LCALL DELAY LCALL DELAY LCALL DELAY SJMP HERE
23. SETB P2.1 MOV A, #55H JNB P2.1,AGAIN MOV PO,A MOV P2.2 SETB 2.2 CLR 2.2

67. ORG 0 MOV A,#55H MOV R2, #10 MOV R0, #C0
BACK: MOV @R0,A INC R0 DJNZ R2, BACK SJMP $ END

You May Also Find These Documents Helpful

  • Good Essays

    This chapter describes the concepts behind how a CPU reads the contents from RAM. Which of the following is true about the process of read data, as described in the chapter?…

    • 957 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1210 Chapter 1 Review

    • 1315 Words
    • 6 Pages

    A.The CPU tells the RAM which address holds data that the CPU wants to read.…

    • 1315 Words
    • 6 Pages
    Good Essays
  • Good Essays

    a. The CPU tells the RAM which address holds the data that the CPU wants to read.…

    • 856 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Assignment 3

    • 1286 Words
    • 10 Pages

    How this table was created? The constrains and other valuable information that was given by the question and with manual analysis was inserted into the Excel spreadsheet in an appropriate format. The Excel Solver function was utilized in order to get the solutions.…

    • 1286 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    in register R3. This code is simple, and it does not express all the instructions needed to…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Good Essays

    Assignment 2

    • 1856 Words
    • 7 Pages

    Office Support, Inc. provides on-site repair for most large photocopy machines. It currently has five…

    • 1856 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    2. For direct-mapped cache, a main memory address is viewed as consisting of three fields. List and define the three fields.…

    • 1721 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Assignment 2

    • 338 Words
    • 2 Pages

    1. Joan's conduct is protected by the business judgment rule, because its a legal principle that makes officers, directors, managers, and other agents of the corporation immune from liability to the corporation for loss incurred in corporate transactions that are within their authority and power to make when sufficient evidence demonstrates that the transactions were make in Good Faith.…

    • 338 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assignment 3

    • 255 Words
    • 2 Pages

    6. Show that immigration, like population growth, tends to create unemployment in the short run and reduce the standard of living of workers in the long run, even though it does enhance the economy’s ability to produce.…

    • 255 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    E4.10: Draw the stack frame and enter the value of each stack slot (if it is…

    • 900 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    assignment 2

    • 378 Words
    • 2 Pages

    What are the underlying assumptions in projections versus forecasts? Are the extension of past trends into the future. They identify trend lines and simply extend them to the future regarless of constraints or changes. Forecast are the prediction of future conditions based on projection modified by expected assumptions of driving forces, constraints, and opportunites.…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Assignment 3

    • 3296 Words
    • 17 Pages

    Working in groups, number in each group, determined by your teacher, you are required to deliver a 10 minute presentation to the class which informs them about the Orientation/Induction Program to be used for the new Store Manager at Triangle Tribe in Prahran. NOTE: Your program will be developed in accordance with the organisational procedures,observing confidentiality and privacy requirements.…

    • 3296 Words
    • 17 Pages
    Powerful Essays
  • Good Essays

    Assignment 3

    • 1180 Words
    • 4 Pages

    During the 1920s there were two viewpoints regarding immigration restriction. Mr. Parrish, Madison Grant, and John Box favored immigration restriction. Mr. London and Franz Boaz opposed immigration restriction.…

    • 1180 Words
    • 4 Pages
    Good Essays
  • Good Essays

    assignment 3

    • 1085 Words
    • 4 Pages

    In the seventies and eighties, the Chicano movement was in full effect. However, this movement only seemed to better the Chicano men, and not so much the Chicana women. The Chicana women decided to have a movement of their own, the Chicana feminist movement.…

    • 1085 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Chapter 5 Addressing Modes

    • 1518 Words
    • 8 Pages

    DPTR is a 16­bit register and CANNOT be loaded into a 8­bit register like R2.…

    • 1518 Words
    • 8 Pages
    Powerful Essays

Related Topics