This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Big-Endian

Hi,

We are using NXP LPC11C35 and µVision v4.71.2.0.
We want to use big-endian format at our variables.
At Keil->Project->Options->Target->Code generation->big endian checkbox is disabled.
Is it possible for the specific uC to use big-endian format?
If yes, how can we achieve that?

Thanks in advance.

Parents
  • Dear Mike,

    i don want to do such thing programmatically in order to avoid bugs. We need the big-endian format because the device is a part of a network that uses RS485 communication with big-endian format and it is easier and safer to have just another big-endian device than converting data all the time.

    Thank you for your time.

Reply
  • Dear Mike,

    i don want to do such thing programmatically in order to avoid bugs. We need the big-endian format because the device is a part of a network that uses RS485 communication with big-endian format and it is easier and safer to have just another big-endian device than converting data all the time.

    Thank you for your time.

Children
  • Dear friends,

    I needed to build a man door with arm.I searched rfid shields butthat work from 10cm distance which is too small. then I looked after other rfid reader/tag solutions not for people, and I could not find anything. I know that rfid technology is close range technology but I cannot attach a heavy and large object that includes batteries onto man's collar. there are these kind ofsolutions for dogs but they are mush more powerfull than men.

    any suggestions about which kind of technology should I use ? I guess minimum 25-30 cm would be required to sense the "specific man with collar".

    thanks.

  • That's a strange argument. I think you are overestimating the complexity involved in endian conversion. People use ntohs/htons/ntohl/htonl all the time, it's nothing new. The good practice would be to test all the parts of the protocol anyway, be it big endian or little endian.
    If you insist on a big endian CPU, have a look at ColdFire. They have a very nice range of MCU's.