how to use I2C master block in HDL Code

조회 수: 2 (최근 30일)
SHIYU SONG
SHIYU SONG 2022년 3월 26일
답변: Kiran Kintali 2022년 8월 29일
Hi, everyone !
I'm confused about the i2c master block in HDL Coder, and I can not find an example to use it.
Does anyone have a simple executable program?
In my program, I want to write 1 to 9 to an i2c controlled EEPROM device and then read data from it.
thanks !

답변 (2개)

SHIYU SONG
SHIYU SONG 2022년 3월 26일
here is my slx:
  댓글 수: 1
Cau Tran
Cau Tran 2022년 8월 22일
Do you have the answer for this issue?
I am a beginner for using I2C master block. I have same issue with you. Let's discuss for this problem.

댓글을 달려면 로그인하십시오.


Kiran Kintali
Kiran Kintali 2022년 8월 29일
Please find attached a sample example of I2C Master and Slave model blocks with behavioral plant models for IMUs.
You can also find I2C Block reference in SoC Blockset here: https://www.mathworks.com/help/soc/ref/i2cmaster.html

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by