Setting the UCTXSTP bit will generate a STOP condition. After setting
UCTXSTP, a NACK followed by a STOP condition is generated after reception
of the data from the slave, or immediately if the USCI module is currently
waiting for UCBxRXBUF to be read.
If a master wants to receive a single byte only, the UCTXSTP bit must be set
while the byte is being received. For this case, the UCTXSTT may be polled
to determine when it is cleared:
这个是datasheet手册上的一段,请问我何时发送stop信号,
Maka Luo:
更详细资料见各系列的用户手册。
灰小子:
楼主用的哪一款msp430?
建议结合mspware里官网的例程来看,就容易懂了
yu yong1:
回复 Maka Luo:
这个IIC在通讯的时候我发现上电后 IIC不能正常的发送第一波数据, 我用的是EEprom
yu yong1:
回复 Maka Luo:
为什么我上电初始化时要发个start信号,EEprom的读取才能正常