# Questions tagged [binary]

Related to binary arithmetic and number system - Base-2 system which represents numeric values using two symbols 0(zero) and 1(one). Use boolean tag for logical operations related questions that does not involve binary arithmetic.

164 questions
32 views

### How to know when the resault of subtraction is incorrect in a 4 bit binary subtraction circuit?

This is an image of a binary subtractor for unsigned numbers. Some times the output of binary subtraction is not correct and needs to be complemented to give the correct answer, how can I find out ...
37 views

### Decimal addition using a different BCD WEIGHTED CODING

The problem that I'm having trouble in understanding is how the addition of two decimal numbers such as 17 + 4 can be represented using the weighted BCD CODE, [7 4 -2 -1] and binary addition ...
663 views

### Bcd subtractor units connections

I'm new in electronics. I'm trying to make a BCD calculator, but I got stuck in BCD subtraction. I got stuck in: how can I connect multiple bcd subtrator units? I'm trying to make a 3 digit calculator,...
49 views

### Successive approximation conversion

Can someone explain me from the following table on how to get the DAC output.
60 views

### Binary subtraction machine

In the book CODE, there is a chapter on binary subtraction circuit. First, it tells us how to subtract two binary numbers. The steps are (the example is for 8 bit numbers) Subtract the subtrahend ...
12k views

### Normalized and denormalized floating point numbers

Regarding the normalized and denormalized representations of binary floating-point numbers (as described in the book by Patterson), I want to know how a denormalized number is really shown. See the ...
101 views

### 4bit demultiplexer with address entries in the EXCESS-3 code

My question is: how to make truth table for inputs on E3? There is only space for 2 bits, and E3 is written on 4 bits as I saw. Should I add more inputs for this situation or do this in different way?
59 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"; ...
70 views

### How to return ADC_Read() as characters in PIC ? Using mikroC PRO?

We have a function: ...
48 views

### Number systems and binary [closed]

I am new to number systems and binary. Can someone tell me why is X>=11 and Y>=6 in this problem? Can someone also explain how the values X=12 and Y=16 are obtained from the conditions shown in the ...
110 views

### Building a BCD to 7-segment using 3x8 decoder

So.. I know how to build a BCD to 7-segment using 3x8 decoder but the question provides 4-digit binaries and asks to only input 3 of those.. my question is that won't two different digits be regarded ...
193 views

### Multiplying signed to unsigned binary numbers in verilog

How can I multiply a signed number to unsigned number in verilog for example: a = 6'b111111 ; //which is means -1 as it is signed b = 6'b111111 ; //which is means 63 as it is unsigned I want the ...
339 views

### A circuit to convert 4-bit Gray numbers to BCD

I'm sorry for asking this specific question here but can some one please tell me what's wrong with this solution. Question: design a circuit to convert 4bit Gray numbers to BCD I have to say I ...
78 views

### How do I convert 1/3 to signed float 8 bit?

The formula is as follows: (-1)^[signed bit] * (1.[significant bit]) * (2^[excess bit -3]) or (-1)^[s] * (1.[f]) * (2^[x-3]) It is a question posed by my signals and systems instructor, hence the ...
61 views

### How to design a multiplier using only multiplexer?

I am asked to make a multipier that takes a three bits input $$x=(x_1, x_2,x_3)$$ and a control signal $s$ so that the results will be a hexadecimal 4 bit number $$z=(z_3,z_2,z_1,z_0)$$ such that \\$...
110 views

### Why does a full adder need an OR gate?

I have read and I understand how the full adder works (or atleast I think I do :D). It combines two half adders and either one of them can have a carry over, hence the OR gate. But why do we need ...
315 views

### When adding binary numbers, how do you just ignore the overflow?

So lets say I used 2's complement to put -17 in binary and then I added it to +27, e.g.: ...
5k views

### Excess-3 to binary decoder using unused combinations of the code as don't-care condition

This problem is from my textbook chapter review question, and it seems a lot different from the example provided by textbook, so I have no idea what to do. I even have solution manual for this, but ...
40 views

### Do binary numbers move in sequence ones and zeros or parallel at once to ALU for addition?

Do binary numbers move in sequence ones and zeros or parallel at once to ALU for addition, I mean ones and zeros in sequence vertically to ALU or parallel horizontally AT ONCE?
153 views

### How do I make a double dabble circuit with logic gates

Im attempting to make a 8 bit binary calculator that displays on multiple seven segment displays. Can double dabble be done with logic gates. If so, how?
43 views

### Addition and subtraction of binary digits

I have to solve the following exercise : Extend the circuit of the first part (the first part was an adder of integer numbers of 2 binary digits) in order to execute addition and subtraction of ...
270 views

### How can I convert binary into multiple 7 segment displays [closed]

I've been trying to make a decimal calculator using binary adders that feed into 3 x 7 segment displays. I cant find an efficient way to do this. If someone could point me to the correct resources, or ...
100 views

### How to get the MSB into a logic gate which will check if a number is negative or not?

I need to create a logic gate which will find out whether a number is negative or not. The input is 8 bits and the output is 1 bit, and if the input is 1 (i.e. negative number) then the output ...
189 views

### How to find out if the input of a logic gate is negative in two's complement?

