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
0 votes
2 answers
92 views

How can I combine 4 separate bits into one 4 bit output?

Say I hypothetically have four switches 0-3. I want each switch to represent a bit in a four bit long number, switch 0 being the first bit and switch 3 being the last. The end goal is to be able to ...
user avatar
0 votes
1 answer
59 views

Clone ATtiny13A flash memory using USB ASP programmer

I hope you are having a great day. May I kindly ask for a word of advice from the veterans in this field of Atmel micro-controllers? I am a novice getting into knowing things by hands on training ... ...
user avatar
2 votes
1 answer
94 views

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 ...
user avatar
1 vote
3 answers
145 views

Mathematical conversion of hex to decimal

I am stuck with a very trivial coding issue. Please refer the link below: Cordic Algorithm using Verilog By what mathematical rule hex 26dd2b6a is equal to 0.607252935008814?
user avatar
  • 21
0 votes
2 answers
149 views

What is a 44h command?

I am reading the datasheet of a devive and don't understand the format of the commands. They are talking about 44h and BEh commands. I assume the h just stands for hex. If so, I don't understand why ...
user avatar
  • 105
1 vote
1 answer
458 views

Converting hexadecimal digit to two's complement

So I have the number 'E' which is 14 in decimal and 1110 in binary. To get the two's complement I first get the one's complement and add 1, so I get: One's complement: 0001 Two's complement: 0010 So ...
user avatar
  • 11
0 votes
5 answers
546 views

32 bit to 7 segment display (FPGA)

After some research, I think I have quite a problem on my hands. I have a project on an FPGA where I store a 32 bit binary value in a 32 bit memory register. The stored value ranges from 0 to 4000 in ...
user avatar
  • 986
2 votes
1 answer
813 views

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: ...
user avatar
3 votes
2 answers
477 views

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, ...
user avatar
  • 133
1 vote
2 answers
564 views

hex inverter oscillator

I stumbled across this clock generator, and it is new to me. I'd like to calculate its frequency (actually min and max, since there is a trimmer), but I don't know how to do, since similar oscillator ...
user avatar
0 votes
2 answers
158 views

datasheet register address is not in HEX?

I am reading the this datasheet for the CAP1188 touch sensor and can't figure out what these "register addresses" in the far left column mean. I am used to seeing HEX addresses in datasheets such as <...
user avatar
  • 333
2 votes
0 answers
327 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 ...
user avatar
1 vote
1 answer
549 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 ...
user avatar
  • 806
1 vote
1 answer
180 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 ...
user avatar
-1 votes
2 answers
725 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 ...
user avatar
  • 21
1 vote
1 answer
1k 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"; ...
user avatar
0 votes
1 answer
197 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, ...
user avatar
  • 986
2 votes
1 answer
450 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 ...
user avatar
0 votes
1 answer
112 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 &...
user avatar
6 votes
10 answers
19k 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 ...
user avatar
2 votes
2 answers
2k 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 ...
user avatar
0 votes
1 answer
107 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 ...
user avatar
1 vote
3 answers
16k 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: ...
user avatar
  • 121
0 votes
2 answers
7k 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 ...
user avatar
1 vote
1 answer
2k 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. ...
user avatar
1 vote
2 answers
271 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 ...
user avatar
1 vote
0 answers
55 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 ...
user avatar
0 votes
2 answers
3k 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 \$ ...
user avatar
  • 125
0 votes
1 answer
108 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 ...
user avatar
1 vote
2 answers
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 ...
user avatar
  • 513
0 votes
1 answer
857 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 ...
user avatar
7 votes
3 answers
8k 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 ...
user avatar
  • 751
2 votes
5 answers
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 ...
user avatar
2 votes
2 answers
3k 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-...
user avatar
0 votes
3 answers
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 ...
user avatar
1 vote
4 answers
716 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. ...
user avatar
  • 113
2 votes
1 answer
9k 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 ...
user avatar
  • 123
3 votes
3 answers
3k 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 ...
user avatar
  • 425
1 vote
0 answers
200 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....
user avatar
  • 223
0 votes
2 answers
132 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 ...
user avatar
2 votes
2 answers
130 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 ...
user avatar
4 votes
2 answers
290 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 ...
user avatar
-4 votes
2 answers
446 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.
user avatar
  • 15
0 votes
4 answers
3k 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: <...
user avatar
4 votes
1 answer
500 views

What PIC processor was this HEX-file meant for?

I have this .hex file: ...
user avatar