I'm trying to implement temperature compensation on a Sensirion SHT11 RH sensor.
I've got most of it up & going using a 16F628 + *assembler* but I am having a hard time wtih the temp compensation - in particular - all of it!
While I'm not looking for an exactly correct calculation, it'd be nice to be in the ball park. (Yes I know, how long is a piece of string....)
From the data sheet for a 12 bit RH measurement:
Temp Comp in %RH = (Temp - 25)[0.01 + 0.00008.(ADC value)] + RHuncompensated
I've done the RGH calcs based on a x10 calculation to get resolution to 0.1% etc. Multiplying the above by 10 gives:
Temp Comp in %RH x 10 = (Temp - 25)[0.1 + 0.0008.(ADC value)] +
10.RHuncompensatedI've done a heap of searching and can only find information on the linearisation process, not temp compensation. What's going to be the simplest approach to doing this in assembler on an 8 bit pic?
All suggestions greatfully received!