AnsweredAssumed Answered

Strange Float to HEX number conversion by SigmaStudio

Question asked by Nando.One on Jul 25, 2012
Latest reply on Jul 26, 2012 by Nando.One

Hi There, how are you?


I'm using SigmaStudio 3.6 along with a ADAU1701 evaluation board. My objective is to update filter coefficients in real time with a PIC microcontroller, so I have to calculate the coefficients (this part is fine) and send data in 4-Byte format. However, I can't figure out what kind of FLOAT to HEX conversion sigma studio makes. For example:


Safeload Write

Time:  0:36:16 - 694ms

IC:  IC 1

Cell Name:  Gen Filter1_2

Param Name:  EQ1940Single20B1

Param Address:  0x0000

Param Value:  0.988578677177429

Bytes:  4

Param Data:

0x00,     0x7E,     0x89,     0xBF


However, if I convert "0.988578677177429" to float on my program, I get a very different result:

0x3F, 0x7D, 0x13, 0x7E

Which is coincident with the result given by this calculator on the internet:


So I assume that my result is correct.


I suppose there's something different about the conversion realized by SigmaStudio, maybe a different standard perhaps?

Please help me out here, I'd really appreciate your input regarding this, so I can continue developing my project.


Thanks a lot!


Best wishes,