I2S codec mono channel configure in LPC55S69

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

I2S codec mono channel configure in LPC55S69

跳至解决方案
1,157 次查看
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

 

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,115 次查看
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

 

在原帖中查看解决方案

1 回复
1,116 次查看
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