SSM2518 audio ampifier is configured in I2C programmable mode with SAMOD and ADDR pin driven low.I2C is working fine but unable to get sound at the speaker side only noise is coming at the output. Data from microcontroller send to SSM2518 through I2S PCM protocol. Bit_Clock , MCLK and data is coming at the input of SSM2518.
Following are the parameter settings for I2C and SSM2518 registers.
Serial audio interface format - Mono PCM
Sampling frquency - 8KHz
Master clock select -256*fs
Bit clock -141KHz [Observed on Oscilloscope-122KHz]
Master clock -2.13MHz [Observed on Oscilloscope-1.96MHz]
LRCLK -8.33Khz [Observed on Oscilloscope-7.67KHz]
I2C Address -0x68
Register 0x00 =0x04
Kindly give suggesstions on any configuration need to be changed or something is missing in configuration or any application example is avialabe then please share it.
I have not checked your register settings. I just noticed that your frequencies are wrong.
For a sampling frequency of 8kHz then here is what you should be sending.
Master Clock (256x fs ) = 2.048MHz.
LRCLK should be 8kHz exactly.
Bit Clock needs to be 64 x fs which would be 512KHz.
Thank you for the response.