What are data, address, and instruction in a single chip microcomputer system?

Publisher:幸福的时光Latest update time:2016-01-14 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Data, address, instruction: The reason why these three are put together is that the essence of these three is the same - numbers, or a sequence of '0' and '1'. In other words, addresses and instructions are also data. Instruction: A number specified by the designer of the microcontroller chip. It has a strict one-to-one correspondence with the commonly used instruction mnemonics and cannot be changed by the developer of the microcontroller. Address: It is the basis for finding the internal and external storage units and input and output ports of the microcontroller. The address value of the internal unit has been specified by the chip designer and cannot be changed. The external unit can be determined by the microcontroller developer, but some address units must be there (see the execution process of the program for details). Data: This is the object processed by the microprocessor. It is different in various application circuits. Generally speaking, the data being processed may have the following situations:

1. Address (such as MOV DPTR, #1000H), that is, address 1000H is sent to DPTR.

2. Mode word or control word (such as MOV TMOD, #3), 3 is the control word.

3. Constants (such as MOV TH0, #10H) 10H is the timing constant.

4. Actual output value (such as P1 port connected to colored lights, to make all lights bright, execute the instruction: MOV P1, #0FFH, to make all lights dark, execute the instruction: MOV P1, #00H) Here 0FFH and 00H are both actual output values. Another example is the font code used for LED, which is also the actual output value. If 

you understand the nature of addresses and instructions, it is not difficult to understand why the program will run away during operation and the data will be executed as instructions.
Reference address:What are data, address, and instruction in a single chip microcomputer system?

Previous article:How to use the parallel port of the microcontroller
Next article:Analysis of the internal storage structure of the microcontroller

Recommended ReadingLatest update time:2024-11-16 20:52

Change MYS_SAM9X5 to dataflash boot
Because the nand scrub command was used carelessly before and caused the nandflash to be unusable, I considered changing the MYS_SAM9X5 development board to dataflash startup. Before making any changes, you must first clarify the relationship between bootstrap and u-boot: The at91 architecture u-boot is not like o
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号