I am trying to read the temperature from the barometer (LPS25HB) on the Pmod Nav board. Per the data sheet this is in a two byte register (L=2B, H=2C). I can read the data, which is supposed to be in 2's complement format. Typical readings at room temperature are: H = 11011001, L=10111011. In 2's complement format this temperature is negative. Room temperature is not negative in any units I am familiar with. I assume the units are degrees C. What do I do with this data to calculate the temperature?
By the way, the barometric pressure reading works fine.
Question
rmac
I am trying to read the temperature from the barometer (LPS25HB) on the Pmod Nav board. Per the data sheet this is in a two byte register (L=2B, H=2C). I can read the data, which is supposed to be in 2's complement format. Typical readings at room temperature are: H = 11011001, L=10111011. In 2's complement format this temperature is negative. Room temperature is not negative in any units I am familiar with. I assume the units are degrees C. What do I do with this data to calculate the temperature?
By the way, the barometric pressure reading works fine.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now