I2S codec mono channel configure in LPC55S69

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2S codec mono channel configure in LPC55S69

Jump to solution
1,158 Views
ujwal_kumar_N_L
Contributor III

Hi community ,

I am using LPC55S69 and the codec WM8904. The codec is configured as Stereo which uses Left and Right channel .Also the basic configuration are :-

wm8904_config_t wm8904Config = {
.i2cConfig = {.codecI2CInstance = BOARD_CODEC_I2C_INSTANCE, .codecI2CSourceClock = BOARD_CODEC_I2C_CLOCK_FREQ},
.recordSource = kWM8904_RecordSourceLineInput,
.recordChannelLeft = kWM8904_RecordChannelLeft2,
.recordChannelRight = kWM8904_RecordChannelRight2,
.playSource = kWM8904_PlaySourceDAC,
.slaveAddress = WM8904_I2C_ADDRESS,
.protocol = kWM8904_ProtocolI2S,
.format = {.sampleRate = kWM8904_SampleRate48kHz, .bitWidth = kWM8904_BitWidth16},
.mclk_HZ = DEMO_I2S_MASTER_CLOCK_FREQUENCY,
.master = false,
};

I have tried changing the parameters but i still the same out of the music file ,there isn't any distortion or any error .Does that mean the codec auto configures these parameter .
PROBLEMS:

  1. What are the calculation behind these parameter ?
  2. how to i configure the module to mono channel output ?

I have used the SDK example of i2s_tranfer_dma example as my code .

Thank you and regards 
ujwal

#LPC55S69

 

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
1,116 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Q1)What are the calculation behind these parameter ?

>>>>>For the structure wm8904_config_t wm8904Config , the codec WM8904 has I2C interface, the MCU can configure the codec with the I2C interface, the slaveAddress is the I2C device address of the codec, with the address, the LPC5569 can write the register of codec.

 

Q2)how to i configure the module to mono channel output

>>>>First of all, pls check the data sheet of codec WM8904 if the codec support mono channel, of course, the I2S of LPC5569 supports mono channel.

Hope it can help you

BR

XiangJun Rong

 

View solution in original post

1 Reply
1,117 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Q1)What are the calculation behind these parameter ?

>>>>>For the structure wm8904_config_t wm8904Config , the codec WM8904 has I2C interface, the MCU can configure the codec with the I2C interface, the slaveAddress is the I2C device address of the codec, with the address, the LPC5569 can write the register of codec.

 

Q2)how to i configure the module to mono channel output

>>>>First of all, pls check the data sheet of codec WM8904 if the codec support mono channel, of course, the I2S of LPC5569 supports mono channel.

Hope it can help you

BR

XiangJun Rong