Jump to content

Problem using MS first and LS first (Recieving CAN)


PepitoGrillo7182

Recommended Posts

I'm using the Reciever CAN funcion, to recieve data from an accelerometer. I can't modify the sending configuration, so I need to adjust it by configuring the ECU recieving options.

The accelerometer sends a 2-byte parameter, in the following format:

7 6 5 4 3 2 1 0       15 14 13 12 11 10 9 8

I've tried to change the "Byte Order" parameter (since I guess the problem is in a missunderstanding of the little-endian and the big-endian format), but none of them sets the bits as I would like them to be (see pictures).

How do I need to configure the variable to get the information in the correct way?

Thanks!

image.png.082566480681b878be763825ffc6e157.png

image.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...