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
1 answer
67 views

Why can't I divide the total number of bytes of a .BMP file by the color depth? [closed]

I have a .BMP file resize.bmp. The total number of bytes that encode pixels in this file is 320 bytes. The color depth in this file is 3 bytes. 0x176 total number of bytes including Header 0x140 ...
stm's user avatar
  • 81
0 votes
0 answers
66 views

Memory arbiter in SoC

I have got a question about memory management! I have the OpenRISC 1200 (OR1200) on Flash based FPGA and I'm trying to check the model after synthesis. To do that I need to realize how to organize and ...
Addi_G De's user avatar
0 votes
1 answer
65 views

How to write a lookup-table into an 28C64 parallel EEPROM?

Based on the program from this post 28C64 EEPROM Programming Using Arduino, I would like to write, using Arduino Mega, a lookup-table that contains one sinewave cycle, created in Excel. I would like ...
Jerzy Przezdziecki's user avatar
1 vote
1 answer
97 views

First time schematic for USB-C power detection

Hey all I am creating a PCB that allows me to detect when I plug in a tablet, laptop, etc. to my home made tablet organizer. It's difficult to see if it made a connection in the back since you place ...
StealthRT's user avatar
  • 731
0 votes
1 answer
148 views

What is the difference between a hex inverting buffer and hex inverting Schmitt trigger?

What is the difference between an hex inverting buffer (e.g. TC74HC4049AP) and hex inverting Schmitt trigger (e.g. 74HCT14N)? How can hysteresis be added to a CMOS hex inverting buffer to make it act ...
Ken90's user avatar
  • 101
0 votes
0 answers
203 views

Help needed with solving MIPS jump instruction encoding question

I am currently working on a project that involves understanding the encoding of MIPS assembly instructions and I am struggling with a question that I hope someone here can help me with. The question ...
Bryan C's user avatar
2 votes
1 answer
51 views

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 ...
Anthony K.'s user avatar
1 vote
1 answer
3k views

How can I use CDC_TRANSMIT_FS() correctly?

I am trying to develop a sensor driver on the STM32F401CCU6. I have already worked out the sensor data acquisition on the STM. The problem I am facing is getting that over USB to my host system. ...
Harit's user avatar
  • 73
-7 votes
1 answer
685 views

RFID Conversion hexadecimal to decimal

How do I convert this hexadecimal code to decimal: 5A 95 62 80? And also this one: 67 64 07 68? I need this to use in an ...
Shawaiz Tahir's user avatar
0 votes
1 answer
613 views

Facing problem to download Hex file to STM32 using Command line

I managed to write a script for flashing hex file into STM microcontroller. ...
Nh K's user avatar
  • 31
0 votes
2 answers
1k 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 ...
Bob Jones's user avatar
0 votes
1 answer
541 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 ... ...
nexus.so's user avatar
2 votes
1 answer
197 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 ...
Grogglebob's user avatar
1 vote
3 answers
232 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?
sarika's user avatar
  • 21
0 votes
2 answers
203 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 ...
neolith's user avatar
  • 105
1 vote
1 answer
2k 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 ...
Blooper's user avatar
  • 11
0 votes
5 answers
1k 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 ...
David777's user avatar
  • 1,558
2 votes
1 answer
2k 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: ...
Anton Chupryn's user avatar
3 votes
2 answers
672 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, ...
rtviii's user avatar
  • 133
1 vote
2 answers
945 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 ...
Dimitri Petrucci's user avatar
0 votes
2 answers
285 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 <...
scottc11's user avatar
  • 423
2 votes
0 answers
657 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 ...
ClockwerkSC's user avatar
1 vote
1 answer
862 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 ...
DrSheldon's user avatar
  • 926
1 vote
1 answer
272 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 ...
Research8472's user avatar
-1 votes
2 answers
869 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 ...
jhandy's user avatar
  • 21
1 vote
1 answer
2k 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"; ...
Edwin Fairchild's user avatar
1 vote
1 answer
204 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, ...
David777's user avatar
  • 1,558
2 votes
1 answer
709 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 ...
Alexis Hernandez's user avatar
0 votes
1 answer
127 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 &...
sharksWithLasers's user avatar
6 votes
10 answers
21k 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 ...
Goswin von Brederlow's 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 ...
FranMartin's user avatar
0 votes
1 answer
115 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 ...
Anthony Harlan's user avatar
2 votes
3 answers
20k 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: ...
K Split X's user avatar
  • 131
0 votes
2 answers
9k 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 ...
user3472448's 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. ...
Andrew Southworth's user avatar
1 vote
2 answers
304 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 ...
Soheil Paper's user avatar
1 vote
0 answers
57 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 ...
Soheil Paper's user avatar
0 votes
2 answers
4k 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 \$ ...
ELEC's user avatar
  • 125
0 votes
1 answer
140 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 ...
Sahil Khanna's user avatar
1 vote
2 answers
2k 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 ...
IgorEE's user avatar
  • 513
0 votes
1 answer
934 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 ...
Jenna Maiz's user avatar
10 votes
3 answers
10k 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 ...
Xcodo's user avatar
  • 781
2 votes
5 answers
3k 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 ...
Brad Holland's user avatar
2 votes
2 answers
4k 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-...
Saurabh Shandilya's 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 ...
Analytic Lunatic's user avatar
1 vote
4 answers
821 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. ...
veor's user avatar
  • 113
2 votes
1 answer
10k 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 ...
TheMethod's user avatar
  • 123
3 votes
3 answers
4k 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 ...
Gurn64's user avatar
  • 435
1 vote
0 answers
209 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....
While-E's user avatar
  • 223
0 votes
2 answers
137 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 ...
Monte Carlo's user avatar