This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
使用 DMA 时、是否需要使用中断? 例如在使用 UART 时。
我要每1ms 为 UART RX 启动一个 DMA、然后在 接下来的1ms、我要清空 DMA 目标表、然后在接下来的1ms 内再次启动 DMA?
有可能吗?
谢谢、此致、
John
尊敬的 John:
您不需要使用中断来执行 DMA 交互、在我们的示例 uart_rx_multibyte_fifo_dma_interrupts.c 中、我们使用 DMA 完成中断来了解交易何时完成。 如果您想对刚刚收到的数据进行一些处理、我想说这是典型的情形。
示例本身将使用 UART RX 触发 DMA、因此无需 CPU 交互或软件即可将 DMA 传输数据从 UART 传输到缓冲区。 我认为您的用例是可行且合理的。
此致、
Luke