Quote Originally Posted by aratti View Post
I have difficulty in understanding what you want to do!

You should post the complete code to better understand what you have done and what you want to achieve.


Al.
Briefly : Tell me how can write in a I2C memory result from this :



mainloop:
OWOut DQ, 1, [$CC, $44] ' Start temperature conversion

waitloop:
OWIn DQ, 4, [count_remain] ' Check for still busy converting
If count_remain = 0 Then waitloop
OWOut DQ, 1, [$CC, $BE] ' Read the temperature
OWIn DQ, 0, [temperature.LOWBYTE, temperature.HIGHBYTE, Skip 4, count_remain, count_per_c]
temperature = (((temperature >> 1) * 100) - 25) + (((count_per_c - count_remain) * 100) / count_per_c)
'Calculate temperature in degrees C to 2 decimal places (not valid for negative temperature)


******************

adr = xx
i2cwrite I2CDAT, I2CCLK, $A0, adr,[temperature]
pause 5

******************

and how can read from memory something xx,xx (ASCI CODE )