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.
Tool/software: Code Composer Studio
How to transmit float data using UART protocol in msp430g2553
Hello,
You can also refer to the following E2E threads with the same topic:
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
These should help point you in the right direction for using the UART peripheral in your application.
Best regards,
Matt
Hello,
I noticed that you selected that our responses did not resolve your issue. Could you please provide additional details to help us determine how to provide support.
Best regards,
Matt
I don't have v9, but in v8 it's in "Build Settings->Compiler->Advanced->Language->printf/scanf support".
Anticipating your next question: The last time I tried this the "full" support didn't fit on the G2553. ("nofloat" did, but that doesn't answer your question.) I suggest scaled-integer or maybe hex instead.
Unsolicited: As the founding (only) member of the "Stamp Out sprintf In Our Lifetimes Society", I suggest snprintf rather than sprintf.
[Edit: Fixed typo.]
In 9.2 under the project properties it is:
Build->ARM Compiler->Advanced Options->Language Options
If it is too big to fit into your project, you can adapt K&R's itoa example.
(Sorry about the sprintf() thing, how do you become a member?)
**Attention** This is a public forum