当前位置:网站首页>Principles of Microcomputer - internal and external structure of microprocessor
Principles of Microcomputer - internal and external structure of microprocessor
2022-07-01 08:57:00 【Waves ~】
List of articles
One 、 Microprocessor external structure
—— Represented by a limited number of inputs / Output pin ( It forms a microprocessor level bus )
8086/8087 common 40 One pin , yes 16 position CPU, Yes 20 Root address line , Addressable 1MB.
IO port - A channel for transmitting information , One IO At least one port is occupied IO Address , Referred to as IO Port address .
Advantages and disadvantages of unified addressing , Such as 8051 and 8031
| Advantages of uniform addressing | Disadvantages of unified addressing |
|---|---|
| Waste memory address space , No dedicated IO Operating instructions | IO Driver programming is simple 、 flexible |
8086CPU Independent addressing is adopted , use M/IO To distinguish is right IO Address or memory address
| Advantages of independent addressing | Disadvantages of independent addressing |
|---|---|
| Save memory address space | Instruction memory is complex ,IO Program design is not flexible |
8086 Memory addressing methods include 5 Kind of ! and IO The operation addressing mode is only 2 Kind of .
Two 、 General microprocessor internal structure
For example, instructions MOV AL 20H
This instruction uses 2 Address space , The microprocessor with this structure takes instructions first and then executes them , Low efficiency !

Stack : A section of storage area organized by the first in last out principle
8086: The stack must operate on words
3、 ... and 、8086/8088 CPU internal structure
Generally, the internal structure of microprocessor is inefficient , therefore intel The company put forward 8086 Internal organization .
8086CPU The internal storage unit is divided into segment address and intra segment address , Divide the memory into segments , One paragraph is 64Kb.
8088 The internal instruction queue register is 4 Bytes , And 8086 The only difference between .
BIU— Mainly responsible for fetching instructions from external memory , And put the acquired instruction into the instruction queue .
EU— Responsible for getting instructions from the instruction queue , follow “ fifo ” principle , And execute the instruction .
BIU“ rest ” Time :EU It's time to use the bus
EU“ rest ” Time : The instruction queue is empty
In this case, the bus is always working , Bus utilization is busy !
General registers : form 8086 Programming logic of assembly language programming .
3、 ... and 、8086 CPU Internal register composition
8086CPU share 14 individual 16 Bit register
3.1 General registers (8 individual )
(1) Data register (4 individual )
4 Data registers can be used as 16 Bit registers can also be used as 8 Bit register
AX(AH\AL) —— accumulator ,AX yes 16 Bit accumulator ,AL yes 8 Bit accumulator
BX(BH\BL) —— Base register ( The address in the segment can be BX operation )( The default is in the data segment )
CX(CH\CL) —— Counter
DX(DH\DL) —— Data register , Again IO Port of in and OUT Can be used as IO Address register
(2) Address of a pointer (2 individual ) And index changing register (2 individual )
SP—— Stack pointer register ( The default is at the stack end )
BP—— Address pointer register
SI—— Source index register
DI—— Destination address register
The last three search elements are in the data segment by default
3.2 Segment register
CS—— Code segment register
DS—— Segment register
ES—— Additional data segment register
SS—— Stack segment register
CS The initial value of cannot be set by the user , It's done by the operating system
The user needs to set the initial value of the last three registers
3.3 Control register
IP—— Instruction pointer register , Cannot be the destination address
PSW—— Processor status register ,16 The only useful bits are 9 position
Status flags :SF、ZF 、PF 、CF 、AF and OF
Reflect the ALU The state of the result after the operation
Control signs :DF、IF and TF, Three control signs are used to control CPU Operating state .
CPU External interrupts can be masked
Four 、8086 CPU Memory and address space
4.1 8086 address space

4.2 Data storage format
The high byte is stored at the high address , The low byte is stored in the low address !
One word has 16 position , In order to improve the speed of data operation on words , Try to define words in even bytes .
4.3 Memory segmentation and physical address formation
1、 Why should the memory be segmented ?
16 The bit address line cannot be directly aligned to 1M Byte storage unit for addressing , So we need to segment the memory .
2、 How to segment memory ?
Each logical segment has a maximum of 64K, The starting address of each logical segment must be able to be 16 to be divisible by !
Each storage unit has only a unique physical address , And different logical addresses ! The logical address is expressed as :
16 Bit address :16 Offset address in bit segment
Every Physical address of the logical unit PA by : Segment address *16+ In segment offset address ( That is, the valid address in the segment EA)
边栏推荐
- Glitch Free时钟切换技术
- Centos7 shell script one click installation of JDK, Mongo, Kafka, FTP, PostgreSQL, PostGIS, pgrouting
- TypeError: __ init__ () got an unexpected keyword argument ‘autocompletion‘
- 电脑小技巧
- Embedded Engineer Interview Question 3 Hardware
- 易点易动助力企业设备高效管理,提升设备利用率
- Shell脚本-read命令:读取从键盘输入的数据
- Set the type of the input tag to number, and remove the up and down arrows
- The meaning of yolov5 training visualization index
- 【MFC开发(16)】树形控件Tree Control
猜你喜欢

电视机尺寸与观看距离

Screenshot tips

Memory size end

ARM v7的体系结构A、R、M区别,分别应用在什么领域?

5mo3 UHI HII HII 17mn4 19Mn6 executive standard

Nacos - Configuration Management

How to manage fixed assets well? Easy to point and move to provide intelligent solutions

How to solve the problem of fixed assets management and inventory?

What are the differences between the architecture a, R and m of arm V7, and in which fields are they applied?

大型工厂设备管理痛点和解决方案
随机推荐
[MFC development (16)] tree control
The meaning of yolov5 training visualization index
Configuration and startup of Chang'an chain synchronization node
1.jetson与摄像头的对接
Shell脚本-if else语句
3. Detailed explanation of Modbus communication protocol
DataBinding源码分析
Shell script - definition, assignment and deletion of variables
[MFC development (17)] advanced list control list control
Jeecg restart alarm 40001
中断与其他函数共享变量、临界资源的保护
Understand shallow replication and deep replication through code examples
Nacos - 配置管理
Differences among tasks, threads and processes
序列化、监听、自定义注解
Which method is good for the management of fixed assets of small and medium-sized enterprises?
V79.01 Hongmeng kernel source code analysis (user mode locking) | how to use the fast lock futex (Part 1) | hundreds of blogs analyze the openharmony source code
日常办公耗材管理解决方案
Jetson nano installs tensorflow GPU and problem solving
Only in China! Alicloud container service enters the Forrester leader quadrant