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

55 questions
Filter by
Sorted by
Tagged with
1k views

### How can I understand hexadecimal columns as power of 16 in Jeff Duntemann's book?

I am studying this book: x64 Assembly Language Step-by-Step. Programming with Linux-Wiley (2024) JEFF DUNTEMANN If I understand correctly, 1 in hexadecimal is equal to 1 in decimal. However, the ...
• 203
77 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 ...
• 89
98 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 ...
• 1,413
1 vote
145 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 ...
• 783
291 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 ...
• 176
419 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 ...
• 17
67 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 ...
1 vote
4k 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. ...
• 83
1k 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 ...
786 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. ...
• 31
2k 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 ...
1 vote
892 views

### Clone ATtiny13A flash memory using USB ASP programmer

I have a working device with flashed ATtiny13A inserted in DIL8 socket. I am guessing that the uC does not have a locking bit set (since I was able to read it [?]). That is all I know at this point. I ...
• 35
223 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 ...
1 vote
310 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?
• 21
218 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 ...
• 105
1 vote
3k 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 ...
• 11
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 ...
• 1,555
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: ...
729 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, ...
• 133
1k 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 ...
334 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 <...
• 433
730 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 ...
1 vote
950 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 ...
• 946
1 vote
283 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 ...
907 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 ...
• 21
1 vote
3k 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"; ...
1 vote
205 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, ...
• 1,555
775 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 ...
133 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 &...
23k 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 ...
3k 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 ...
• 506
116 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 ...
21k 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: ...
• 131
10k 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
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. ...
1 vote
318 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 ...
• 459
1 vote
58 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 ...
• 459
4k views

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 \\$ ...
• 125
152 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
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 ...
• 513
956 views

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 ...
• 113
11k 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 ...
• 781
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 ...
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-...
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
830 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. ...
• 113
11k 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 ...
• 123
4k views

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 ...
• 435
1 vote
214 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....
• 223