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.

MSP430F2132 I2C 读取FIFO

Other Parts Discussed in Thread: MSP430F2132

 

MSP430F2132与MAX30100的血氧传感器通过I2C进行通信,使用了Using the USCI I2C Master (SLAA382A)里的方法进行I2C操作,目前进行写操作已经是OK的。

但是在进行读操作时,需要先发器件地址再发寄地址后有一个repeated_start的状态发送地址后才能读取数据,麻烦请教一下,这个过程要怎么实现。

 

 

 

  • 重复发送开始信号啊。

        UCB0CTL1 |= UCTXSTT;                    // I2C start condition

    参考这个单片机的例子啊。点进去,找到该芯片主页有例子参考。

  • 建议楼主参考下msp430x21x2_uscib0_i2c_08.c和msp430x21x2_uscib0_i2c_10.c两个例程