数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN3209 数据表(PDF) 39 Page - STMicroelectronics

部件名 AN3209
功能描述  Developing your M24LR64-R datalogger application for temperature acquisition
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN3209 数据表(HTML) 39 Page - STMicroelectronics

Back Button AN3209 Datasheet HTML 34Page - STMicroelectronics AN3209 Datasheet HTML 35Page - STMicroelectronics AN3209 Datasheet HTML 36Page - STMicroelectronics AN3209 Datasheet HTML 37Page - STMicroelectronics AN3209 Datasheet HTML 38Page - STMicroelectronics AN3209 Datasheet HTML 39Page - STMicroelectronics AN3209 Datasheet HTML 40Page - STMicroelectronics AN3209 Datasheet HTML 41Page - STMicroelectronics AN3209 Datasheet HTML 42Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 39 / 42 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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