Dear Champs,
I am asking this for our customer.
The user wants to use FR2422 with a physical I2C bus which many other I2C devices, say device A, B, C.
When device A exists (,which is detected by a GPIO) on the I2C bus, then the device A will be I2C master and FR2422 be I2C slave.
When the device A does not exist on the I2C bus, then FR2422 will be I2C master.
1. This be implemented by dynamically switching FR2422 I2C between I2C master and I2C slave depending on the availability of device A (using another GPIO). Is it right?
2. The switching between I2C master and slave can be implemented by modifying UCMST and then resetting the I2C module UCSWRS. Is it right?
Do you have any comment/caution for us to switch I2C master and slave?
Wayne Huang