mhackney wrote:I know 2s compliment and that was my observation, I don't see how it works with the data I'm getting. And the "left justified" format statement. Not sure what that means, justify the MSB or ?
You configure it to return temps at initialization and then when you read the 2 temp registers (H and L) it returns the values and resets the registers until you read again.
BTW, do you have PCB experience? I need to find someone to help take this POC to a product.
Left justified typically means that the field is larger than the data, so the MSB of the data is located in the MSB of the field. In this case they seem to be saying that the field is 16 bits wide (H/L registers combined) and the data is said to be 8-bits wide, so the left justified temp reading would have bit D7 of the temperature in D15 of the field.
Typically this representation is used when you have an unusual width value. For example if you had a 7-bit wide reading, and an 8-bit wide field, the "left justified" register value would be shifted left 1 bit and the LSB would be padded with a zero.
I did see in the datasheet that you have some registers to configure to make the temperature sensor read. I assume you have that going too.
Yes, I have experience designing and laying out PCB's, and have hand fabricated small batches. See this video at the 2:30 time mark for a demo of a board I did recently: https://www.youtube.com/watch?v=j6wLRHK3ATE&t=150s