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.

[参考译文] CCS/TM4C129ENCPDT:TM4C129ENCPDT I2C UDMA 示例代码

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/804434/ccs-tm4c129encpdt-tm4c129encpdt-i2c-udma-example-code

器件型号:TM4C129ENCPDT

工具/软件:Code Composer Studio

尊敬的 TI -团队、

我已经设法通过 I2C 与一个 LTC2945芯片通信。 我使用的是 TM4C129E 控制器和 TI 库(i2c.h)。 目前我使用的是具有 FIFO 的 API。

由于我们在系统上运行 RTOS、我想减少 cpuload。

I2CMasterControl (Cfg.ui32Base、I2C_MASTER_CMD_FIFO_BURST_SEND_FINISH);
while (!(I2CMasterBusy (Cfg.ui32Base)));
while (I2CMasterBusy (Cfg.ui32Base)); 

如上所示、同时功能处于阻断状态。

我想实现中断或 uDMA、因此我找到了以下文档:

http://www.ti.com/lit/an/spma073/spma073.pdf

在本文档中、提到了以下代码解像器、但从不会反向:

ektm4c129_i2c_main_udma_fifo

ektm4c129_i2c_master_hs

是否有办法亲自了解这些示例?

提前感谢。

此致

Lukas

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

    在文档的第一页上、有一个 zip 文件夹的下载链接 spma073.zip、其中包含所有示例项目、包括您引用的这两个项目。