cancel
Showing results for 
Search instead for 
Did you mean: 

What is the DMA Usart received bits counter register?

mbagh.1
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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 

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.

View solution in original post

2 REPLIES 2

NDTR register is key.

STTwo-32
ST Employee

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 

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.