...just try to code a slave-I2C !
Then you will see, what advantages a hardware-modul can give to you !
...and it gives you so much performance, if you use the hardware in an intelligent way!
...just try to code a slave-I2C !
Then you will see, what advantages a hardware-modul can give to you !
...and it gives you so much performance, if you use the hardware in an intelligent way!
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Somewhere out there, is a site with practically complete I2C-slave code, uses the hardware and PBP to handle things. Apparently it works like a champ. A 2nd PIC18F452 is slave-I2C programmed to act just like a 24LC256 and it's accessed by the 1st 18F452 using PBP's I2C commands. Wish I remembered where that was...
Many of us have done this but for professional reasons we are unable or unwilling to share the code. However, Robert Soubie detailed his adventures with I2CSlave using Melabs PICBasic, and posted all his code here...
http://www.astrosurf.com/soubie/pic_as_an_i2c_slave.htm
Well done Robert!
Hi Melanie,
i tried Roberts I2C Slave routine, but it is not clear how to access the Slave with I2CREAD / I2CWRITE with Melabs PBP from the Master.
In the I2CREAD and I2CWRITE commands are also "address" parameters given, is this the same to be used as the parameter RXBuffer(0)?
Does any one have an exmaple for me?
Regards,
Ralf
Other than telling you that Robert achieved the goal that many seek but few accomplish, and he documented everything on his website (I'm assuming it's all still there), I can't add any more, because I haven't actually tried his software myself.
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.
Bookmarks