I'm trying to establish I2C communication between the C6713(as master) and a bq32000(as slave, RTC product in ti).
so i made a code as below for operating i2c init procedure.
/*** i2c init ***/
*I2CMDR = 0x00;
for(i = 0; i < 5000; i++);
*I2CCLKH = 0x00;
*I2CCLKL = 0x00;
*I2CIER = 0x00;
*I2CSAR = 0xD0;
*I2CMDR = 0x630;
/*** end ***/
then, I don't know the way that read the data from bq32000.
Is it correct the i2c init code? and Is there any sample code of using the i2c for doing read/write operating.
for reference I used the CCS5.
Regard
Chun