im using the 28X1 connected to 4 max6674 thermocouple converters in spi mode. i use it as a datalogger. i store the data in 4 24lc256 in i2c mode. for more than one year ive written 10 different codes that worked. the problem is that now i did some hardware improvements and tried the new code it just cant write and read word variables on the eeproms.
i used the old code but the problem continues
i used the old hardware that was working fine for one year but now i cant write even on that.
i used a simple code just to see whats going on with the memories. when i use variables that are no more than a byte value everything is ok but when the value goes more than a byte the problem starts,
anybody had the same problem?
init:
pause 300
main:
w1 = 260
i2cslave %10100000, i2cfast, i2cword
writei2c w0, (w1)
pause 30
sertxd (#w1,13,10)
i2cslave %10100000, i2cfast, i2cword
readi2c w0, (w2)
pause 30
sertxd (#w2,13,10)
if i set w1=34 or anything less than 255 it works fine.
i used the old code but the problem continues
i used the old hardware that was working fine for one year but now i cant write even on that.
i used a simple code just to see whats going on with the memories. when i use variables that are no more than a byte value everything is ok but when the value goes more than a byte the problem starts,
anybody had the same problem?
init:
pause 300
main:
w1 = 260
i2cslave %10100000, i2cfast, i2cword
writei2c w0, (w1)
pause 30
sertxd (#w1,13,10)
i2cslave %10100000, i2cfast, i2cword
readi2c w0, (w2)
pause 30
sertxd (#w2,13,10)
if i set w1=34 or anything less than 255 it works fine.