当前位置:网站首页>1.15 - input and output system
1.15 - input and output system
2022-07-05 06:11:00 【It's Li sticky duck】
Catalog
One 、 The most commonly used address mode of memory and interface of Microcomputer
Four 、 Direct memory access (DMA)
5、 ... and 、 I / O processor (IOP)
7、 ... and 、 Test method 1: Characteristics of various inputs and outputs
One 、 The most commonly used address mode of memory and interface of Microcomputer
1、 Unified addressing

2、 Address independently

Two 、 Direct program control
1、 Concept
- Direct program control refers to the input of peripheral data / The output process is in CPU Completed under the control of the execution program .
- This method is divided into unconditional transmission and long beard query ;
2、 Unconditional transmission
- Peripheral data is always ready , It can receive unconditionally at any time CPU Output data sent ;
- Can also unconditionally report to CPU Provide data ;
3、 Program query method
- In this way ,CPU Relevant procedures need to be implemented , To see if the data is ready ; So this kind of query efficiency is very low ;
- adopt CPU Execute programs to query the status of peripherals , Determine whether the peripheral is ready to receive data or to CPU Input data .
- According to the state of the peripheral ,CPU It also provides targeted input and output services for peripherals ;
- Usually , There can be many different peripherals in a computer system , If these peripherals work in query mode , be CPU These peripherals should be queried one by one , When you find out which peripheral is ready, you can service that peripheral ;
- This way, CPU Regular training is needed I/O The state of the system , To reduce the CPU The efficiency of , And it cannot make real-time response to external emergencies ;
3、 ... and 、 Interrupt mode
1、 Definition
- Return some interrupted signals to CPU,CPU Temporarily suspend the implementation of the current procedure , Turn to the interrupt handler that serves a random situation ;
- Automatically resume the execution of the original program after processing ;
2、 Purpose
- In order to reduce the number of programs in direct control mode CPU Wait time and improve the degree of parallel work of the system ;
- Used to control peripheral devices and memory and CPU The data transmission between is called interrupt mode ;
3、 The essence
- Program switching ;
4、 Implementation method
- Save breakpoints , Protection site ;
- Restore the scene , Back to breakpoint ;
5、 Time
- Switch at the end of an instruction ;
- Save the integrity of the program ;
6、 characteristic
- It's random ;
7、 Treatment process
- Wake up the blocked driver ;
- Protect the interrupted process CPU Environmental Science ;
- Analyze the cause of the interruption , Transfer to the corresponding device interrupt handler ;
- Interrupt processing ;
- Recovery is interrupted i Site of process ;
Four 、 Direct memory access (DMA)
- Direct memory access (DMA) It refers to data in memory and I/O Direct block transfer between devices ;
- That is, in memory and I/O The process of transferring a data block between devices , Unwanted CPU Any interference in ;
- It only needs CPU Start at the beginning of the process ( That is, send... To the equipment “ Send a piece of data ” The order of ) And the end of the process (CPU Know whether the process is finished and whether the next operation is ready by polling or interrupt ) Time processing , The actual operation is controlled by DMA Hardware direct execution complete ;
- CPU Do something else during this transmission ;
- DMA To reduce the CPU Yes I/O Control of operation , bring CPU The efficiency of .
5、 ... and 、 I / O processor (IOP)
- Is a processor with special functions , Also known as channel mode ;
- It shares CPU Part of the function , It can realize the unified management of peripheral devices , Complete the data transmission between peripheral devices and main memory ;
- The channel mode is greatly improved CPU Work efficiency , However, this efficiency improvement is at the cost of adding more hardware ;
6、 ... and 、 I / O control

7、 ... and 、 Test method 1: Characteristics of various inputs and outputs

边栏推荐
- shared_ Repeated release heap object of PTR hidden danger
- 1041 Be Unique
- Full Permutation Code (recursive writing)
- 1039 Course List for Student
- Over fitting and regularization
- QQ computer version cancels escape character input expression
- SPI 详解
- Flutter Web 硬件键盘监听
- 884. Uncommon words in two sentences
- 传统数据库逐渐“难适应”,云原生数据库脱颖而出
猜你喜欢

R语言【数据集的导入导出】
![[article de jailhouse] jailhouse hypervisor](/img/f4/4809b236067d3007fa5835bbfe5f48.png)
[article de jailhouse] jailhouse hypervisor

Scope of inline symbol

Leetcode-6110: number of incremental paths in the grid graph

Sqlmap tutorial (II) practical skills I

Appium automation test foundation - Summary of appium test environment construction
![[jailhouse article] performance measurements for hypervisors on embedded ARM processors](/img/c0/4843f887f77b80e3b2329e12d28987.png)
[jailhouse article] performance measurements for hypervisors on embedded ARM processors

Analysis of backdoor vulnerability in remote code execution penetration test / / phpstudy of national game title of national secondary vocational network security B module

Real time clock (RTC)

liunx启动redis
随机推荐
Introduction to convolutional neural network
Règlement sur la sécurité des réseaux dans les écoles professionnelles secondaires du concours de compétences des écoles professionnelles de la province de Guizhou en 2022
[rust notes] 17 concurrent (Part 1)
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
CF1637E Best Pair
A reason that is easy to be ignored when the printer is offline
做 SQL 性能优化真是让人干瞪眼
【Rust 笔记】15-字符串与文本(下)
Common optimization methods
网络工程师考核的一些常见的问题:WLAN、BGP、交换机
Daily question 2006 Number of pairs whose absolute value of difference is k
对for(var i = 0;i < 5;i++) {setTimeout(() => console.log(i),1000)}的深入分析
leetcode-556:下一个更大元素 III
927. Trisection simulation
2022年贵州省职业院校技能大赛中职组网络安全赛项规程
LeetCode 0107.二叉树的层序遍历II - 另一种方法
Doing SQL performance optimization is really eye-catching
Appium自动化测试基础 — Appium测试环境搭建总结
6. Logistic model
【Rust 笔记】16-输入与输出(下)