Other Parts Discussed in Thread: MSP430F5438
Hi!
I have an I2C EEPROM connected to an MSP430F5438 with the MSP being the one and only master on the bus. When reading from the EEPROM the MSP reads one byte more than I want it to read. I suspect this happens because my code sets the UCTXSTP bit (which activates sending of a stop condition) after getting the RX flag for the last byte. The USCI then shifts another byte into its shift register while the value from the RX buffer is being copied. The USCI behaves like I expect when I set the UCTXSTP directly after reading the penultimate byte from the RX buffer but I wonder if this is the way it should be done because the state diagrams in the MSPF4538 user guide show something different. So, when is the UCTXSTP bit supposed to be set?
Regards,
Markus