Hello Melanie,
yes there is a lot on the website, but there is not describd how to access it with I2CREAD / I2CWRITE. May be i am blind.... Maybe anyone else can help...?
Regards,
Ralf
Hello Melanie,
yes there is a lot on the website, but there is not describd how to access it with I2CREAD / I2CWRITE. May be i am blind.... Maybe anyone else can help...?
Regards,
Ralf
from the second page of his web site:
http://www.astrosurf.com/soubie/fichiers/i2cInt.pbp
http://www.astrosurf.com/soubie/fichiers/Proc_i2c.pbp
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
You would still use I2CREAD and I2CWRITE as per normal in the Master PIC. It's only the slave PIC that would use the new routines.
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