I am working with a pair of DS1820 temperature sensors. I need to display the temperature on a Sure 0832 dot matrix display. This means I need to take the DS1820 output and break it into each decimal digit of the resulting temperature. The 1Wire output is in 16 bit sign-extended 2,s complement number. I’m not sure about the best approach to this problem.
I could shift off bit 0-3 and have the next eight bits Binary if the S bit is 0. then I would have to convert to Decimal or use a lookup table. Once in Decimal I must breakout each digit of the number to send it to the display. This makes me wonder how PBP3 handles this conversion in “lcdout” to display in decimal. Is there a better method. Comments Please!
Wayne