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).

Filter by
Sorted by
Tagged with
2
votes
0answers
61 views

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 ...
0
votes
1answer
95 views

Why did the 74xx family never have a hexadecimal to 7-segment-display chip? [closed]

The 74xx family of TTL ICs has several BCD to 7-segment-display chips, such as the 7446-7449, which could display digits 0-9. However, there does not seem to have been a hexadecimal to 7-segment ...
1
vote
1answer
82 views

How to decipher hex code for time data on an older serial port device

I’m using an old Draeger PAC III sensor to measure gas concentrations, with the goal of remotely transmitting the data via Arduino. Accordingly, I cannot use the proprietary software to output the ...
0
votes
0answers
118 views

STM32F0 programming through system bootloader using UART

I am writing a python script similar to STM32Loader that can write a hex formatted program to the flash of an STM32F0. I have managed to use the system boot-loader to write the hex file to the chip ...
-1
votes
2answers
43 views

Converting signed hex integer to display negative decimal integer on terminal in C code

I am trying to take a signed hex number and display it on the terminal as a negative decimal number so that it can be easily read. I am having a hard time working through the logic on how to make this ...
1
vote
1answer
101 views

VHDL initialize vector using readable integers not long binary string

So I am only starting out my VHDL journey. One thing I am finding a bit of a nuisance is the following format: signal sig_A : unsigned (3 downto 0) := "0101"; ...
0
votes
1answer
186 views

C Language Pointers Question [closed]

Not sure if this is the correct place to post a programming based question so will have a go anyway. Attached below is a piece of code and a table where I have to fill in the blanks. Just to clarify, ...
2
votes
1answer
118 views

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 ...
0
votes
1answer
90 views

Special Function Registers value expressed as Hexadecimal & Bit shift

I was wondering if someone could help me solve one problem, because I am very new to this and I was given the code of a former programmer to work with. I'm trying to figure out the value of 0x8008 &...
6
votes
10answers
9k views

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 ...
2
votes
2answers
586 views

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 ...
0
votes
1answer
99 views

Binary info to Decimal representation using circuitry

I'm tryign to make a counter (and by extension all the other things) using a series of flip-flop circuits, and a seven segment display. As I have it the digit increments through 0xF, which isn't ...
1
vote
3answers
7k views

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: ...
0
votes
2answers
2k views

Decimal conversion of a 32-bit hexadecimal number

Im working on this question: Consider a 32-bit hexadecimal number stored in memory as 1B08C22B. If the number is an IEEE single-precision floating point value, determine the decimal equivalent of the ...
1
vote
1answer
907 views

74HC14 Schmitt Trigger Oscillator - Weird output at certain voltages

Recently bought some TI SN74HC14 Hex Inverter IC's to learn and am having weird issues with them. I've looked at many examples online and have tried wiring them the same with the same passive values. ...
1
vote
2answers
244 views

Programmer gives me an error in programming a big hex file [closed]

I want to download a program into an Atmega128. the programmer which I am using is this ( jamshad ISP -USB ZIF_Socket_Programmer_V5 ). The Programmer work correctly for programming one small length ...
1
vote
0answers
49 views

Avr file hex address overlapped problem

I am writing one microbasic codes for atmega 32 ,the program works on Proteus simulation but when i want to program it the programmer got this error: file hex address overlapped problem So the Codes ...
0
votes
2answers
2k views

Memory addressing with hex

If we have generic memory component that is \$2^{16}\times8 = 524288\$ Bits wide and CPU that that has address bus that is \$17\$ Bits wide. How could I locate this memory to begin from address \$ ...
0
votes
1answer
100 views

How does the C code relates to hex output in terms of pins assignment for ATmega16

So I wrote up a code which interfaces a graphic LCD with ATmega16 and displays some custom characters on it. This is a subject that I'm doing in my university. I would like to share the code with my ...
1
vote
2answers
1k views

Convert ASCII represented HEX into HEX

I have a question which I was unable to solve but it seemed trivial. I am getting a stream of characters from a processor over UART and this stream represents a JPEG file. I captured this stream, as ...
0
votes
1answer
587 views

Adding/Subtracting in binary and hexadecimal formats?

I have two numbers(in decimal): M = 3892.74 N = 9341.65 I am trying to add and subtract them in binary numbers and then in hexadecimal numbers. I manage to ...
7
votes
3answers
4k views

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 ...
2
votes
5answers
2k views

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 ...
2
votes
2answers
2k views

Number of bytes and file size(HEX)

I am confused regarding the (size/number of bytes) in a hex file. Taking the case of A sample Blink Arduino Program - Blink.cpp.hex On linux terminal, size command output: beyond@beyond-HP-...
0
votes
3answers
1k views

Decimal-Binary-Hex-Base7 Conversions with Radix Points?

I was hoping someone on here could help explain number base conversions with Radix points. I'm pursuing my Bachelors Degree in Computer Science with 12 courses remaining, currently in a Computer ...
1
vote
4answers
576 views

Rotate a 7-segment display in firmware

I have a board with a 7-segment display controlled by an AVR. I need to rotate the display's characters in the firmware, so that the display is read correctly when physically rotated 180 degrees. ...
2
votes
1answer
8k views

Converting Pronto hex codes to raw on/off pulses

I'm really just getting my feet wet when it comes to IR protocols and IR codes in general, so my knowledge and understanding may be a bit shaky here. I am a programmer and am trying to create a tool ...
3
votes
3answers
2k views

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 ...
1
vote
0answers
190 views

Sizing Intel Hex Files prior to ISP

I've currently have an Intel Hex file that is 109kb, but with AVR-SIZE and FLIP I see that it's actually only going to take up 37,344kb of space on the chip, unless I'm making a false assumption there....
0
votes
2answers
125 views

How to cycle through bits of information for a hex display?

I am doing some work with a Hex Seven Segment Digital Display with a built in decoder that takes in 4 bits of information. Controlling it I have 4 cascading T-FlipFlops whose outputs are inverted so I ...
2
votes
2answers
119 views

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 ...
4
votes
2answers
270 views

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 ...
-4
votes
2answers
364 views

Conversion of hex to decimal [closed]

I am using freescaale mc9s08lg32,i want to convert the hex value from ADCR registers to decimal for sum calculation.
0
votes
4answers
2k views

Converting two's complement hex values to binary?

I'm reading x-axis accelerometer data from an IC via the I2C bus using I2C-Tools ( specifically i2cget ) in Linux. Here is the code that is reading these values: <...
4
votes
1answer
468 views

What PIC processor was this HEX-file meant for?

I have this .hex file: ...