cancel
Showing results for 
Search instead for 
Did you mean: 

DAC DMA underrun interrupt on STM32F4-Discovery

hokus
Associate II
Posted on July 25, 2016 at 13:54

Hi. I have problem with finding interrupt subroutine which Is called when DAC DMA underrun interrupt event happen. There isn't any DAC IRQ in which I can check status like this:

if(DAC_GetITStatus(DAC_Channel_1, DAC_IT_DMAUDR) == SET){

}

thx for help,

cheers.

4 REPLIES 4
Posted on July 25, 2016 at 15:40

Doesn't it just share TIM6_DAC_IRQHandler ?              ; TIM6 and DAC1&2 underrun errors

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
hokus
Associate II
Posted on July 25, 2016 at 15:58

Can I use this handler even when using other timer for DAC ?

Posted on July 25, 2016 at 17:19

Can I use this handler even when using other timer for DAC ?

Why would it matter? You need to enable the TIM6_DAC interrupt in the NVIC, enable the IT flags in the DAC, and filter/qualify the source of the interrupt in the handler. You won't see any TIM6 interrupts unless you enable them in the TIM.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
hokus
Associate II
Posted on July 25, 2016 at 18:03

OK. For me it's quite strange that the same interrupt handler is used for two different peripherial.

Thx for help.