Tool/software: Code Composer Studio
Hi All,
Ive been playing around with I2C for a while now but i cant find out how to receive multiple bytes with my I2C Slave. The Idea is to send two bytes from the Master to the Slave. The Slave will controll three Servos so In Byte one i want to transmit the "Adress" of the Servo and in Byte two i want to have the "Value".
To do so i startet to transmit a single byte using I2C_MASTER_CMD_SINGLE_SEND
. Transmition works perfectly using the slave data get command.
Next step was sending out two bytes using the Master Burst send. This also works fine. Now i just dont know how to receive it. Using slave data get twice always brings the second byte sent. How can I receive those two bytes with my Slave module?
Thanks for your advice,
Alex