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

BinaryX : X indicates the length in bytes for the binary.

Hi, Forum.

Does anyone know how to define and handle odd bytes long binary data.
For example, Binary5 is 5 bytes long binary data.

I'm in project and in specs, there is this type of data.
Is this a mistake of document writer? I have no idea.

I'd like to hear you guys.
Thanks.

Parents
  • @Per Westermark

    Thank you very much.

    I'm a new man in this forum and Keil especially serial communcation programming in C.
    I appreciate if you could tell me where can I get an example for those things to consider?
    Basically, I understand byte oder.

    1) It'll be received from serial channel.
    2) And It'll be sent via serial channel and needed to be stored in a safe memory area.
    3) The processor support 32-bits. It seems that I have to implement add/sub/mul/div/mod/... on my 40-bit numbers.

    ******
    you may use a big number library
    -> Can you tell me about a big number library?

    Cheers.
    ---------------------------------------
    Are there any mistakes in this message?
    Can't you understand what does it mean?
    I'm not a english speaker, so I need your kind understand.
    ---------------------------------------

Reply
  • @Per Westermark

    Thank you very much.

    I'm a new man in this forum and Keil especially serial communcation programming in C.
    I appreciate if you could tell me where can I get an example for those things to consider?
    Basically, I understand byte oder.

    1) It'll be received from serial channel.
    2) And It'll be sent via serial channel and needed to be stored in a safe memory area.
    3) The processor support 32-bits. It seems that I have to implement add/sub/mul/div/mod/... on my 40-bit numbers.

    ******
    you may use a big number library
    -> Can you tell me about a big number library?

    Cheers.
    ---------------------------------------
    Are there any mistakes in this message?
    Can't you understand what does it mean?
    I'm not a english speaker, so I need your kind understand.
    ---------------------------------------

Children
No data