IC2 with Red Pitaya as slave device
Posted: Tue Feb 09, 2021 9:40 pm
Hello all,
I am working on a project that will require the Red Pitaya to receive data sent over an I2C bus. I have read an implemented the example project described here:
https://redpitaya.readthedocs.io/en/lat ... s/i2c.html
And it works great for sending data. However, suppose I need the Red Pitaya to act as the slave device? I can't seem to find an easy way to implement this.
I was considering wiring the other device to the Red Pitaya's I2C bus and writing directly to the EEPROM at a predetermined address. The software on the Red Pitaya could come by later and check that address to see if data has arrived. I don't know much about the EEPROM though, and this seems like it could be a great way to really screw up some internal stuff on the Red Pitaya.
I only need to send/receive a 32-bit word every 16ms.
Thanks for any help you can give or references you can point me to!
I am working on a project that will require the Red Pitaya to receive data sent over an I2C bus. I have read an implemented the example project described here:
https://redpitaya.readthedocs.io/en/lat ... s/i2c.html
And it works great for sending data. However, suppose I need the Red Pitaya to act as the slave device? I can't seem to find an easy way to implement this.
I was considering wiring the other device to the Red Pitaya's I2C bus and writing directly to the EEPROM at a predetermined address. The software on the Red Pitaya could come by later and check that address to see if data has arrived. I don't know much about the EEPROM though, and this seems like it could be a great way to really screw up some internal stuff on the Red Pitaya.
I only need to send/receive a 32-bit word every 16ms.
Thanks for any help you can give or references you can point me to!