Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: TCA9535
Dear Support Team,
We are using TM4C1294NCPDT as I2C Master to communicate with TCA9535(I2C IO Expander) Salve.
We are getting into situation where I2C Bus gets stuck.
To getting the bus "unstuck" We are toggling the clock line multiple (18) times before doing any I2C operation with the slave device to convince it that the last transaction is complete.
We are following the sequence below
- disable I2C peripheral (SysCtlPeripheralDisable(I2C)),
- enable GPIO Peripheral (SysCtlPeripheralEnable(GPIO)),
- use SCL and SD as digital output,
- enable I2C peripheral (SysCtlPeripheralEnable(I2C)
But still unable to establish the connection with I2C Slave TCA9535. What could be the reason?
Can we switch from I2C to GPIO mode then back to I2C mode during run time ? What is the correct way of dong this?
or Is there any other way to tackle this situation ?
Thanks & Best Regards,
Prashant Naik