Greetings,
While reviewing my code i changed the I2C lines from :
I2Cread SDA,SCL,CTW,mem,[x]
to
I2Cread SDA,SCL,CTW,mem.highbyte,mem.lowbyte,[x]
to make it work.
Sorry if i'm a bit stubborn ( just trying to learn
), but i re-made ( yes... re-made
) the search and as before almost every one mentions the I2C lines as follows :
I2cwrite SDA,SCL,CONTROL,ADDR,[DATA]
Posts like:
http://www.picbasic.co.uk/forum/show...hlight=24lc512
http://www.picbasic.co.uk/forum/show...hlight=24lc512
http://www.picbasic.co.uk/forum/show...hlight=24lc512
Including melanie's post
http://www.picbasic.co.uk/forum/showthread.php?t=587
The only one that mentions to separate the address in high and low somehow did not worked in that case
http://www.picbasic.co.uk/forum/show...hlight=24lc512
My question is just to try to understand
Why is that the i2c line ( I2cwrite SDA,SCL,CONTROL,ADDR,[DATA] ) works with other pics ( yes...all my programs with 12F675 work ) and with the 16F88 does not ? Why with this pic i need to have the address separated with high and low byte ?
Also ( question for skimask )
In post # 7 you mention :
Code:
'cause I see a few flaws in your logic in the code written a few posts back.
Can you please point where the flaws are so i can take a look at them ?
Thanks
Bookmarks