

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,然后延時,然后接收,得到的值是負的,而且只測了一次,后面一直是這個值
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/132702.html
標籤:單片機/工控
