C2000 I2C Communication

18 ビュー (過去 30 日間)
Kevin
Kevin 2024 年 7 月 9 日
回答済み: Samar 2025 年 4 月 23 日
Hello,
i have been trying to setup I2C communication between two F28379D. Not recieving any data in the Rx Block. Here is the setup Pictures for the Rx and Tx.
I dont know if this is the problem with the address. the input to the TX block is of the data type unit8
Thanks for the help
  2 件のコメント
Divyanshu
Divyanshu 2024 年 8 月 8 日
Hi Kevin,
A possible reason can be modules being different for both 'I2C Transmit' and 'I2C Recieve', you can try by keeping the modules same for both blocks.
Also is there any specific error message shown?
Kevin
Kevin 2024 年 9 月 9 日
Hi Divyanshu,
Thanks for your comment, i have tried keping the same modules for both blocks, didint work. Also there was no specific error message shown

サインインしてコメントする。

回答 (1 件)

Samar
Samar 2025 年 4 月 23 日
Hello @Kevin,
Refer to this example provided in the MathWorks’ documentation. It explains how to use the I2C Simulink blocks to communicate with I2C based devices.
A similar issue was also discussed in this MATLAB Answer where the user was not able to receive more than one byte of data. The link provided below can be referred for more information about the problem.
Hope this helps.

カテゴリ

Help Center および File ExchangeCommunications Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by