DMA-based data transfer method
A data transmission method and DMA controller technology, applied in the field of data transmission, can solve problems such as high data transmission efficiency and CPU interruption, and achieve the effect of avoiding low efficiency, avoiding performance degradation, and improving data transmission efficiency and performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0028] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0029] image 3 It is a schematic diagram of the data transmission process based on DMA in the present invention.
[0030] See image 3 , the data transmission method based on DMA provided by the present invention comprises the following steps:
[0031] Step S1: Initialize the external device, and set the DMA operation buffer (ring buffer) for each external device and then start the DMA controller; the information of the initialized device includes: the physical memory start address DATA_BUFFER_START_ADDRESS used to store data during the DMA operation, The data buffer length DATA_BUFFER_LENGTH and the address offset value DATA_OFFSET_ADDRESS used to indicate that the device has written the data in the DMA operation buffer relative to DATA_BUFFER_START_ADDRESS. Turn on the DMA controller after initializing the device. Next, the mutual interaction bet...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


