Re: Multi-digit word variable to string
it could be the chip is not really i2c and behaves differently
try this, at least its a nicer transaction
i2cwrite SDA, SCL, addr,[7]
i2cread SDA, SCL, addr,[TEMP.lowbyte, TEMP.highbyte]
looking at the wiki link you posted, this would do exactly what the smbus timing diagram describes as a proceedure
PEC var byte
i2cread SDA, SCL,addr,reg,[temp.lowbyte,temp.highbyte,PEC] ' reg = $07 ;would be the normal pbp way
worth trying
Last edited by richard; - 19th December 2021 at 13:13.
Reason: wiki
Warning I'm not a teacher
Bookmarks