请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:MSP430FR6047 我将 MSP430FR4047用于水表应用。 我使用 Code Composer Studio 进行开发。 我想使用 I2C 线路连接外部外设。
请提供 I2C HAL 层代码。
提前感谢。
此致、
Suhas
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.
我将 MSP430FR4047用于水表应用。 我使用 Code Composer Studio 进行开发。 我想使用 I2C 线路连接外部外设。
请提供 I2C HAL 层代码。
提前感谢。
此致、
Suhas
您好 Suhas、
I2C 用于水演示项目。 您可以在 hal_system.c 中找到引脚初始化。 comm_config.h 和 comm.c 提供了配置和 I2C 事件处理程序。
您还可以在下面的链接中找到驱动程序库和寄存器级示例。