How to synchronize the DAC and ADC?

escher
Posts: 10
Joined: Mon Feb 18, 2019 11:12 am

How to synchronize the DAC and ADC?

Postby escher » Wed Feb 27, 2019 6:47 pm

I'm trying to do some signal processing on a steady-state cosine signal emitted by the DAC (whose memory buffer is fed using the I2S driver). I hence need to synchronize my reading from the ADC with the DAC signal so that I can calculate phase difference.

Is there a way to synchronize the DAC and ADC such that I can do this? The I2S DAC/ADC example shows how to read a buffer with the ADC and output a buffer with the DAC sequentially, but I would like to do that at the same time.

I note that many dedicated ADC chips have a sync clock input (so that multiple ADCs may be synchronized) - do the ESP32 DACs and ADCs have this? I haven't seen it mentioned in the API.
Last edited by escher on Fri Mar 01, 2019 8:18 pm, edited 1 time in total.

Who is online

Users browsing this forum: Majestic-12 [Bot], Sang_Huynh and 224 guests