Solved

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

Posted on 2014-10-30
3
432 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Comparing Two Hi-Tech Remote Security Systems When looking at automotive security systems, I was quite intrigued with how far they have progessed. More like a PDA type applications, these newer and top end systems have remote displays to advise o…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

623 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