HI I am working with the ARM AT91SAM7x256. I want to send/receive a float number with USART and I need a code for it. thanks
Retarget the USART for STDIO, and use scanf("%f", &flt); and printf("%f\n", flt);
http://www.keil.com/forum/56766
Or use sprintf & sscanf with your own routines for sending & receiving strings/characters
Previous answers have assumed that you mean to transmit/receive the float number as a text string - is that right?
Indeed, I made some assumptions about the competence of the OP to deal with IEEE-754 in it's rawer forms, and my willingness to code someones homework.
C:\Keil473\ARM\Boards\Atmel\AT91SAM7X-EK\Hello\Serial.c C:\Keil473\ARM\Boards\Atmel\AT91SAM7X-EK\Hello\Retarget.c
You have functions like atof()