Questions tagged [hex]

hexadecimal or base-16 - a counting system in which each digit can take on one of 16 values, usually using the symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Often used in computer programming because each digit maps directly to a group of 4 binary digits (bits).

52 questions
9
votes
3 answers

How to display I2C address in hex

The I2C communications bus uses 7-bit or 10-bit addressing to address slave devices. Taking the more common 7-bit addresses, each packet sent on the bus by the master starts with an 7-bit address followed by a 1-bit read or write indicator…
Xcodo
  • 771
  • 4
  • 18
6
votes
10 answers

7 segment binary to hex

I'm trying to display a 4-bit binary number on a 7 segment LED as a hexadecimal number (0-F). I have an assortment of 7400 series ICs including the 7447. But that one only works for BCD (0-9). The 7400 series doesn't seem to have a hex to 7-segment…
4
votes
2 answers

Can someone tell me what these two lines of Arduino code do?

I'm trying to get into robotics, and I've found some tutorial code that was readily available on pololu's website for one of their motor controllers which I now own. Could someone with some background in Processing explain the highlighted segments…
Monte Carlo
  • 265
  • 2
  • 4
  • 10
4
votes
1 answer

What PIC processor was this HEX-file meant for?

I have this .hex file: :020000040000FA :020000000528D1 :080008000528831686138312FC :1000100015280F30A0000D2008007F30A100A00B94 :1000200012280800A10B12280D2886130920861714 :040030000920152866 :02400E00B03FC1 :00000001FF I know it has been burned on…
user17592
3
votes
2 answers

Does using "16's complement" for hex always yield the same result as two's comp for binary?

I'm sure it's obvious as day, but i'm having a hard time convincing myself with all these carries and conversions... Given that i'm operating on the same number (say, 0xA451) in different representations(0x and 0b), is it always safe to use "16's…
rtviii
  • 133
  • 3
3
votes
3 answers

Hexadecimal two's Complement

I have this question, which I thought I knew how to do, however my method is wrong somewhere. I converted the numbers to binary, removed 1 then inverted them to get them in normal binary format. I then added 4 leading 0's to give me a 16 bit number…
Gurn64
  • 435
  • 1
  • 8
  • 17
2
votes
2 answers

Need help with digital arithmetic

I am adding two hex numbers and determining what bits in the condition code register. The numbers I am adding are 4D (base 16) and 66 (base 16). I converted both to their binary equivalents. 4D (base 16) = 0 1 0 0 1 1 0 1 66 (base 16) = 0 1 1 0 0 1…
Greg Harrington
  • 301
  • 2
  • 4
  • 12
2
votes
1 answer

Meaning of specific SPI transaction

I am working with someone else's code, and I have a question about several of the SPI transactions that are performed. The hardware configuration consists of a Raspberry Pi (master) and a motor driver board (slave). They are using the spidev Python…
Anthony K.
  • 23
  • 2
2
votes
1 answer

Converting 21 inputs into 8 inputs for EEPROM address pins

I am just diving into the world of multiplexers, so my knowledge of them is not the greatest. I am trying to develop a circuit that can control 10 RGB LEDS (30 total LEDs) via 2 inputs per LED and one input that affects all LEDs (21 total inputs). I…
Grogglebob
  • 39
  • 3
2
votes
1 answer

How to use an encrypted HEX file in LTSpice?

I have downloaded a model of a MOSFET from ON Semiconductor and have a problem with it. The "model" looks like this: * LTspice Encrypted File * * This encrypted file has been supplied by a 3rd * party vendor that does not wish to publicize * the…
2
votes
0 answers

Intuitive bitshift in hex

In binary, bitshifting is pretty straight forward for example, a binary number of: 10000001 with a left bit shift of 1 becomes : 00000010 However in Hex, a hex number of: 1051 with a left bitshift of 1 becomes: 20a2 Is there an intuitive way to…
2
votes
1 answer

Optimizing Verilog Code

I'm trying to convert Hex number into Decimal ASCII representation in Verilog, I've done the next code that converts successfully but this it cost a lot of timing for my design, could anyone help me with any suggestions for optimizing this…
2
votes
2 answers

MSP430G2553: convert float to hex

As a result of calculations, I get a float (4 bytes and big endian) which I need to convert to hexadecimal to send it through the UART. How can this conversion be done? I have not found any examples that work for me. Thanks in advance. EDIT: I have…
FranMartin
  • 486
  • 5
  • 19
2
votes
3 answers

How to convert from binary to hex display in verilog?

The question needs some explanation: Suppose I have an 8 bit value, say 8'b00000001 (1) Suppose I have the module as follows: module hex_decoder(hex_digit, segments); input [3:0] hex_digit; output reg [6:0] segments; always @(*) …
K Split X
  • 131
  • 1
  • 3
  • 4
2
votes
5 answers

Editing/Hacking 8031 Eprom code

Not sure if this is the correct place to ask such a question, but here goes. Ok so I mess around with an old 80's drum machine a lot. It's based around an old 8031 Processor Program code is stored on a 27c256 eprom and sound data is stored on 2 x…
Brad Holland
  • 99
  • 1
  • 9
1
2 3 4