Loading...
 
Skip to main content

System Workbench for STM32


Send data from ADC to CS43L22 DAC trough i2s.

Hi guys! In my project Im reading samples with the adc at 48Khz using timer interrupts and adcConvCallback, load them in a buffer of 256 samples and when the buffer is full I send it via i2s to the DAC . Im using two buffers, when the buffer A is full i send it and start saving samples in the buffer B, when its full I swap again so I have 256 samples available at any time.

My problem is that en every swap of buffers I heard a "plop" noise from the dac. Do you know how can I avoid that? It seems to sound at every time that a new buffer is sended via HAL_I2S_Transmit() . Im not using interrupts in the I2s, just call it at every time I have a full buffer.