10
/
30
HTE029A1
6.3
External Temperature Sensor operation
There are two ways to let the module get the ambient temperature,
1)
use the external temperature sensor interface, The module provides two I/O lines [TSDA and TSCL] for
connecting digital temperature sensor for temperature reading sensing. TSDA will be treated as SDA line and
TSCL will be treated as SCL line. They are required connecting with the external pull-up resistors when they
are used to connect to the temperature sensor,then the module will check the temperature automatically.
2)
use any kinds of external temperature sensor to get the temperature value then converted to hex format,then use the
spi interface send command 0x1A and the temperature value into the module.The temperature value how to
converted to hex as thefollow:
1.
When the Temperature value MSByte bit D11 = 0, the temperature is positive and value (DegC) = +
(Temperature value)/16
2.
When the Temperature value MSByte bit D11 = 1, the temperature is negative and value (DegC) = ~ (2’s
complement of Temperature value)/16
12-bit binary
(2's complement)
Hexadecimal
Value
Decimal
Value
Value
[DegC]
0111 1111 0000
7F0
2032
127
0111 1110 1110
7EE
2030
126.875
0111 1110 0010
7E2
2018
126.125
0111 1101 0000
7D0
2000
125
0001 1001 0000
190
400
25
0000 0000 0010
002
2
0.125
0000 0000 0000
000
0
0
1111 1111 1110
FFE
-2
-0.125
1110 0111 0000
E70
-400
-25
1100 1001 0010
C92
-878
-54.875
1100 1001 0000
C90
-880
-55