Skip to main content
linas2
Associate III
November 28, 2012
Question

CS43L22 STM32F4discovery

  • November 28, 2012
  • 2 replies
  • 735 views
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 .

    This topic has been closed for replies.

    2 replies

    Andrew Neil
    Super User
    November 28, 2012
    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

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    linas2
    linas2Author
    Associate III
    November 28, 2012
    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