TI中文支持网
TI专业的中文技术问题搜集分享网站

小白求助,HDC1080怎么读温度或者湿度值

hdc1080中,0x02配置为0x0000
按照数据手册
2. Trigger the measurement by executing a pointer write transaction. Refer to Figure 12
– Set the address pointer to 0x00 for a temperature measurement.
– Set the address pointer to 0x01 for a humidity measurement.
3. Wait for the measurement to complete, based on the conversion time (refer to Electrical Characteristics(1) for
the conversion time).
4. Read the output data:
Retrieve the completed measurement result from register address 0x00 or 0x01, as appropriate, as shown in
Figure 11. A read operation will return a NACK if the measurement result is not yet available, as shown in
Figure 13.
我先发0x00,然后延时,再发0x00然后收,这样运行没结果;我先发0x00,然后延时,然后接收,得到的值是负的,而且只测了一次,后面一直是这个值

Annie Liu:

为更加有效地解决您的问题,我们建议您将问题发布在E2E英文技术论坛上https://e2e.ti.com/support/interface/f/138,将由资深的工程师为您提供帮助。我们的E2E英文社区有TI专家进行回复,并得到全球各地工程师的支持,分享他们的知识和经验。

赞(0)
未经允许不得转载:TI中文支持网 » 小白求助,HDC1080怎么读温度或者湿度值
分享到: 更多 (0)