0x00, 0x01, 0x02...... nxnn

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can anybody help me?

What does 0x00, 0x91, 0x02 and so on mean?

I don't understand what it says, and therefor have problems programming...

probably a stupid question, but I'm just a newbie

Magnus

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

magnusrt wrote:
What does 0x00, 0x91, 0x02 and so on mean?

First, these are Hexadecimal numbers or, base 16, rather then base 10. Think of it as having 8 digits on each hand, instead of 5.

Decimal     Hexadecimal        Binary
   0     =     0x00     =     0000-0000
   1     =     0x01     =     0000-0001
   2     =     0x02     =     0000-0010
   3     =     0x03     =     0000-0011
   4     =     0x04     =     0000-0100
   5     =     0x05     =     0000-0101
   6     =     0x06     =     0000-0110
   7     =     0x07     =     0000-0111
   8     =     0x08     =     0000-1000
   9     =     0x09     =     0000-1001
  10     =     0x0A     =     0000-1010
  11     =     0x0B     =     0000-1011
  12     =     0x0C     =     0000-1100
  13     =     0x0D     =     0000-1101
  14     =     0x0E     =     0000-1110
  15     =     0x0F     =     0000-1111

Second, for the amount of information you've provided, these numbers can mean anything! It is all in the application and what you or the controller thinks they should represent.

So, this question has "Insufficient Data " to provide any reasonable answers, more than what I have provided.

But even still, the answer provided is better then "That does not compute! "

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

Last Edited: Sun. Dec 16, 2007 - 08:01 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

nxnn

The first n is not variant. The prefix is always "0x".

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
What does 0x00, 0x91, 0x02 and so on mean?
The same as $00, $91, $02 or 00H, 91H, 02H..... now if we don't understand the difference between hexadecimal, binary, octal or decimal we have a problem...:?

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
now if we don't understand the difference between hexadecimal, binary, octal or decimal we have a problem...:?

Huston, we have a problem!!!

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston