Accessing two channels of i2s

Hi,I am using NRF5340 AUDIO DK BOARD and Ihave been trying to access i2s mic and I want to transfer the mic data to Amplifier .Is it possible to do with single I2s ? As I observe nrf5340  has two channels.If it possible how to configure pins for mic and amplifier as I have been using SCK,SDIN,LRCK but if want to configure for Amplifier what pins can I use for it as it doesn't have other SCK,LRCK pins.And I want to know difference between MCK and SCK in i2s configuration,Ihave attached the i2s configuration below.

Parents Reply Children
  • So will it be possible getting mic data and sending mic data to Amplifier with same SCK,LRCK pins (p0.14,p0.16) for both,because I used SAI protocol in STM there it has 2 Channels of SAI A,SAI B which is two channel ,so it has dedicated pins for each channel where i have used one for MIC data collection and other channel for Amplification .So I want to know how in NRF i2s work with 2 channels where it has single clocks .I am using MIC SPH0645LM4H and Amplifier TAS2562YFPT

     
  • Hello,

    I have not tried any of these components. But you want to receive I2S from the microphone, and forward it to the amplifier, right?

    The microphone looks pretty straight forward, but I am not sure about the amplifier. It looks like an I2C device, not SPI. Is that right?

    Best regards,

    Edvin

  • 1.Yes I need to transfer to amplifier  

    2.Yes ,It uses I2s Tx for audio and uses I2C for accessing Registers in Amplifier.

    I am using sampling rate of 16khz for getting mic data.I want to know how I can achieve getting Mic data and sending to amplifier with this I2S 2-channels of NRF5340 with my sampling rate as per following connection.How I can do this and what type of I2S fmt i need to use as I am getting samples continuously and I need to do amplification for that samples.

Related