Hi All
I am trying to simulate the return actions of a 28X2 as a slave
I am sendig 23,45,111 from the serial terminal simulator but
I am recieving 95 and 104 respectivally not the 3 bytes I am expecting
have altered the simulator settings to %xxxxxxx0 i2cfast, i2cbyte check box
can the simulater be used for i2c communications
regards john
I am trying to simulate the return actions of a 28X2 as a slave
I am sendig 23,45,111 from the serial terminal simulator but
I am recieving 95 and 104 respectivally not the 3 bytes I am expecting
have altered the simulator settings to %xxxxxxx0 i2cfast, i2cbyte check box
Code:
TH:
photo=0:dry=0:RH=0
hi2csetup i2cmaster,pic, i2cfast, i2cbyte '%1100000 for 28x2 slave
hi2cout 0,("c","h")
pause 3000
do
hi2cin 0,(dry,RH,photo)'b48,b50,b23
pause 500
sertxd("Dry="," ",#dry," ","RH="," ",#RH," ","photo="," ",#photo,cr,lf)
loop until photo<>0
return
regards john