Skip to main content
Visitor II
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

    This topic has been closed for replies.
    Best answer by STTwo-32

    Hello @mbagh.1 

    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

    Graduate II
    August 18, 2024

    NDTR register is key.

    STTwo-32Answer
    Technical Moderator
    August 18, 2024

    Hello @mbagh.1 

    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