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.

  • Resolved

CCS/TM4C123GH6PM: Official TivaWare I2C example

Expert 1940 points

Replies: 1

Views: 507

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

Hello,

I'm trying to design a PID control experiment.

This involves communicating between the TM4C123G and an MPU6050 using I2C.

I was able to find abundant information on this subject online - I'm flooded with examples of questionable quality with a lot of errors.

Can you please point me to an official "Go To" TI example that uses the TivaWare library for I2C communication on the launchpad ?

  • Hello Shai,

    For the MPU6050, API's have been provided with TivaWare as part of the SensorLib folder in the mpu6050.c file, so I would recommend starting there.

    We also have I2C examples for various sensors using the BOOSTXL-SENSHUB BoosterPack. For your LaunchPad, you can find those at [Install Path]\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c123gxl-boostxl-senshub

    Lastly, general I2C examples are also located at [Install Path]\TivaWare_C_Series-2.1.4.178\examples\peripherals\i2c

    Best Regards,

    Ralph Jacobi

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.