Home >Common Problem >What are the control methods for information transfer between the host and peripheral devices?

What are the control methods for information transfer between the host and peripheral devices?

青灯夜游
青灯夜游Original
2021-09-22 17:28:3413740browse

The control methods for information transmission between the host and peripheral devices are: 1. Unconditional transmission, suitable for peripherals that are always in a ready state; 2. Query mode transmission; 3. Interrupt mode transmission; 4. Direct memory access.

What are the control methods for information transfer between the host and peripheral devices?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

There are four control methods for data transmission between the host and peripherals:

  • Unconditional transmission

  • Query transfer

  • Interrupt mode transfer

  • Direct memory access (DMA, Direct Memory Access)

1. Unconditional transmission method

Suitable for peripherals that are always in a ready state

Advantages: Simple software and interface hardware

Disadvantages: Only applicable to simple peripherals, narrow scope of application

2. Query mode transmission

Applicable to peripherals and not always ready , and the requirements for transmission rate and transmission efficiency are not high.

Requirements for peripherals: device status information should be provided

Requirements for interfaces: status ports need to be provided

Advantages: The software is relatively simple

Disadvantages: The CPU efficiency is low, the real-time performance of data transmission is poor, and the speed is slow

3. Interrupt mode transmission

The CPU efficiency is high, the real-time performance is good, and the speed is fast; programming is relatively complex complex.

4. Direct memory access

Data transmission is controlled by DMA hardware. Data is directly exchanged between memory and peripherals, which can reach very high transfer rate (up to several MB/second).

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What are the control methods for information transfer between the host and peripheral devices?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is the sip protocol?Next article:What is the sip protocol?