Values that come in as 1/2 what they should have been shifted right one bit. You are loosing the LSB somewhere? I don't know the in's and out's of exactly what PBP does when shifting in I2C, but it might be that PBP is expecting one more bit. Does that compass send out 8 bits... or does it send out 7? Maybe it's sending out 9?
Anywho, it's a byte shifted right... some where, some how.
Does this from the datsheet have anything to do with your problem?
"Negative binary values will be in two’s complement form"
Bookmarks