Other Parts Discussed in Thread: CC3220SF, TMP117, TIDA-01624
Hello,
I have the TMP117EVM linked to my CC3320SF board to read ambient temperatures in a room. I cannot seem to find a way to write the to the registers on the TMP117EVM using the I2C drivers provided in the CC3220SF SDK. Can someone help?
I used this as a template to interface with the sensor:
Snippet of my code:
/* setting the high limit temp */
HTWriteBuffer[0] = High_Lim_Reg;
HTWriteBuffer[1] = highliml;
HTWriteBuffer[2] = highlimh;
i2cTransaction2.slaveAddress = TMP117_address;
i2cTransaction2.writeBuf = HTWriteBuffer;
i2cTransaction2.writeCount = 2;
i2cTransaction2.readBuf = HTReadBuffer;
i2cTransaction2.readCount = 2;
^I am trying to write a 2 byte value to the High temp limit register and store the highest temp I want to see but when I read from the register to check if it was written correctly the value I sent is not returned and I get the default value of 8000h (0x8000).