avr sht15
Hi all, realy now i want to reduce my request or problem,i had found a code for reading
the SHT1x sensor using AVR this code is posted below, it needs some modifications to obey
my goals (read temp/hum, send it via RF "TWS433" receiving it with RWS433 and displaying
the final data on 2x16 LCD, all done with atmel avr uc).
At this moment one problem occure:
The reading of temperature and humidity are stored into two 8bit register for each one
r18,r19 for high and low byte of temperature
r20,r21 for high and low byte of humidity
These digital readings will be converted into temperature and humidity using the following
equations:
Temperature=d1+d2*SOT ;d1=-40 centigrade, d2=0.01 centigrade,
;SOT is the digital temperature reading r18:r19
humidity=C1+C2*SORH+C3*SORH^2
c1=-4,c2=0.0405, c3=-2.8*10^-6
The problem is how to implement these equations in Avr assembly, and finaly gets a cook
data to be displayed on an LCD.
The code that i had found do this in (calchumtemp) routine but i can not understand where
the final data are stored, the code is attached below.