AnsweredAssumed Answered

MC56F8037 Endian Architecture

Question asked by Jefferson Jackson on Mar 21, 2013
Latest reply on Apr 25, 2013 by Jefferson Jackson

Hey everyone,

I am working on an application where I need to send data (floats) to another processor. I am using the MC56F8037EVM as my processor and I have been looking for how a float is stored as binary. Currently I am using a union to break my float into a char array in order to send asynchronously. I can not find the "endianness" of my processor in the data sheet or the users manual. Has anybody come across this information or have a hints as to where to look? Thanks a bunch,



The union I am using. My plan is to iterate over the char array and send one byte at a time, I just want to make sure that when it is reconstructed on the receiver side all is good and well. The receiver platform is AVR.


union {

  float val;

  char byteVal[4];

} var;