cancel
Showing results for 
Search instead for 
Did you mean: 

DMA_DAC Problem

sanjib
Associate III
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..................
4 REPLIES 4
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
Up vote any posts that you find helpful, it shows what's working..
sanjib
Associate III
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
Associate III
Posted on June 09, 2014 at 08:21

Thanks Ok I got that

sanjib
Associate III
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