TEMPERATURE (°C) DIGITAL OUTPUT (BINARY) DIGITAL OUTPUT
(HEX)
+125 = 0000 0111 1101 0000 = 07D0h
+85= 0000 0101 0101 0000 = 0550h
+25.0625 = 0000 0001 1001 0001 = 0191h
+10.125= 0000 0000 1010 0010 = 00A2h
+0.5 = 0000 0000 0000 1000 = 0008h
0 = 0000 0000 0000 0000 = 0000h
-0.5 = 1111 1111 1111 1000 = FFF8h
-10.125 = 1111 1111 0101 1110 = FF5Eh
-25.0625 = 1111 1110 0110 1111 = FE6Fh
-55 = 1111 1100 1001 0000 = FC90h
you try to make the code ... for example if its temperature is -55C means the value is hex FC90H (cold) and+125C=07D0H(hoT)...
start:
cjne a,#FC90H,hot
routine fast motor:
.........
.......
hot:
cjne a,#07D0H,start
routine slow motor:
......
.......
end