Other Parts Discussed in Thread: CC2564
Hi,
We are using CC2564MODA bluetooth modules audio interface with Telit GSM LE910V2.
For Telit modem i am getting 8khz frame clock, 16bit data and 256khz bit clock.
We have configured the CC2564MODA module as slave I2S.
I have connected HSP profile headset to CC2564. in Call i am able to hear the voice but MIC is not working (heavy noise is coming).
my bluetooth codec config code is bellow :
*******************************************************************************************
memset(CommandBuffer, 0, 34);
/* PCM clock rate (kHz) and direction (0 = output, 1 = input) */
/* out from Talit in to cc2564 */
p_cmd = CommandBuffer;
UINT16_TO_STREAM(p_cmd, 256);
CommandBuffer[2] = 0x01;
/* Frame-sync freq (Hz) and duty cycle. For duty cycle, 0 will */
/* generate 50% duty cycle, >= 1 uses number of PCM clock cycles. */
p_cmd = &CommandBuffer[3];
UINT32_TO_STREAM(p_cmd, 8000000);
p_cmd = &CommandBuffer[7];
UINT16_TO_STREAM(p_cmd, 0x0000);
/* Frame-sync edge: 0 = rising edge, 1 = falling edge */
CommandBuffer[9] = 0x00;
/* Frame-sync polarity: 0 = active high, 1 = active low */
CommandBuffer[10] = 0x00;
/* channel 1 data out size, offset, and edge (0 = rise, 1 = fall) */
/* Talit is riseing */
p_cmd = &CommandBuffer[12];
UINT16_TO_STREAM(p_cmd, 16);
p_cmd = &CommandBuffer[14];
UINT16_TO_STREAM(p_cmd, 1);
CommandBuffer[16] = 0x00;
/* channel 1 data in size, offset, and edge (0 = rise, 1 = fall) */
p_cmd = &CommandBuffer[17];
UINT16_TO_STREAM(p_cmd, 16);
p_cmd = &CommandBuffer[19];
UINT16_TO_STREAM(p_cmd, 1);
CommandBuffer[21] = 0x00;
/* channel 2 data out size, offset, and edge (0 = rise, 1 = fall) */
p_cmd = &CommandBuffer[23];
UINT16_TO_STREAM(p_cmd, 16);
p_cmd = &CommandBuffer[25];
UINT16_TO_STREAM(p_cmd, 17);
CommandBuffer[27] = 0x00;
/* channel 2 data in size, offset, and edge (0 = rise, 1 = fall) */
p_cmd = &CommandBuffer[28];
UINT16_TO_STREAM(p_cmd, 16);
p_cmd = &CommandBuffer[30];
UINT16_TO_STREAM(p_cmd, 17);
CommandBuffer[32] = 0x00;
*******************************************************************************
Thanks,
shravan kumar