Hello
I am not able to find these details. I removed the tmp007 sensor and soldered tmp112. in the reference code of tmp007
#define TMP007_VAL_CONFIG_ON 0x1000 // Sensor on state
#define TMP007_VAL_CONFIG_OFF 0x0000 // Sensor off state
#define TMP007_VAL_CONFIG_RESET 0x8000 // Reset command
#define TMP007_VAL_PROD_ID 0x0078 // Product ID
all these are given but there is no reference code for tmp112 or these addresses for tmp112. What are the addresses I have to change to get an i2c communication possible .
* Slave address */
#define SENSOR_I2C_ADDRESS 0x44 //* (1--Sensor Address; TMP112 0x48)
/* TMP112 register addresses (Page 18 - Manual) */
//#define TMP007_REG_ADDR_TEMPERATURE 0x00
//#define TMP007_REG_ADDR_CONFIG 0x01
//#define TMP007_REG_ADDR_TLOW 0x02
//#define TMP007_REG_ADDR_THIGH 0x03
//#define TMP007_REG_ADDR_STATUS 0x04
//#define TMP007_REG_PROD_ID 0x1F
/* TMP112 register values */
//#define TMP007_VAL_CONFIG_ON 0x60A0 // Sensor on state
//#define TMP007_VAL_CONFIG_OFF 0x0000 // Sensor off state
//#define TMP007_VAL_CONFIG_RESET 0x06 // Reset command
//#define TMP007_VAL_PROD_ID 0x0078 // Product ID
/* TMP007 register addresses */
#define TMP007_REG_ADDR_VOLTAGE 0x00
#define TMP007_REG_ADDR_LOCAL_TEMP 0x01
#define TMP007_REG_ADDR_CONFIG 0x02
#define TMP007_REG_ADDR_OBJ_TEMP 0x03
#define TMP007_REG_ADDR_STATUS 0x04
#define TMP007_REG_PROD_ID 0x1F
/* TMP007 register values */
#define TMP007_VAL_CONFIG_ON 0x1000 // Sensor on state
#define TMP007_VAL_CONFIG_OFF 0x0000 // Sensor off state
#define TMP007_VAL_CONFIG_RESET 0x8000 // Reset command
#define TMP007_VAL_PROD_ID 0x0078 // Product ID
/* Bit values */
#define CONV_RDY_BIT 0x4000 // Conversion ready
/* Register length */
#define REGISTER_LENGTH 2
/* Sensor data size */
#define DATA_SIZE 4
// Sensor selection/de-selection
#define SENSOR_SELECT() bspI2cSelect(BSP_I2C_INTERFACE_0,SENSOR_I2C_ADDRESS)
#define SENSOR_DESELECT() bspI2cDeselect()
I am stuck here cos I am not able to find the obj_temp address . I could only find the slave address. Is there a sample code for tmp112