- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.