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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/11/10 08:05
Read: times


 
#176599 - One thing to consider is C
Responding to: ???'s previous message
You should consider the possibility of using C language instead of Assembler. A C compiler / linker tool set should come with a set of math library routines that support the single precision floating point format. Converting between the long integer format and the float format would be as easy as an assignment statement.

All that said it should be relatively easy to write a conversion routine. Here are some things to consider looking at to give some guidance...

- Check if you have a possibility of using a trial version of an MSP430 C compiler to prepare a long to float conversion and then look at the assembler language generated by the compiler.

- Look around for an actual MSP430 floating point math library on the web and use that. Obviously for your application you would be looking for an assembly language library.

- You could write some code in C on a PC that has long to float conversions in it. You could then inspect the binary values stored in the converted variables to get a full understanding of storage format for the numbers.

Michael Karas


List of 7 messages in thread
TopicAuthorDate
how to convert dword to IEEE754?            01/01/70 00:00      
   What environment hosts this?            01/01/70 00:00      
   Which format are you aiming for?            01/01/70 00:00      
      sorry            01/01/70 00:00      
         One thing to consider is C            01/01/70 00:00      
         You are going to have to load it.            01/01/70 00:00      
         thank You,            01/01/70 00:00      

Back to Subject List