Hi TingHsuan, Apologies for the delay. Could you confirm if the C2000 target is only in receiver mode or also transmitter? You'll need the ' I2C_setOwnAddress ' function to set the own address for the I2C target. It's is compared against the target address sent by an I2C controller. I believe that l ine 290 is unnecessary if I2CB is only acting as the target as per your above comments. The example configures I2CA and I2CB as controller because there are four combinations of I2C operations happening. In addition, if you are communicating with a temp sensor, you could also use any of the EEPROM examples as a basis instead too. Best Regards, Aishwarya
↧