Using Invensense MPU6050 with Texas Instrument F28335 ezDSP through I2C, programmed through Simulink

1 view (last 30 days)
Hi,
I am trying to set up an I2C connection between the Invensense MPU6050 (gyro+accelerometer) and the Texas Instrument F28335 ezDSP using Simulink and the Embedded Coder, but I cannot get it to work. Has anyone here ever tried doing this?
It seems that I can use the default Embedded Coder's 'I2C Receive' function block, but I would not know how to properly configure this function block. In particular, I would like to read a register value from a slave with a certain address value. Where to insert these two values? It seems that the function block only asks for one of these...
Thanks in advance for your help.
Cheers, Tijs Donkers

Answers (1)

jifeng rgj
jifeng rgj on 21 Sep 2015
Hi, did you make it? Would you please to give me some help? Thanks

Community Treasure Hunt

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

Start Hunting!