Question
STM32F303 ADC Dual Mode DMA Halfcomplete Interrupt
Posted on August 11, 2014 at 10:21
Hi All,
i have a strange Problem with my Application using TIM1 CCR4 as TRGO Signal to trigger ADC1/2 (seems to work). The ADCs are in Regular and Injected Simultanous mode. (Dual Mode bits = 0x01). The ADCs are clocked directly from AHB. MDMA is Halfword.DMAEN is set, CONT is set. In CCR DMACFG is set to Circular Mode. My Problem now is when i start the ADCs and they get triggered i am not able to reset the DMA int flags for DMA1 channel 1 which i use. I read 3 from DMA1->ISR, for General, Half, and Full Interrupt. And want to reset the flags by writing 3 back to DMA1->ICFR but the Flags stay 1. In non Circular Mode every thin is fine, but then i need to trigger the adc by software and do not get timer synchonous sampling.Has anyone an idea what i am doing wrong in circular mode?Regards Alex #adc #dma #adc_dual