Hello Melanie,
hello Joe,
thanks for your answers.
I have the code from Robert, i also implemented his code in my interrupt
service of the slave (a 2431), all no problem, but:
The problem i have is that i do not understand how it works. When writing or reading with my master (a 6722) to / from the slave, i alwasy get sensless values from the slave. The slave routine from Robert waits for 3 RXbuffer values (0 - 2), the first value of RXBuffer(0) indicates in i2c_proc.pbp the var-id, all other two bytes are the values. But when writing three values with I2CWRITE sda, scl, addr, [b1, b2, b3], the service routine gives back "0" for all two TX Values (defined in the i2c_proc.pbp there have been other values defined).
In the pbp manual, there is also a value possible behind the address (before the "[", but using this value also for the RXBuffer(0) results also in senseless values.
So i think the I2CREAD / I2CWRITE command i use in a wrong way, so i am looking for a master code example, which controls a slave to see the correct usage.
Uff..... understood?
BR
Ralf
Bookmarks