LM77: correction of "register
PATCH 1/1 LM77: correction of "register
Hi Jean.
Quoted 3 lines · Jean Delvare
You seem to think that using more than one bit for sign is odd from National. This is actually the standard way of doing though. Think about it. [...]
Now that you say it: you're absolutely right. And as a result:
Quoted 3 lines
Your patch is probably correct but also needlessly complex. All we really have here is a unsigned vs. signed issue. What about this more simple fix instead?
Tried your patch, with a test program I wrote (testing against the positive and negative temperature values given in the LM77 data sheet) as well as with a live system (only with positive temperature readings, though). The patch works fine, thanks.
Bye, Mike