I have to switch between I2C and SPI in MS430F2254 on UCB0, they share the data pin, and I am not using DIN in SPI mode. SPI works fine but I2C doesn't work after reinitializing the UCB0 for I2C. Sometimes there is no clock and other times there is negative acknowledge from the slave. In both SPI and I2c, uC is the master.
I wanted to know if switching between resources has been tried by anyone? Can it be done? if so; is there a special reinitialization sequence? or the same initialization should work?
Please advise