SLAZ149I October 2012 – May 2021 MSP430F168
I2C Module
Functional
Master state machine requires reset before new sequence can proceed.
When the USART is configured for I2C mode (U0CTL.I2C, SYNC, and I2CEN are set) and the module is configured as an I2C master (U0CTL.MST=1), the master state-machine does not properly reset between execution cycles.
Before starting the new master sequence, clear and then re-set the I2CEN bit in the U0CTL register.
bic.b #I2CEN,&U0CTL
bis.b #I2CEN,&U0CTL