thanks Richard,
i will read carefully your code and will come back because i have couple of questions.
In the begging i got confused the way you use addr and reg names inside the I2Cread or write command.
I followed the manual example: so i wont get consfused.Code:ADDR = $ae ; addr is 0x57 << 1 reg= REG_PART_REVISION i2cread SDA,scl,ADDR,reg,[REVISION,PARTID]
Code:I2CWRITE PORTA.0,PORTA.1,cont,addr,[B2]




Bookmarks