| 数据搜索系统,热门电子元器件搜索 |
|
AN3209 数据表(PDF) 39 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3209 数据表(HTML) 39 Page - STMicroelectronics |
|
39 / 42 page ![]() AN3209 STTS75 I2C commands Doc ID 17419 Rev 2 39/42 Appendix C STTS75 I2C commands The M24LR64-R_Datalogger_application_firmware uses the i2c_ee.c C library to interface with the STTS75 temperature sensor. The library is available under C:\Program Files\M24LR64-R_Datalogger_Application\sources\M24LR64- R_Datalogger_application_firmware or from Start > M24LR64- R_Datalogger_Application > M24LR64-R_Datalogger_application_firmware. The address Byte defines the address of the STTS75 on the I2C bus. It is defined by the SENSOR_ADDRESS global variable of the i2c_ee.c #define SENSOR_ADDRESS 0x90 C.1 Acquire temperature The I2C_SS_Config() function configures the STTS75 in temperature acquisition mode. Refer to the STTS75 datasheet for a detailed description of the pointer byte and of the corresponding registers. . Example I2C_SS_Config (0x0183) configures the STTS75 to perform one temperature acquisition with a resolution of 9 bits and store the value in the 16 bits temperature register. where Pointer byte = 0x01 Configuration byte = 0x83 ConfigBytes = 0x0183. C.2 Read acquired Temperature The I2C_SS_BufferRead() function allows to read a temperature acquisition value. Table 15. I2C_SS_Config() Function description Prototype I2C_SS_Config (uint16_t ConfigBytes) Parameters ConfigBytes: 2 bytes resulting from the concatenation of the Pointer byte and Configuration byte. Pointer byte: Bits P2 to P7 must always be set to 0. Bits P0 and P1 define the pointer value corresponding to the register to be configured. Configuration byte: Value to be programmed in the Configuration register. It is the last byte of the Pointer Set Configuration Register Write frame. (see Section : Acquire temperature). Default value is 0x00. Returned value ErrorStatus: SUCCEEDED FAILED |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |