cancel
Showing results for 
Search instead for 
Did you mean: 

DMA underrun error detection

raiyans
Associate II
Posted on March 16, 2017 at 18:29

Hello all,

I am using the DMA (direct memory access) unit to generate a sine wave. I flip between the frequencies often in my application. Sometimes the output signal get stuck at high frequency when I move fast from high 80Hz Signal to low 10Hz signal.  I suspect this is caused by an overrun error in the DMA. I am trying to use the HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandlerTypeDef *hdac); but cant really figure out how would I go about using it since there are no examples online.

Can someone please suggest some guidance on how I can implement this function in my code.

I am using an stm32f4 mico by the way

Best Regards and thanks in advance.

#dac #dma #stm32f4
0 REPLIES 0