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.

[参考译文] EVM430-FR6043:串行通信 I2C

Guru**** 2478765 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1298537/evm430-fr6043-serial-communication-i2c

器件型号:EVM430-FR6043

您好!

我正在尝试从 ESP32通过 I2C 与 MSP430进行通信。

发送应用版本(0x99)软件包时、我得到了正确的响应。

现在我尝试发送命令0x98 (请求 UPS 和 DNS 捕获)、作为响应、我只获得 B5包、其中字节3 (包含 ADC DNS 启动/停止条件)为假->表明数据传输已完成、如果我从未收到数据包。

ESP32的代码如下所示:

Wire.begin(sdaPinsclPinI2CFrequency);  
 Serial.begin(9600);
   Buffer[0]= 0x55
  Buffer[1]= 0xAA
  Buffer[2]= 0x09
  Buffer[3]= designCenterId;
  Buffer[4]= 0x98
  Buffer[5]= 0x01
  Buffer[6]= 0x01
  
  Buffer[10]= 0x9E
  Buffer[11]= 0x00

  Wire.beginTransmission(adresse);      
  Wire.write (缓冲器12);
  Wire.endTransmission ();          

  Wire.requestFrom (adressenumberOfBytes);   
我的 ESP 将其发送到 MSP430
这就是我接收到的
提前感谢
利纳