This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:cs:chapter_3_13 [2025/01/08 21:10] – ktokarz | en:multiasm:cs:chapter_3_13 [2025/01/08 21:16] (current) – ktokarz | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| The process of data transfer is done in some steps, Let us consider the situation when a peripheral has some data to be transferred. | The process of data transfer is done in some steps, Let us consider the situation when a peripheral has some data to be transferred. | ||
| - | * peripheral signals the request to transfer data. | + | * peripheral signals the request to transfer data (DREQ). |
| - | * DMA controller forwards the request to the processor. | + | * DMA controller forwards the request to the processor |
| - | * Processor | + | * The processor |
| - | * DMA controller generates the address on the address bus and sends the acknowledge signal to the peripheral. | + | * DMA controller generates the address on the address bus and sends the acknowledge signal to the peripheral |
| * Peripheral sends the data by the data bus. | * Peripheral sends the data by the data bus. | ||
| * DMA generates a write signal to store data in the memory. | * DMA generates a write signal to store data in the memory. | ||
| Line 19: | Line 19: | ||
| * If the counter reaches zero data transfer stops. | * If the counter reaches zero data transfer stops. | ||
| - | Everything is done without any action of the processor, no program is fetched and executed. Because everything is done by hardware the transfer can be done in one memory access cycle. Data transfer by processor requires program execution and two data transfers: one from the peripheral and another to the memory. The system with an active DMA controller is presented in Fig.{{ref> | + | Everything is done without any action of the processor, no program is fetched and executed. Because everything is done by hardware the transfer can be done in one memory access cycle so much faster than by the processor. Data transfer by processor |
| <figure DMAactive> | <figure DMAactive> | ||