1. Arithmetic unit: It is the part of the computer that processes data. Its main functions include:
(1) Performing arithmetic addition, subtraction, multiplication and division of numerical data, and performing logical operations such as AND, OR and NOT of logical data, which is completed by a circuit called ALU.
(2) Temporarily storing the data and intermediate results involved in the operation, which is undertaken by multiple general registers.
(3) The arithmetic unit is usually also the path for data transmission.
2. Controller
The part that controls the execution of instructions in the computer, and provides the control signals required for the coordinated operation of each functional component of the computer at every moment. Its main functions include:
(1) Correctly executing each instruction: First, fetch an instruction, then analyze the instruction, and then execute the instruction according to the instruction format and function.
(2) Ensure that instructions are automatically and continuously executed in the specified sequence.
(3) Respond to and handle various abnormal situations and requests in a timely manner.
3. Main registers in the CPU:
(1) Accumulator (A): The most frequently used register, which cooperates with the ALU to perform various data processing.
(2) Data register (DR): It is a temporary storage unit that reads and writes data to the memory and I/O devices through the data bus.
(3) Instruction register (IR): It temporarily stores the current instruction.
(4) Instruction decoder (ID): It decodes each instruction into a control level.
(5) Program counter (PC): It stores the current instruction address. When the CPU executes a program, it first fetches an instruction from the memory according to the address given by the PC, and the PC automatically increases by 1. After the CPU executes an instruction, it fetches the next instruction from the memory.
(6) Address register (AR): It is used to save the address of the memory unit or I/O device that the current CPU wants to access.
Previous article:What is a single chip microcomputer? Classification of single chip microcomputers
Next article:Necessary conditions for learning microcontrollers
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