Hi,
I guess I should be able to "research" this myself, but I'm getting lazy in my old age.
I want to read I2C data from a VEML6075 into an 08M2 and the data sheet helpfully shows that the required format of bytes for reading data (words) is as follows:
Slave Address : Command : Slave Address : Low Data byte : High Data byte ; (where the bold is sent by the master and the "Command" is just a register number).
It seemed strange that the Slave Address is repeated, but the data sheet explains that this is an "I2C Restart Condition" (normally intended to prevent the master relinquishing the bus). The term "Restart" does not appear to occur in the PICaxe "I2C Tutorial" Manual. Is this format supported in (M2) PICaxe Basic, and if so how?
Thanks, Alan.
I guess I should be able to "research" this myself, but I'm getting lazy in my old age.
I want to read I2C data from a VEML6075 into an 08M2 and the data sheet helpfully shows that the required format of bytes for reading data (words) is as follows:
Slave Address : Command : Slave Address : Low Data byte : High Data byte ; (where the bold is sent by the master and the "Command" is just a register number).
It seemed strange that the Slave Address is repeated, but the data sheet explains that this is an "I2C Restart Condition" (normally intended to prevent the master relinquishing the bus). The term "Restart" does not appear to occur in the PICaxe "I2C Tutorial" Manual. Is this format supported in (M2) PICaxe Basic, and if so how?
Thanks, Alan.