cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f105 how to use ADC and DAC both parallel without affect each other

Amane.1
Associate II

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

4 REPLIES 4

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 ?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Amane.1
Associate II

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);

Amane.1
Associate II

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).

Amane.1
Associate II

Issue Solved :D ,hardware issue is detected