Solved

In Vector CANoe trace, which is Bit 0,  Bit 63 ?

Posted on 2014-10-30
3
423 Views
Last Modified: 2014-10-30
Here is the Vector CANoe trace:

Tx      03  22  F1  00   00  00  00  00
Rx      07  42  E1  00  00  22   44  01

In any of the above 8 bytes messages, which is bit 0 and which is bit 63 ?
0
Comment
Question by:naseeam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 40414262
Assuming that the above is something that you get displayed (and not a 'raw' memory dump), bit 0 is always the lowest value bit, i.e. in Rx as  '07  42  E1  00  00  22   44  01' it is the rightmost '1' and in Tx as '03  22  F1  00   00  00  00  00' it is the leftmost zero. In both cases, bit 64 - the leftmost value - is not set.
0
 
LVL 1

Author Comment

by:naseeam
ID: 40414302
>>   and in Tx as '03  22  F1  00   00  00  00  00' it is the leftmost zero.

Do you mean rightmost zero ?
0
 
LVL 86

Expert Comment

by:jkr
ID: 40414318
Yes, sorry, that should have been the 'rightmost' as well.

BTW, you can programatically obtain these values via bitwise AND operations, e.g.

#define MSB_64(x) (x & 0x8000000000000000) // bit 63, the Most Significant Bit
#define LSB_64(x) (x & 0x0000000000000001) // bit 0, the Least Significant Bit

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dual bridge protection 18 189
HTTPSendRequest with WinINet delays on first call 11 120
understanding 'model code' of cars.. 3 78
c++  placing data into a form and an editbox 5 50
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question