FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Single chip introduction tutorial ninth lesson - MCU directive (2)

     

    Single chip introduction tutorial ninth lesson - MCU directive (2) Data transfer class instruction (3) Instruction MOV Direct, A case: MOV 20H, A MOV Direct, R1MOV Direct1, Direct2 Mov 20h, 30HMOV Direct, @ ri Mov 20h, @ r1mov Direct, # data mov 20h, # 34h (4) Instruction Mov @ ri, A case: Mov @ r0, a mov @ ri, direct mov @ r1, footlight @ ri, # data mov @ r1, foot R0, # 34h (5) Tempse Directive MOV DPTR, # data16 8051 is an 8-bit machine, this is the only 16-bit immediate number of conveyance instructions, its function is to send a 16-bit immediate number Enter 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. Integrated practice: gives the results after each instruction execution. Mov 23h, # 30hmov12h, # 34hmov R0, # 23HMOV R7, # 22HMOV R1, 12HMOV A, @ r0mov 34h, @ r1 (23h) = 30 h (12h) = 34 h (r0) = 23h (R7) = 22h (R1) = 12h (a) = 30 h (34h) = 34h MOV 45H, 34HMOVDPTR, # 6712HMOV 12H, DPHMOV R0, DPLMOV 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. Practical practice: Enter the DOS state, enter the directory where WAVE is located, type MCS51, appear as follows Figure 1, press File->Open, the dialog box, enter a file name at Name (see Figure 2) If it is existing in the list below, open this file. If this file does not exist, create a file (see Figure 3) Figure 2 is input to 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 Changes in memory in memory can be seen here, and can be observed with the following method (see Figure 5): Move the mouse to the DATA, double-click, then the cursor enters this line, at which time the upper and down the upper and down the upper and lower cursor keys on the keyboard Turn to observe 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 process, enter its anti-assembly 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. , Reading the full text, the technology area About μClinux transplantation on ARM7 S3C4510B Multi-looped into charge and discharge controller design Interrupt service routines for ARM embedded systems LED dimming engine design based on 8-bit MCU How to display Chinese characters, ASCII characters and color graphics on the LCD monitor

     

     

     

     

    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