DMA underrun and overrun
Hello,
Thanks for wonderful support
I am working on STM32F407X mcu DMA program and want to understand when will DMA underrun and overrun happens. This is not explained in any of the ST documents even though the RM mentions this
>>>>>>>>>
When burst transfers are requested on the peripheral AHB port and the FIFO is used (DMDIS = 1 in the DMA_SxCR register), it is mandatory to respect the following rule to avoid permanent underrun or overrun conditions, depending on the DMA stream direction: If (PBURST × PSIZE) = FIFO_SIZE (4 words), FIFO_Threshold = 3/4 is forbidden with PSIZE = 1, 2 or 4 and PBURST = 4, 8 or 16. This rule ensures that enough FIFO space at a time will be free to serve the request from the peripheral.
>>>>>>>>>>>.
I wan to understand how using FIFO_Threshold = 3/4 when (PBURST × PSIZE) = FIFO_SIZE results in overrun or underrun. in which direction underrun happens ?
Thank you very much
