Skip to main content
August 18, 2024
Solved

What is the DMA Usart received bits counter register?

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

    This topic has been closed for replies.
    STTwo-32
    STTwo-32Best answer
    ST 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.

    2 replies

    Michal Dudka
    Lead
    August 18, 2024

    NDTR register is key.

    STTwo-32
    STTwo-32Best answer
    ST 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.