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.
各位专家好,目前在使用MCT8329a设计驱动器
参考之前在论坛找到了MCF8316AEVM_EEPROM_WRITE.zip
对比代码和MCF8316手册中的I2C DATA,手册中的起始是S+target id+0;为什么在代码中是先在line147 Set slave Address,随后在line152Set master to transmit mode,后面才在line155发送Start
为什么没有先发送Start,把line155提前到line147之前,还可以吗?
目前TI的开发板还没到,没办法验证,麻烦专家解答一下
您好,
第147行 EUSCI_B_I2C_setSlaveAddress ()只需通过设置 EUSCI_B 的 UCBxI2CSA 寄存器来配置从器件地址、并且不发送地址。
第155行 EUSCI_B_I2C_masterSendStart()实际设置 UCTxSTT 位并发送起始条件、后跟从器件地址。
请参阅以下链接来了解有关EUSCI_B module的详细信息:https://www.ti.com/lit/pdf/slau445