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.

[参考译文] MSP-EXP430FR5994:帮助通过 I2C 将 AS6221 温度传感器连接到 MSP-EXP430FR5994

Guru**** 2362820 points
Other Parts Discussed in Thread: MSP-EXP430FR5994, MSP430FR5994
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1528349/msp-exp430fr5994-help-connecting-as6221-temperature-sensor-to-msp-exp430fr5994-via-i2c

器件型号:MSP-EXP430FR5994
Thread 中讨论的其他器件: MSP430FR5994

工具/软件:

大家好:

与连接的器件 AS6221 温度传感器 通信 MSP-EXP430FR5994 LaunchPad 位置 I2C 但我遇到了一些问题。 我无法获得任何有效的温度读数、我不确定是否正确连接。

以下是目前为止我所做的工作:

  • AS6221 VCC→3.3V

  • AS6221 GND→GND

  • AS6221 SDA→P7.0

  • AS6221 SCL→ P7.1.

我的主要问题是我 不确定 MSP430FR5994 上的哪些物理引脚对应于 I2C SDA 和 SCL 。 一些来源提及 P1.6 和 P1.7、另一些来源提及不同的端口或取决于 USCI 模块。

有人能帮我解决以下问题吗?

  1. SDA 和 SCL 应该使用哪些特定引脚(端口和接头引脚编号) MSP-EXP430FR5994?

  2. 为该设置初始化 I2C 的正确方法是什么?

  3. 如何从 AS6221 读取温度并通过 UART 或控制台打印的最小示例?

非常感谢任何可以帮助我运行该传感器的工作代码或文档指针。

非常感谢!!