cancel
Showing results for 
Search instead for 
Did you mean: 

CS43L22 STM32F4discovery

linas2
Associate II
Posted on November 28, 2012 at 19:38

hello

Does any one know how to send sound data to headphone DAC on CS43L22 ?

main goal is to read data from mic, that use convolution with my low pass filter coefficients, and then send data to headphones.

Somehow i was unable to generate any frequency to CS43L22.

I have function for 16b sinus (int)(32767+32767*sinf(0.1*i))

if any one know how to send it to headphones would be very helpful.

And if some one knows how to read mic data, that would be supper .

2 REPLIES 2
Posted on November 28, 2012 at 20:17

''Does any one know how to send sound data to headphone DAC on CS43L22?''

 

http://www.cirrus.com/en/products/cs43l22.html

linas2
Associate II
Posted on November 28, 2012 at 20:37

I really don't what to rewrite all program from scratch.

it should be very easy function to do that. i know that in NXP LPC4330 read data from mic and send to dac takes only 4 lines of c code.

left = (LPC_I2S0->RXFIFO);
right = (LPC_I2S0->RXFIFO);
LPC_I2S0->TXFIFO = left;
LPC_I2S0->TXFIFO = right;

it should be something similar here, but i just can't find it