Skip to main content
August 18, 2024
Solved

What is the DMA Usart received bits counter register?

  • August 18, 2024
  • 2 replies
  • 689 views

I used DMA to read from USART, how can i know how many bytes are currently received by this and from which register i should read this number

    Best answer by STTwo-32

    Hello @unknown 

    For such a use case, you have to use the DMA_SxNDTR register, more details available on the 1.1.12 part of the AN4031.

    Best Regards.

    STTwo-32 

    2 replies

    Michal Dudka
    Lead
    August 18, 2024

    NDTR register is key.

    STTwo-32
    STTwo-32Best answer
    Technical Moderator
    August 18, 2024

    Hello @unknown 

    For such a use case, you have to use the DMA_SxNDTR register, more details available on the 1.1.12 part of the AN4031.

    Best Regards.

    STTwo-32 

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.