‎2021-10-11 05:29 AM
I am having issue of ADC and DAC, my ADC section work fine with DMA without Activation of DAC, but when i start to give DAC output it will directly affect to my adc count .i don't know what can i do because i am beginner for STM controller. Controller i used is STM32F105vct6
‎2021-10-11 05:36 AM
What kind of sample rates are you using for the ADC / DAC ?
Are they paced via a TIM ?
What are the sizes of the DMA buffers ?
How frequently are you interrupting ?
‎2021-10-11 05:54 AM
What kind of sample rates are you using for the ADC / DAC ?
ADC is used in continuous conversion mode,total 2 channel are used and it interrupt with DMA. (void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc))this handler are used for conversion completion.
Are they paced via a TIM ?
NO
and for DAC- it is used in polling mode by using HAL_DAC_SetValue(&hdac, DAC_CHANNEL_1,DAC_ALIGN_12B_R,finalDAC);
‎2021-10-11 06:24 AM
and also when i read the manual i see below comment which i m not getting,what should i do in cubemx
note:- Once the DAC channelx is enabled, the corresponding GPIO pin (PA4 or PA5) is
automatically connected to the analog converter output (DAC_OUTx). In order to avoid
parasitic consumption, the PA4 or PA5 pin should first be configured to analog (AIN).
‎2021-10-12 02:02 AM
Issue Solved :D ,hardware issue is detected