Experiment to CC2640R2 and Sensor Booster Pack In this example, I follow a tutorial from TI to read sensor OTP3001. http://dev.ti.com/tirex/content/simplelink_academy_cc2640r2sdk_1_13_02_07/modules/ble_02_thermostat/ble_02_thermostat.html Because the sensor TMP0007 has out of date now, so I little modify to use with OTP3001. Step1. Copy file i2ctmp from simpllink sdk cc2640R2 version Reference The Booster pack datasheet http://www.ti.com/lit/ug/slau666b/slau666b.pdf TMP0007 and OTP3001 share the I2C bus including SCL, SDA. Address's TMP is 0x04, Data Register: 0x00 Address's OTP is 0x47, DataRegister: 0x00 So in the code we modify: #define OTP3001_REG 0x0000 /* Die Temp Result Register for TMP006 */ #define OTP3001_ADDR 0x47; According to OTP3001 datasheet, in default, a configuration register (address 0x01) in sleep mode, so if we read data ou...
Comments
Post a Comment