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.

[参考译文] AM2634:有关在 Am2634 中通过 DMA 接收数据的问题

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1617683/am2634-issue-regarding-data-reception-through-dma-in-am2634

器件型号: AM2634

尊敬的 TI 团队

我们使用 DMA 进行 UART 接收、在接收数据时、我们需要根据计数等待缓冲区中接收整个数据。但我们需要一种场景  
我们需要知道到达 DMA 缓冲区中的字节数量、以便我们可以进一步继续。我们不能逐个块使用块并反复重新布设 UART_READ。
您能否告知是否有针对此场景的推荐方法或解决方案?  
谢谢、此致  
Sai Teja  

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

    您好、
    您可以读取以下寄存器来获取所需的值:

    如果您的传输大小设置为 256、则接收值为 (256-ACNT)