This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

caputer audio from codec with i2s master for 10 seconds?

my project need to recording audio data from codec continius for more than 10 senconds.i want use nrf5340 to do it.

the codec is tlv320aic3109 or wm8731.I have looked  “easydma and i2s" chapter  of nrf5340 datasheet.

Then i found a question about if is it possible to recording 10 seconds continius audio data with 44.1khz using i2s interface?

for example:

 i use a buffer[4096]  to receive 44.1khz frequence audio data,when the buffer is full,i2s automatically stoped.i have to trigger again to start the sample.

thus the continus process is interrupted.

Is my thinking correct?

Parents
  • Hi

    Most of the EasyDMA implementations are double buffered, which allows you to configure the next buffer while the current buffers are being read/written. This means that as soon as the first buffers fill up the I2S peripheral will automatically switch to the next set of buffers, ensuring that there is no gap in the communication. 

    You just have to provide two sets of buffers in the application. 

    Best regards
    Torbjørn

  • Hi

    Whether the above steps have been automatically completed in the I2S driver of the zephyr project?

  • Hi

    Yes, if you use the I2S driver you don't have to worry about these steps, you just have to make sure to feed the TX buffers and empty the RX buffers in time so that the the TX/RX buffers in the driver don't get empty/full (the TX buffers should never get empty, the RX buffers should never get full). 

    Best regards
    Torbjørn

Reply
  • Hi

    Yes, if you use the I2S driver you don't have to worry about these steps, you just have to make sure to feed the TX buffers and empty the RX buffers in time so that the the TX/RX buffers in the driver don't get empty/full (the TX buffers should never get empty, the RX buffers should never get full). 

    Best regards
    Torbjørn

Children
Related