The difference between Elan MCU and MCS-51 MCU

Publisher:760802csyLatest update time:2012-08-25 Source: 51heiKeywords:MCS-51  MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The assembly language of Elan microcontroller is very similar to that of MCS-51 microcontroller, but the two have completely different architectures.

My summary is, first look at the stack structure. The MCS-51 MCU stack is opened in the RAM space, and the user is required to estimate the stack usage according to the program call situation, and then define the stack pointer's top address. When the user reads and writes to change the stack area data, the program will run away. The stack of Elan and PIC MCUs has an independent fixed depth, and the user cannot directly read and write to the stack area. Only when a program call occurs, the address of the protection scene will be pushed into the stack, so it will not run away, but the depth is still limited, so it is not advisable to nest too many function calls.

1. The internal structure of Elan MCU is the same as that of PIC MCU. The bus structure of MCS-51 MCU is von Neumann type. The computer takes instructions and data in the same storage space, and the two cannot be performed at the same time; while the bus structure of PIC MCU is Harvard structure. The instruction and data space are completely separated, one for instructions and the other for data. Since the program and data can be accessed at the same time, the data throughput rate is improved. Because the Harvard dual bus structure is used in PIC MCU, one difference from common microcontrollers is that the program and data bus can use different widths. The data bus is 8 bits, but the instruction bus bits are 12, 14, and 16 bits respectively.

2. The instruction fetching and execution of the MCS-51 microcontroller adopts a single instruction pipeline structure, that is, fetching one instruction, executing it, and then fetching the next instruction; while the instruction fetching and execution of the PIC adopts a dual instruction pipeline structure. When one instruction is executed, the next instruction is allowed to be fetched at the same time, thus realizing single-cycle instructions.

3. All registers of the PIC microcontroller, including I/O ports, timers and program counters, are in RAM structure and can be accessed and operated in one instruction cycle; while the MCS-51 microcontroller requires two or more cycles to change the contents of the register.

Keywords:MCS-51  MCU Reference address:The difference between Elan MCU and MCS-51 MCU

Previous article:MCU drives 19264a LCD display English program
Next article:Programming of 51 MCU Matrix Keyboard

Recommended ReadingLatest update time:2024-11-16 22:40

MCU + digital tube simple stopwatch program with stop, start and reset
The P0 port is the bit selection entry of the digital tube, the P2 port is the segment selection of the digital tube, and the P3.0 P3.1 P3.2 are the start, stop and reset buttons respectively.    #include reg51.h   #define uchar unsigned char #define uint unsigned int   #define DATA P2 sbit start=P3^0;
[Microcontroller]
Is it reliable for car manufacturers to make chips?
Car manufacturers are making chips, ostensibly to cope with the shortage of automotive chips, but in reality they are trying to break the original industrial chain structure. Regardless of the method used, one thing that cannot be changed is that the value of tier 1 companies will be greatly weakened. How serious is
[Automotive Electronics]
Is it reliable for car manufacturers to make chips?
Introduction of SST MCU using PCA function to generate PWM pulse
1. Program Description: SST microcontroller has 5-channel PCA module. PCA function provides stronger timing than ordinary microcontrollers, and less CPU intervention, which can reduce software overhead and improve accuracy. PCA pulse width modulation (PWM) mode can generate an 8-bit PWM, which is generated by comparin
[Microcontroller]
Single chip LED digital circuit and C program
Let a single-chip LED digital display display 1 from the first digit, 2 from the second digit, 3 from the third digit, ... until the sixth digit displays 6, with an interval of 0.5 seconds between each digit. Then keep looping. Find a C language program! ---------------------------- Assume the circuit is as shown belo
[Microcontroller]
Single chip LED digital circuit and C program
PWM control MOSFET built H-bridge circuit driving DC motor simulation and microcontroller source code
PIC microcontroller proteus H-bridge drives DC motor PWM control MOSFET built H-bridge circuit drives DC motor operation simulation schematic diagram is as follows (proteus simulation project file can be downloaded in the attachment of this post)   1. Forward - 2. Stop - 3. Reverse - 4. Stop When adjusted to high sp
[Microcontroller]
PWM control MOSFET built H-bridge circuit driving DC motor simulation and microcontroller source code
Hanging object tracking control system based on dual microcontrollers
Topics in previous national electronic design competitions can be divided into power supply, signal source, radio, amplifier, instrumentation, data acquisition and processing, and automatic control. In the 2005 National College Student Electronic Design Competition, suspended object control The system is a typ
[Microcontroller]
Basic principles of 51 single chip microcomputer 16X16 dot matrix display learning board
  1. Function The      16×16 dot matrix display learning board is shown in the figure below. The brightness of each point of the LED display is uniform and sufficient. It can display graphics and text. The data code is obtained through the text image modeling software, and various graphics or text can be displayed. St
[Microcontroller]
Basic principles of 51 single chip microcomputer 16X16 dot matrix display learning board
Design of low power consumption methane detection system based on 51 single chip microcomputer
1 Introduction Gas detection system is an essential safety equipment in industrial and mining enterprises, social utilities, environmental protection and other fields. After decades of development, the main technical indicators such as the types of measurable gases, measurement range, accuracy, stability, life,
[Microcontroller]
Design of low power consumption methane detection system based on 51 single chip microcomputer
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号