Skip to main content
Amane.1
Associate
October 11, 2021
Question

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

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

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
October 11, 2021

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Amane.1
Amane.1Author
Associate
October 11, 2021

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
Amane.1Author
Associate
October 11, 2021

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
Amane.1Author
Associate
October 12, 2021

Issue Solved :D ,hardware issue is detected