- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Support team,
I want to kow how to use XMC1402 UART DMA recive data? Would you please provide sample code for me?thanks!
Solved! Go to Solution.
- Labels:
-
XMC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @William_Zion
I think this example meets your requirements: mtb-example-xmc-dma-m2m , if this not, you can find other examples in our Github: Infineon Github .
I think that you can follow this example to add an interrupt to your codes, when received 8 bytes data(or other requirements), the program will enter the interrupt and transmit the data. Hope this can help you.
Regards,
Owen_Su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @William_Zion ,
Here you can find the examples in Github: mtb-example-xmc-uart-dma
This example demonstrates how to stream data using DMA via UART based on Universal Serial Interface Channel (USIC) to an external terminal. Hope this can help you.
Regards,
Owen_Su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Owen_Su,
Thanks for your answer. I have download this examples, but just a UART TX DMA example. Could you have XMC1402 UART DMA recive data example?Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @William_Zion ,
Here is the link: mtb-example-xmc-dma . Hope this can help you.
Regards,
Owen_Su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Owen_Su,
Thanks for your answer. This example is to use the 1ms time to fetch DMA data, so there will be a 1ms delay.I need realtime process recived data. For example: I set the size of DMA buffer is 16Byte, when recived 8 byte data, it produce a interrupt event, then i can realtime process this data. How can i realize this funtion? thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @William_Zion
I think this example meets your requirements: mtb-example-xmc-dma-m2m , if this not, you can find other examples in our Github: Infineon Github .
I think that you can follow this example to add an interrupt to your codes, when received 8 bytes data(or other requirements), the program will enter the interrupt and transmit the data. Hope this can help you.
Regards,
Owen_Su