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.
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
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 2011 eNewsletter
- Which hot air gun and soldering station is worth having?
- Wi-Fi filter design tips (recommended for collection)
- One picture to understand: Manned spacecraft are booming in various countries, who is leading the way?
- TI Designs – Precision file question about Bode plots
- Award-winning live broadcast: Application of Weidmuller products in the semiconductor industry is in progress!
- What is the difference between edge triggering (rising edge, falling edge) and level triggering (high level and low level) in digital circuits?
- Does the boost topology circuit limit the duty cycle?
- Op amp differential amplification problem
- FAQ_How to fill in the BQB certification application form