FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    9 lesson: single-chip data transfer class directive

     

    Single-chip data transfer class instruction (3) instructions for operands as dedicated to the direct address MOV Direct, A case: MOV 20H, A MOV Direct, RN MoV 20H, R1 MOV Direct1, Direct2 MOV 20H, 30H Mov Direct, @ ri mov 20h, @ r1 Mov Direct, # Data MoV 20h, # 34h (4) Instructions for operands with indirect address Mov @ ri, A case: MOV @ r0, A Mov @ ri, Direct Mov @ r1, 20h Mov @ ri, # data mov @ r0, # 34h (5) Passing Directive Mov dptr, # data16 8051 is an 8-bit machine, this is the only 16-bit immediate digital delivery directive, which feature a 16-bit immediate number to DPTR. Among them, 8 digits are sent to DPH, and the low 8 bits are sent to DPL. Example: MOV DPTR, # 1234h, then the value in the DPH is 12 h after execution, the value in the DPL is 34h. Conversely, if we send numbers to DPH, DPL, the results are the same. If there are two instructions below: MOV DPH, # 35H, MOV DPL, # 12h. Then it is equivalent to executing MOV DPTR, # 3512h. Data transfer class instruction integrated exercise: Give the result after each instruction execution Practice: Mov 23h, # 30h Mov 12h, # 34h MOV R0, # 23h Mov r7, # 22h MOV R1, 12H Mov A, @ r0 MOV 34H, @ r1 (23h) = 30h (12h) = 34h (R0) = 23h (R7) = 22h (R1) = 12h (A) = 30h (34h) = 34h MOV 45H, 34H Mov dptr, # 6712h MOV 12H, DPH MOV R0, DPL Mov A, @ r0 (45H) = 34h (Dptr) = 6712h (12h) = 67h (R0) = 12h (A) = 67h Note: The contents of the inner RAM23H unit are represented by parentheses, such as (a) representing the value in the accumulator A unit. Enter the DOS state, enter the directory where WAVE is located, Example D: \ Wave Type MCS51, appear as follows < Single chip data transfer instructions. 1882. Figure 1 Press File->Open, after the dialog box, enter a file name (see Figure 2) at the NAME, if it is existing in the list below, open this file, if this file does not exist, create a new file (See Figure 3) figure 2 Enter the above program in the blank. See Figure 4. Use Alt + A to adopt. Use f8 to perform a single step, pay attention to the change in the working register and the value in the A accumulator in the A accumulator during the execution. Figure 4 The change in memory is not seen here, and it can be observed with the following method (see Figure 5): Move the mouse to DATA, double-click, then the cursor enters this line, at which time the upper and down the upper and down the upper and down, the upper and lower scales can be turned up and down. Observe the changes in memory. The data represented by the Bank's top DATA is "a paragraph" start address, such as 20h, then look at the top of the screen, the number is added from 0 to F, the display is added equal to the real address value, such as The values ​​in the memory 20h, 21h, 22h, 23h shown on the figure are FBH, 0EH, E8H, 30H, respectively. Figure 5 6. After running the program, enter its disassembly area, not what we want. In order to start from the beginning, the PC value can be reset with the CTRL + F2 function key. Be careful not to see the original window, to see the original window, use ALT + 4 or ALT + 5, etc. to switch. Of course, the above operations can also be done. Ctrl + F2 is a program reset, with a Run menu. The window is used with the Windows menu. This time, please use the software, tell the truth, I don't like it very much, it is not convenient to operate, but I can only put this, there is no way, I will introduce a good one for the next time. Bar. Now the best is that keil This site has a detailed tutorial. Please see: keil tutorial single-chip C language tutorial, read full text

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us