uart dma transfer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
99bobby
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

symptom

I would like to refer to the example code of TC397 (UART_DMA_TRASFER_1_KIT_TC397) for UART reception.

The example code is triggered by DMA interrupt every time one byte is received. I want to trigger the interrupt every time I get 3 bytes. I thought it would be possible to modify the following n_transfer to 3, but the test results show that the interrupt is still triggered every one byte. And the destination address is offset 3 bytes. What I want is not the destination offset. I just want to trigger the interrupt for each 3 bytes.

What can I do to implement this

1.png2.png4.png3.png

0 Likes
1 Solution
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hello,

I see the example configures ADICR.IRDV is zero, you need configure this based on the number of transfers for your use-case.

Thanks.

View solution in original post

0 Likes
1 Reply
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hello,

I see the example configures ADICR.IRDV is zero, you need configure this based on the number of transfers for your use-case.

Thanks.

0 Likes