Skip to main content
hokus
Associate
July 25, 2016
Question

DAC DMA underrun interrupt on STM32F4-Discovery

  • July 25, 2016
  • 4 replies
  • 1275 views
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.

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    July 25, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    hokus
    hokusAuthor
    Associate
    July 25, 2016
    Posted on July 25, 2016 at 15:58

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

    Tesla DeLorean
    Guru
    July 25, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    hokus
    hokusAuthor
    Associate
    July 25, 2016
    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.