I tried both with and without the i2c_twi.lbx
Without it, the slave lib works, but if I load it, the slave stops working.
See attached drawing. MCU 2 is continuously collecting data from devices on it's i2c bus though the i2c switch.
When the Main MCU wants information from MCU 2, the Main MCU signals this though the INT line and MCU 2 switches i2c over to the Main MCU and MCU 2 is now is now in slave mode.
Main MCU is a 90CAN128, MCU 2 is a Mega640
[/img]
↧