Skip to main content
sanjib
Associate III
June 9, 2014
Question

DMA_DAC Problem

  • June 9, 2014
  • 4 replies
  • 891 views
Posted on June 09, 2014 at 06:07

I am updating the tim2 arr by DMA ...with the update of timer 2 DAC  will get triggered. I have checked the DAC o/p with CRO by it's corresponding pin and I am able to see the Sine wave but the problem is it is not entering into the DMA1_Stream5_IRQHandler.....Can any body say me why is it so?

I have attache the file..................
    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    June 9, 2014
    Posted on June 09, 2014 at 06:42

    void DMA1_Stream5_IRQHandler(void)

    {

    if(DMA_GetITStatus(DMA1_Stream5, DMA_IT_HTIF0))

    {

    /**

    * Clear DMA Stream Half Transfer interrupt pending bit

    **/

    DMA_ClearITPendingBit(DMA1_Stream5, DMA_IT_HTIF0);

    }

    if(DMA_GetITStatus(DMA1_Stream5, DMA_IT_TCIF0))

    {

    /**

    * Clear DMA Stream Total Transfer complete interrupt pending bit

    **/

    DMA_ClearITPendingBit(DMA1_Stream5, DMA_IT_TCIF0);

    STM_EVAL_LEDToggle(LED3);

    }

    }

    So FIVE and not ZERO - DMA_IT_HTIF0 etc

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    sanjib
    sanjibAuthor
    Associate III
    June 9, 2014
    Posted on June 09, 2014 at 08:20

    I didn't understand I am doing the same right ...the same what you are writing

    sanjib
    sanjibAuthor
    Associate III
    June 9, 2014
    Posted on June 09, 2014 at 08:21

    Thanks Ok I got that

    sanjib
    sanjibAuthor
    Associate III
    June 10, 2014
    Posted on June 10, 2014 at 14:26

    Hi all In my below code which is attached It is entering into the DMA1_Stream5_IRQHandler in case 0 but not in case 1 and case 3 can anybody say me why?

    ________________

    Attachments :

    the_recent_one.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I02d&d=%2Fa%2F0X0000000bSf%2FYdmW7.DNX3ZOGcPczlM7SrTWEH6rpqR_2QRIKFFRgvE&asPdf=false