I have successfully connected several X2 chips together and used i2c to transfer data back and forth from my master to three slaves. Everything works great and having the built-in i2c support has made coding this extremely easy.
I was looking at a few devices I wanted to connect and there's a couple I REALLY want to use, but they are SPI only. I figure no problem, X2 supports SPI. Then I see that the same pins are used for i2c and SPI meaning I can't run both on one chip. So my choices seem to be:
- Stick with the i2c to connect the PICAXE's together and make something up to handle SPI (like maybe a UART-SPI convertor).
- Use SPI on my remote PICAXE's to connect to other devices and come up with a method of sharing data between my master/slaves instead of i2c.
Neither one seems like it'll be fun to try and replace.
I was looking at a few devices I wanted to connect and there's a couple I REALLY want to use, but they are SPI only. I figure no problem, X2 supports SPI. Then I see that the same pins are used for i2c and SPI meaning I can't run both on one chip. So my choices seem to be:
- Stick with the i2c to connect the PICAXE's together and make something up to handle SPI (like maybe a UART-SPI convertor).
- Use SPI on my remote PICAXE's to connect to other devices and come up with a method of sharing data between my master/slaves instead of i2c.
Neither one seems like it'll be fun to try and replace.