i2c Master and slave
Doug Wheeland
Posts: 4
This toy uses three cogs to run a Spin master and an ASM slave with wired bus.· I wrote it just to see how i2c basics worked but it might be used to develop master and/or slave functionallity.· One may also fault the bus lines to see if recovery logic works.·
The third cog runs what would normaly be a hardware start/stop detector for the slave.
Not much to it so folks new to programming will be able to figgur it out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards, Doug W.
The third cog runs what would normaly be a hardware start/stop detector for the slave.
Not much to it so folks new to programming will be able to figgur it out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards, Doug W.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Marc Gebauer) : 1/7/2007 5:49:15 PM GMT
After writing an I2C object "Master", the next natural thing to do is to write a "Slave" object...... You might reconsider this. Philips Semiconductor has the
licensing rights for I2C and there is a potential for infringement when writing "Slave" code. "Master" code is grandfathered in, because it assumes that you
have purchased the I2C license through the transaction of purchasing the I2C "Slave" device that you are planning on communicating with. If you create your
own slave device, then the actual purchase of the I2C license is now out of the loop.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards, Doug W.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards, Doug W.