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/MSP-EXP430FR5994:如何在 cc studio 上获取实时传感器数据

Guru**** 2392445 points
Other Parts Discussed in Thread: MSP430G2231

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/672686/ccs-msp-exp430fr5994-how-to-get-real-time-sensor-data-on-cc-studio

器件型号:MSP-EXP430FR5994
主题中讨论的其他器件:MSP430G2231

工具/软件:Code Composer Studio

你(们)好

我正在为 IICDC 2017开发传感器项目、因此我需要将从 MSP-430FR5994采集的传感器数据显示到我的 PC 上、以检查我的传感器是否正常工作?

因此、我不知道如何在 Ubuntu 17.10中向我的 PC 显示传感器数据
让我们将我的代码视为:

void setup()

 Serial.begin(9600);// msp430g2231必须使用4800

void loop()

 int sensorValue = analogRead (P1_3);
 int 电压= sensorValue *(5.0/1023.0);
 serial.println (电压);


它是在 Ubuntu 的 ccsv7中打开的 EnergiaProject

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    我将把这个主题移至 MSP 论坛。 那里的专家可以为您提供最好的帮助。

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

    您好!

    您可以通过 UART 将传感器数据发送到 PC。 并使用 Ubuntu 17.10中安装的串行终端显示传感器数据。 如果您希望使用"printf"通过 UART 将传感器数据输出到 PC、我认为此页面将为您提供帮助。

    processors.wiki.ti.com/.../Tips_for_using_printf

    如果我的帖子有助于解决您的问题、请单击  验证答案    按钮 

    冬季、

    搜索 E2E! 您的问题可能已经得到解答!