Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/10/05 10:21
Read: times


 
Msg Score: -1
 -1 Didn't Search First
#84634 - Send a floating point from uP to PC
I have setup a serial communication between 8051 and PC (VB program).
I have no problem for send an Byte of Integer from uP to PC.
However, I got some trouble for send the Floating point data from uP to PC.

I try to send a float by multipy it 1000 and then convert it to int type. After the PC received the integer, I divid it by 1000, so that i can get the floating point data.

However, It seems not work at all if the floating point value is too large for data overflow problem.

any suggestion?

Please help!

Regards,

Ray.

List of 8 messages in thread
TopicAuthorDate
Send a floating point from uP to PC            01/01/70 00:00      
   sPrintf            01/01/70 00:00      
   convert to string            01/01/70 00:00      
      RTFM, again!            01/01/70 00:00      
         Read carefully before commenting            01/01/70 00:00      
            Sorry to Kalpak - Ray, RTFM!            01/01/70 00:00      
            and            01/01/70 00:00      
   Overflow            01/01/70 00:00      

Back to Subject List