工具/软件:Code Composer Studio
如何在 msp430g2553中使用 UART 协议传输浮点数据
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.
工具/软件:Code Composer Studio
如何在 msp430g2553中使用 UART 协议传输浮点数据
您好!
您还可以参阅以下主题相同的 E2E 主题:
https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/301856
https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/488403?float-variable-to-UART
这些信息有助于为在应用中使用 UART 外设指明正确的方向。
此致、
Matt
我没有 v9、但在 v8中、它位于"Build Settings->Compiler->Advanced-->Language->printf/scanf support"中。
期待您的下一个问题:上次我尝试此解决方案时、"完全"支持不适合 G2553。 ("nofloat"确实如此、但这不能回答您的问题。) 我建议使用缩放整数或十六进制。
主动式:作为"在我们的生命周期协会中印花冲刺"的创始成员(唯一成员)、我建议使用 snprintf 而不是 sprintf。
[编辑:更正了拼写错误。]