Thanks Phillip
It is good news that you have some I2C support in z88dk.
SC137 can be set to the same address as the I2C port on SC126. The I/O bits are the same. The only differences are:
- SC126 uses the other bits on the port for other things so the code should leave these bits in their default states.
- SC126 does not have a read function on SCL so clock stretching is not possible.
- SC126 drives SCL both high and low, so only one bus master can be connected (and also this prevents clock stretching).
Essentially the same code can be used for both SC127 and SC126. My example program works on both.
I also have a combined RTC and I2C bus master card for the Z50Bus. This is SC144 and again it is software compatible.
I agree adapters are a good idea.
As Bill says, bit-bang I2C is easy to implement. In my mind, it is a no-brainer to include it in a system.
I haven't had much time recently so I haven't got much further but I have tested several of the modules. I'm building an example program that performs some simple functions with each module it finds.
As soon as I'm happy with the modules I'll make the designs public. I'll also offer PCBs and probably kits as well on Tindie. I believe the community requires all these things to be both public domain and available for convenient purchasing in order to get a good following, and thus encourage support from others.
Steve