Tool/software: TI-RTOS
Hi,
I'm working with CC2650EM_7ID + SmartRF06 Evaluation Board and use it to communicate with peripheral sensors using I2C, initially I was using the drivers from driverlib but without success, now i'm trying to use the sensor controller through Sensor Controller Studio. The first test for Evaluation Board was to use the Analog Light Sensor example and it works, than I want to use the I2C to communicate to a humidity sensor (SI7006_A20), so I configure the SmartRF06 PINs to DIO6 (SCL) and DIO7 (SDA), remove the jumper and as the slave address is 0x40 with the low bit for Read/Write, I used the sugestion to *** it one bit.
// Configure and start the next measurement
i2cStart();
i2cTx(I2C_OP_WRITE | (ALS_I2C_ADDR << 1));
i2cTx(SI_TMP_CFG);
// If successful ...
//if (state.i2cStatus == 0x0000) {
i2cRepeatedStart();
i2cTx(I2C_OP_READ | (ALS_I2C_ADDR <<1 ));
i2cRxAck(output.value);
//}
i2cStop();
My execution code is simple. When i'm running the program, my i2cStatus variable is 0x0001 (NACK), if I don't have the sensor connected is 0x0002 and already happen to be 0x0003.
Thank you,
Miguel



