2021-02-15 08:31 AM
Hi,
I have a random amplitude signal with 10 us period, coming from DAC channel 1 of the STM32 connected to some block with amplifier and switches. The block is finally connected to an input channel of the ADC within the STM32. The block has a delay time of about 3 us. Can you anyone please suggest how to know when the acquisition of ADC data sample has started with the processed data from the DAC. Presently I am using HAL function with DMA for the DAC and ADC to serial port. However the ADC data does not look right. Is there any flag for the ADC where I can keep checking my data points.
Many thanks.
2021-02-15 09:42 AM
Add a 3us timer. Turn on this timer when starting DAC. Start acquisition of ADC in timer callback?
However the ADC data does not look right. Is there any flag for the ADC where I can keep checking my data points.
Is the ADC set properly? (speed, format, alignment...). you could use known data to check it.