2021-03-15 05:16 AM
2021-03-15 05:49 AM
Insufficient info
Paul
2021-03-15 05:52 AM
2021-03-15 05:54 AM
What voltage do you apply to the ADC ?
Signal frequencies ?
Generator output impedance ?
Do you have a common ground connected ?
2021-03-15 09:29 PM
im feeding 1khz 1 vpp signal from waveform generator. the waveform generator has 50 ohm impedance. i have common ground between the waveform generator and the stm32 board.
can u please help me with the code.?
Or u have any suggestion regarding the code.
2021-03-15 11:47 PM
That 1Vpp signal must translate into a voltage between 0V...+Vref (probably 3.3V) at the ADC inputs.
Negative voltages or voltages beyond VDDA might produce effects as you observe.
I think the F44x was one of the first families receiving only Cube/HAL treatment. I don't use Cube personally.
I would say, create a Cube/HAL project to read the ADC at an appropriate sampling rate, and to init the DAC properly.
The simplest way is to read the ADC value in the EOC/EOS interrupt, and write it directly the the DAC output.
The DAC output is high impedance, even with "buffer on" (1MOhm or 15kOhm), be aware when checking.
When validating the ADC, I always started with potentiometer, and a known direct voltage.