This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello everyone,
as i have look in the example of MSP430G2955 examples code,atasheet and user's example, i don't find the way to shift the 7-bit I2C slaveaddress to the left and add the R/W bit? i am bit confused.which regiter i should use and bit? is it UCTR bit that represent the R/W bit,is it the UCB0I2CSA where i have to use the left shiftin?
thanks
You do not need to left shift, the hardware does this automatically when combining the values in the I2CSA and UCTR fields. (And the UCTR bit is the inverse of the R/W bit on the bus.)
**Attention** This is a public forum