casual3_2002
Advanced Member level 4
msp430 i2c
Anyone has some examples of MSP430 I2C programs for writing to
a slave register? The protocol is: STart --> Device Address+Write -->
ACK --> Register Address --> ACK --> Data ...... --> StoP
TI's I2C C examples is like: I2CTCTL |= I2CTRX + I2CSTT + I2CSTP;
which does not specify the Register Address. Anyone knows how to set the register address in the C program? Thanks a lot.
Anyone has some examples of MSP430 I2C programs for writing to
a slave register? The protocol is: STart --> Device Address+Write -->
ACK --> Register Address --> ACK --> Data ...... --> StoP
TI's I2C C examples is like: I2CTCTL |= I2CTRX + I2CSTT + I2CSTP;
which does not specify the Register Address. Anyone knows how to set the register address in the C program? Thanks a lot.