Other Parts Discussed in Thread: TAS2559
Tool/software: Code Composer Studio
Hi
I meet a problem when i use c6748‘ i2c bus to read tas2559.
According to the 2559‘ user manual “This permits the I2C address of TAS2559 to be 0x4C(7-bit) through
0x4F(7-bit). ......After receiving the TAS2559 address and the read/write bit, the device responds with an acknowledge bit. The
master then sends the internal memory address byte, after which the device issues an acknowledge bit. The
master device transmits another start condition followed by the TAS2559 address and the read/write bit again.
This time, the read/write bit is set to 1 ”
so first i2c slave address is 0x98(10011000),the 2nd slave address is 0x99(10011001).But when set like this,i can not receive ack during 2nd slave address writing
unsigned char I2CRegRead2559(unsigned int baseAddr,unsigned char regAddr)
{
slaveData[0] = regAddr;
I2CSendBlocking(baseAddr, 1);
// reset slave addr
I2CMasterSlaveAddrSet(baseAddr, 0x99);
I2CRcvBlocking(baseAddr, 1);
return (slaveData[0]);
}
