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.

[参考译文] MSPM0G3507:MSPM0G3507

Guru**** 2035740 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1381542/mspm0g3507-mspm0g3507

器件型号:MSPM0G3507

工具与软件:

使用 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

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您的明确帮助!