Hello!
I am working with TMS320C5515 EVM under CCSv5.3.
I would want to know how can I change the sampling Frequency of AIC3204. I was developing a program and I thought that It was configured to 48KHz sampling Frequency. However, when entering with a 1KHZ tone input, in the output I get a signal that would be of 1 Khz If the sampling frequency was 24KHz. not 48KHz.
I want to know If I have the sampling frequency of the aic3204 bad configured, or If there are another problem different by that one.
I put the configuration here:
AIC3204_rset( 0, 0x00 );
AIC3204_rset( 27, 0x00 );
AIC3204_rset( 4, 0x07 );
AIC3204_rset( 6, 0x20 );
AIC3204_rset( 7, 0 );
AIC3204_rset( 8, 0 );
AIC3204_rset( 5, 0x92 );
AIC3204_rset( 13, 0x00 );
AIC3204_rset( 14, 0x80 );
AIC3204_rset( 20, 0x80 );
AIC3204_rset( 11, 0x88 );
AIC3204_rset( 12, 0x82 );
AIC3204_rset( 18, 0x88 );
AIC3204_rset( 19, 0x82 );
and the function is:
nt16 AIC3204_rset( Uint16 regnum, Uint16 regval )
{
Uint8 cmd[2];
cmd[0] = regnum & 0x007F;
cmd[1] = regval;
return EVM5515_I2C_write( AIC3204_I2C_ADDR, cmd, 2 );
}