I2S codec mono channel configure in LPC55S69

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2S codec mono channel configure in LPC55S69

ソリューションへジャンプ
1,164件の閲覧回数
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,122件の閲覧回数
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,123件の閲覧回数
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