Difference DMA and IT?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 6:54 AM
Hi,
i am a newby with STM32
what is the difference between the three functions:
HAL_UART_Transmit_IT,
HAL_UART_Transmit_DMA,
HAL_UART_Transmit
Solved! Go to Solution.
- Labels:
-
STM32Cube MCU Packages
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 7:04 AM
no prefix - uses "polling" or "synchronous" mode; the MCU waits for the operation to complete, while doing so it can't do any other useful thing.
_IT prefix - uses the asynchronous "interrupt" mode, the peripheral will issue MCU interrupts when it needs attention (for example when UART needs another byte to be fed), meanwhile the MCU can work on other things. [Click Show More]
_DMA prefix - use the asynchronous "DMA" mode - the peripheral will do all the work by itself, not disturbing the main MCU until half/full of the operation is complete, then it will generate an interrupt.
Some links for you:
https://stackoverflow.com/questions/25318145/dma-vs-interrupt-driven-i-o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 7:04 AM
no prefix - uses "polling" or "synchronous" mode; the MCU waits for the operation to complete, while doing so it can't do any other useful thing.
_IT prefix - uses the asynchronous "interrupt" mode, the peripheral will issue MCU interrupts when it needs attention (for example when UART needs another byte to be fed), meanwhile the MCU can work on other things. [Click Show More]
_DMA prefix - use the asynchronous "DMA" mode - the peripheral will do all the work by itself, not disturbing the main MCU until half/full of the operation is complete, then it will generate an interrupt.
Some links for you:
https://stackoverflow.com/questions/25318145/dma-vs-interrupt-driven-i-o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 7:06 AM
I good question tells what you have researched yourself to clarify the question? IT probably stands here for interrupt, dma for a dma transfer and the last transfer probably means a polling transfer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 7:39 AM
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 7:39 AM
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 8:08 AM
Depending on which particular familie's Cube you are using, you should select the appropriate manual:
and go to "How to use HAL drivers" subchapter of the "Overview of HAL drivers" chapter.
JW