I'm trying to create something which will output whether the input of the logic gate is a negative number or not in two's complement. I understand how twos complement works etc, but i'm not entirely ...
69 views

### How to find out if a binary number is zero or not using logic gates?

I'm trying to put some logic gates together which would perform a task of finding out whether a number is zero or not. I came across a thread like this on here already (How to find out if a binary ...
111 views

### subtracting binary numbers using 2's complement [closed]

Is it usually to not have a carry in the two's complement method for subtracting two binary numbers when we subtract a large number from small one ?
289 views

### Subtracting a larger binary number from a smaller binary number

Is it possible to subtract a larger binary number from a smaller one column wise . For example subtracting 1000 from 0111 ? I always use the 2s complement but is it possible to do it column wise ?
2k views

I am a student and i cannot find any prominent difference between the full adder, parallel adder and ripple carry adder. The full adder for n-bit number requires n full adder cascaded, so as the ...
718 views

### 4-bit binary multiplier circuit

I have made this 4-bit binary multiplier circuit, but the product of, for example: B3B2B1B0 (1100) x A3A2A1A0 (0001) = P7P6P5P4P3P2P1P0 (00101000) and not 1100, What have I done wrong?
69 views

### Convert analog voltages to digital using 5 Volt 4bit ADC

Computer Science major here, I have some idea but not really sure about it. I have a bunch of analog voltage readings. I need to convert them to digitized values (in volts). I am getting a 'Digital ...
114 views

### sequencing binary numbers

Is there a method for sequencing 4-bit binary numbers, where no 4 consecutive bits are repeated anywhere else in the stream? For example; Is there a method that would work for 5 and 6 bit numbers? ...
92 views

### Measuring a binary number with maximum electrical certainty [closed]

I want to be sure, with arbitrary precision (let say, for example, with 10^-100 certainty), that I can check the following statement (in binary): x = 49 That is, I want to check that a number that ...
41 views

### Can Binary to BCD conversion generalize to multiple of 8 bits?

I am trying to solve Problem 16 of Project Euler without using Big Integer libraries like GMP. I came across Binary-To-BCD algorithm to encode 8 bit number as corresponding digits in decimal ...
719 views

### Z80 Binary Front Panel Design

Hello fellow engineers, I need some design design help with a Z80 based computer I am building. It will feature a binary Front Panel. The following functions may be performed via the front ...
45 views

I have a very limited number of outputs available (4 to be exact) on my existing PLC and need to share 5-7 bits of information to another PLC without having the expense off add-on communication cards. ...
738 views

### How is binary data 'split'?

If one computer sends data, for example 001101, how does the other computer know, where one bit starts and the other one ends? If you were just to monitor the change, you would get 0101, which is ...
68 views

### LED-Monitor-Firmware reverse engineering / disassembly => replace manufacturer startup logo

I have a display from a disassembled led-monitor (Wortmann Terra 2446W), that I want to use for a SmartMirror-project. Unfortunately, the monitor shows a big manufacturer logo when connected to power, ...
308 views

### A curious 433 MHz signal to decode

I bought a cheap set of remote controlled power sockets and I want to integrate them into my home automation system. So I got a 433 MHz receiver for 1€, connected it to my Arduino and tried to decode ...
69 views

### How a Computer Represents a Number Electronically

I understand how computers represent decimal numbers using binary. I have yet to absorb this video on how computers add numbers, which looks helpful. Before understanding that though, I would like to ...
79 views

### How the first programming language and compiler was made? [closed]

How to get access to processor?I know that our OS don't allow to do that. Can we delete our OS to get the access?
96 views

### Multiplication implementation in Xilinx VHDL

I've been trying to develop a small multiplication engine using some shift registers on XilinX and some custom made functional blocks. The numbers to multiply is Z and T. The purpose of the engine ...
235 views

### Does 8b/10b decoding take running disparity into account?

What's unclear to me in reading literature about 8b/10b encoding is how it is decoded. How an 8b word is translated to a 10b symbol clearly relies on the running disparity. But when it comes to ...
98 views

### SN74HC595N Seems to misread bits

A prenote; I'm not sure if this falls more into electronics or Arduino, but I think Shift Registers are more so electronic and binary related. I'm using a single SN74HC595N shift register connected ...
73 views

### Infinitely expandable binary decoder circuit

I tried to make some binary to decimal decoders, but I had no idea how to build them, so I ended up using the "combination checker" (basically providing one checker for each number). That was really ...
100 views

### convert Ascii value to Binary or text

I have a GPS Tracker that connects and send data to a defined public server: port through GPRS connection. I am getting the result on the terminal. I have provided with a manual. I don't understand ...
146 views

### Confusion with calculating the mantissa of a floating point from a binary number

I use this converter to convert a 32-bit binary number to a floating point number. I first find the hexadecimal of the 32-bit binary number and convert to decimal by using the converter. In my case ...
1k views

### How to deal with signed int overflows

Brief background first; I have data from CAN bus of a steering angle which is obviously in hex. The steering angle covers two bytes of a message. The specification document I have says that those two ...
135 views

### Will my decimal to binary converter work

I got into electronics recently and I hope to make a 8 bit ripple carry adder with a decimal input and output. This input is the first schematic I designed from scratch without a tutorial to go off ...