cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 discovery (LQFP100 )

artas110
Associate
Posted on January 16, 2013 at 11:33

The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
Posted on January 16, 2013 at 13:57

USART_SendData(

) sends a single 8-bit character, doubles are 64-bit so would require 8 bytes to be sent for the binary representation. If you want ASCII representation you'd need to convert the double back to ASCII.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
John F.
Senior
Posted on January 16, 2013 at 14:17

Sounds like a homework question. If you have received a string including a valid representation of a number you can convert it to a ''double'' value using the atof() C library function.

Have a look at,

http://www.elook.org/programming/c/atof.html

for example.